/[gentoo-x86]/sys-apps/usbutils/usbutils-006.ebuild
Gentoo

Contents of /sys-apps/usbutils/usbutils-006.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sat Dec 29 17:34:51 2012 UTC (19 months, 2 weeks ago) by armin76
Branch: MAIN
Changes since 1.9: +2 -2 lines
alpha/m68k/s390/sh/sparc stable wrt #436186

(Portage version: 2.1.11.38/cvs/Linux ia64, signed Manifest commit with key F6AD3240)

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/usbutils/usbutils-006.ebuild,v 1.9 2012/12/17 17:47:29 ago Exp $
4
5 EAPI="4"
6
7 PYTHON_DEPEND="python? 2:2.6"
8
9 inherit eutils python
10
11 DESCRIPTION="USB enumeration utilities"
12 HOMEPAGE="http://linux-usb.sourceforge.net/"
13 SRC_URI="mirror://kernel/linux/utils/usb/${PN}/${P}.tar.xz"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux"
18 IUSE="python zlib"
19
20 RDEPEND="virtual/libusb:1
21 zlib? ( sys-libs/zlib )"
22 DEPEND="${RDEPEND}
23 app-arch/xz-utils
24 virtual/pkgconfig"
25 RDEPEND="${RDEPEND}
26 sys-apps/hwids"
27
28 pkg_setup() {
29 if use python; then
30 python_set_active_version 2
31 python_pkg_setup
32 fi
33 }
34
35 src_prepare() {
36 epatch "${FILESDIR}"/${P}-libusbx-1.0.13.patch
37 epatch "${FILESDIR}"/${P}-stdint.patch
38
39 if use python; then
40 python_convert_shebangs 2 lsusb.py
41 sed -i -e '/^usbids/s:/usr/share:/usr/share/misc:' lsusb.py || die
42 fi
43 }
44
45 src_configure() {
46 econf \
47 --datarootdir="${EPREFIX}/usr/share" \
48 --datadir="${EPREFIX}/usr/share/misc" \
49 --disable-usbids \
50 $(use_enable zlib)
51 }
52
53 src_install() {
54 default
55 newdoc usbhid-dump/NEWS NEWS.usbhid-dump
56
57 use python || rm -f "${ED}"/usr/bin/lsusb.py
58
59 newbin "${FILESDIR}"/usbmodules.sh usbmodules
60 }
61
62 pkg_postinst() {
63 if [[ ${REPLACING_VERSIONS} ]] && [[ ${REPLACING_VERSIONS} < 006 ]]; then
64 elog "The 'network-cron' USE flag is gone; if you want a more up-to-date"
65 elog "usb.ids file, you should use sys-apps/hwids-99999999 (live ebuild)."
66 fi
67 }

  ViewVC Help
Powered by ViewVC 1.1.20