# 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-r5.ebuild,v 1.10 2005/12/29 09:29:14 vapier Exp $ inherit eutils multilib # note: update these regularly from http://www.linux-usb.org/usb.ids # and upload to gentoo mirrors - USB_IDS_VER="20040902" 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 sh sparc x86" IUSE="" DEPEND="" src_unpack() { unpack ${A} cd "${S}" # 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 && epatch ${FILESDIR}/0.11/ppc64-usbutils-kheaderfix.patch # Fix endian-issues epatch "${FILESDIR}/0.11/lsusb-endian.patch" epatch "${FILESDIR}"/usbutils-0.11-fix-usb-ids-man-page-ref.patch #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 -r "${D}"/usr/$(get_libdir) rm -r "${D}"/usr/include }