/[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.12 - (show annotations) (download)
Fri Apr 19 06:03:22 2013 UTC (5 weeks, 2 days ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -2 lines
Punt -libusbx-1.0.13.patch which is no longer required by current dev-libs/libusbx wrt #466428 by Lukáš Závodný

(Portage version: 2.2.0_alpha173/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)

1 # Copyright 1999-2013 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.11 2013/02/22 17:32:14 zmedico 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 ~arm-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}-stdint.patch
37
38 if use python; then
39 python_convert_shebangs 2 lsusb.py
40 sed -i -e '/^usbids/s:/usr/share:/usr/share/misc:' lsusb.py || die
41 fi
42 }
43
44 src_configure() {
45 econf \
46 --datarootdir="${EPREFIX}/usr/share" \
47 --datadir="${EPREFIX}/usr/share/misc" \
48 --disable-usbids \
49 $(use_enable zlib)
50 }
51
52 src_install() {
53 default
54 newdoc usbhid-dump/NEWS NEWS.usbhid-dump
55
56 use python || rm -f "${ED}"/usr/bin/lsusb.py
57
58 newbin "${FILESDIR}"/usbmodules.sh usbmodules
59 }
60
61 pkg_postinst() {
62 if [[ ${REPLACING_VERSIONS} ]] && [[ ${REPLACING_VERSIONS} < 006 ]]; then
63 elog "The 'network-cron' USE flag is gone; if you want a more up-to-date"
64 elog "usb.ids file, you should use sys-apps/hwids-99999999 (live ebuild)."
65 fi
66 }

  ViewVC Help
Powered by ViewVC 1.1.20