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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.2
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/sys-apps/usbutils/Attic/usbutils-006.ebuild,v 1.1 2012/07/09 09:10:48 radhermit Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-apps/usbutils/Attic/usbutils-006.ebuild,v 1.2 2012/09/24 11:45:07 ssuominen Exp $
4 4
5EAPI="4" 5EAPI="4"
6 6
7PYTHON_DEPEND="python? 2:2.6" 7PYTHON_DEPEND="python? 2:2.6"
8 8
9inherit python 9inherit eutils python
10 10
11DESCRIPTION="USB enumeration utilities" 11DESCRIPTION="USB enumeration utilities"
12HOMEPAGE="http://linux-usb.sourceforge.net/" 12HOMEPAGE="http://linux-usb.sourceforge.net/"
13SRC_URI="mirror://kernel/linux/utils/usb/${PN}/${P}.tar.xz" 13SRC_URI="mirror://kernel/linux/utils/usb/${PN}/${P}.tar.xz"
14 14
31 python_pkg_setup 31 python_pkg_setup
32 fi 32 fi
33} 33}
34 34
35src_prepare() { 35src_prepare() {
36 has_version ">=dev-libs/libusbx-1.0.13" && \
37 epatch "${FILESDIR}"/${P}-libusbx-1.0.13.patch
38
36 if use python; then 39 if use python; then
37 python_convert_shebangs 2 lsusb.py 40 python_convert_shebangs 2 lsusb.py
38 sed -i -e '/^usbids/s:/usr/share:/usr/share/misc:' lsusb.py || die 41 sed -i -e '/^usbids/s:/usr/share:/usr/share/misc:' lsusb.py || die
39 fi 42 fi
40} 43}

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20