# 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.4 2005/01/01 20:21:05 vapier Exp $ inherit eutils # note: update these regularly from http://www.linux-usb.org/usb.ids # and upload to gentoo mirrors - #USB_IDS_VER="20050106" DESCRIPTION="USB enumeration utilities" HOMEPAGE="http://usb.cs.tum.edu/" SRC_URI="mirror://sourceforge/linux-usb/${P}.tar.gz" # mirror://gentoo/usb.ids-${USB_IDS_VER}.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64 ~ppc" IUSE="" DEPEND="virtual/libc dev-libs/libusb" src_unpack() { unpack ${A} # replace usb.ids with an updated version # mv ${WORKDIR}/usb.ids-${USB_IDS_VER} ${S}/usb.ids || die "unable to replace usb.ids" epatch ${FILESDIR}/${P}-fix-usb-ids-man-page-ref.patch } src_compile() { # put usb.ids in same place as pci.ids (/usr/share/misc) econf \ --datadir=/usr/share/misc || die "./configure failed" emake || die "make failed" } src_install() { make DESTDIR=${D} install || die "install failed" }