blob: 93856326637c77b210e856642da955e47a3fe7ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/usbutils/usbutils-0.11-r1.ebuild,v 1.11 2004/07/01 21:42:54 eradicator Exp $
inherit gnuconfig
inherit gnuconfig
S=${WORKDIR}/${P}
DESCRIPTION="USB enumeration utilities"
SRC_URI="http://usb.cs.tum.edu/download/usbutils/${P}.tar.gz"
HOMEPAGE="http://usb.cs.tum.edu/"
KEYWORDS="x86 amd64 ~ppc ~sparc hppa alpha"
IUSE=""
SLOT="0"
LICENSE="GPL-2"
DEPEND="virtual/libc"
src_unpack() {
unpack ${A}
cd ${P}
mv usb.ids usb.ids.orig
wget http://www.linux-usb.org/usb.ids
if [ ! -f usb.ids ] ; then mv usb.ids.orig usb.ids ; fi
use amd64 && gnuconfig_update
use alpha && gnuconfig_update
}
src_compile() {
# put usb.ids in same place as pci.ids (/usr/share/misc)
./configure \
--host=${CHOST} \
--prefix=/usr \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
--datadir=/usr/share/misc || die "./configure failed"
emake || die
}
src_install() {
make DESTDIR=${D} install || die
}
|