diff options
author | Alastair Tse <liquidx@gentoo.org> | 2005-05-09 11:09:28 +0000 |
---|---|---|
committer | Alastair Tse <liquidx@gentoo.org> | 2005-05-09 11:09:28 +0000 |
commit | c0bfbe7ca7f8de6550077940a8ab7ac0fe10e585 (patch) | |
tree | 730eccb37df1eb7e64b15d6c0af9f513aa18754c /sys-apps/usbutils/usbutils-0.11-r6.ebuild | |
parent | cleanup (diff) | |
download | gentoo-2-c0bfbe7ca7f8de6550077940a8ab7ac0fe10e585.tar.gz gentoo-2-c0bfbe7ca7f8de6550077940a8ab7ac0fe10e585.tar.bz2 gentoo-2-c0bfbe7ca7f8de6550077940a8ab7ac0fe10e585.zip |
version bump. fix multilib issues (#90777). updated usb.ids to 20050408.
(Portage version: 2.0.51.21)
Diffstat (limited to 'sys-apps/usbutils/usbutils-0.11-r6.ebuild')
-rw-r--r-- | sys-apps/usbutils/usbutils-0.11-r6.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/sys-apps/usbutils/usbutils-0.11-r6.ebuild b/sys-apps/usbutils/usbutils-0.11-r6.ebuild new file mode 100644 index 000000000000..ec7986e7a0ec --- /dev/null +++ b/sys-apps/usbutils/usbutils-0.11-r6.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/usbutils/usbutils-0.11-r6.ebuild,v 1.1 2005/05/09 11:09:28 liquidx Exp $ + +inherit eutils gnuconfig + +# note: update these regularly from http://www.linux-usb.org/usb.ids +# and upload to gentoo mirrors - <liquidx@gentoo.org> +USB_IDS_VER="20050408" + +DESCRIPTION="USB enumeration utilities" +HOMEPAGE="http://usb.cs.tum.edu/" +SRC_URI="http://usb.cs.tum.edu/download/usbutils/${P}.tar.gz + mirror://gentoo/usb.ids-${USB_IDS_VER}.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="" + +DEPEND="virtual/libc" + +src_unpack() { + unpack ${A} + gnuconfig_update + + # replace usb.ids with an updated version + mv ${WORKDIR}/usb.ids-${USB_IDS_VER} ${S}/usb.ids || die "unable to replace usb.ids" + + use ppc64 && ( cd ${S}; epatch ${FILESDIR}/0.11/ppc64-usbutils-kheaderfix.patch ) + + # Fix endian-issues + ( cd "${S}" && epatch "${FILESDIR}/0.11/lsusb-endian.patch" ) + + epatch ${FILESDIR}/usbutils-0.11-fix-usb-ids-man-page-ref.patch #bug #62786 +} + +src_compile() { + # put usb.ids in same place as pci.ids (/usr/share/misc) + econf \ + --datadir=/usr/share/misc || die "./configure failed" + emake || die +} + +src_install() { + make DESTDIR=${D} install || die + + # we don't need libusb.* from usbutils because it conflicts + # with dev-libs/libusb + rm -rf ${D}/usr/lib* + rm -rf ${D}/usr/include +} |