| 1 |
# Copyright 1999-2012 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/hwids/hwids-20120815.ebuild,v 1.1 2012/08/15 14:29:06 flameeyes Exp $ |
| 4 |
|
| 5 |
EAPI="4" |
| 6 |
|
| 7 |
DESCRIPTION="Hardware (PCI, USB) IDs databases" |
| 8 |
HOMEPAGE="https://github.com/gentoo/hwids" |
| 9 |
SRC_URI="https://github.com/gentoo/hwids/tarball/${P} -> ${P}.tar.gz" |
| 10 |
|
| 11 |
LICENSE="|| ( GPL-2 BSD )" |
| 12 |
SLOT="0" |
| 13 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" |
| 14 |
IUSE="" |
| 15 |
|
| 16 |
DEPEND="" |
| 17 |
RDEPEND="!<sys-apps/pciutils-3.1.9-r2 |
| 18 |
!<sys-apps/usbutils-005-r1" |
| 19 |
|
| 20 |
S="${WORKDIR}" |
| 21 |
|
| 22 |
src_compile() { |
| 23 |
cd "${S}"/gentoo-hwids-* |
| 24 |
|
| 25 |
for file in {usb,pci}.ids; do |
| 26 |
gzip -c ${file} > ${file}.gz || die |
| 27 |
done |
| 28 |
} |
| 29 |
|
| 30 |
src_install() { |
| 31 |
cd "${S}"/gentoo-hwids-* |
| 32 |
|
| 33 |
insinto /usr/share/misc |
| 34 |
doins {usb,pci}.ids{,.gz} |
| 35 |
|
| 36 |
dodoc README.md |
| 37 |
} |