diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2011-03-26 10:49:58 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2011-03-26 10:49:58 +0000 |
commit | 9005d618c605d3b3e5cd41ede13864a2eaeca712 (patch) | |
tree | fde8c439cd1f76be4d4d47ff3ed23e1a56a327e2 /sys-apps/usbutils | |
parent | Version bump. Bug #360007. Thanks to Denny (diff) | |
download | gentoo-2-9005d618c605d3b3e5cd41ede13864a2eaeca712.tar.gz gentoo-2-9005d618c605d3b3e5cd41ede13864a2eaeca712.tar.bz2 gentoo-2-9005d618c605d3b3e5cd41ede13864a2eaeca712.zip |
Version bump.
(Portage version: 2.2.0_alpha28/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/usbutils')
-rw-r--r-- | sys-apps/usbutils/ChangeLog | 7 | ||||
-rw-r--r-- | sys-apps/usbutils/usbutils-002.ebuild | 56 |
2 files changed, 62 insertions, 1 deletions
diff --git a/sys-apps/usbutils/ChangeLog b/sys-apps/usbutils/ChangeLog index bbfd9171eece..d1a9b7bac3c8 100644 --- a/sys-apps/usbutils/ChangeLog +++ b/sys-apps/usbutils/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-apps/usbutils # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/usbutils/ChangeLog,v 1.112 2011/01/09 16:16:50 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/usbutils/ChangeLog,v 1.113 2011/03/26 10:49:58 ssuominen Exp $ + +*usbutils-002 (26 Mar 2011) + + 26 Mar 2011; Samuli Suominen <ssuominen@gentoo.org> +usbutils-002.ebuild: + Version bump. 09 Jan 2011; Raúl Porcel <armin76@gentoo.org> usbutils-0.90.ebuild: ia64/m68k/s390/sh stable wrt #342525 diff --git a/sys-apps/usbutils/usbutils-002.ebuild b/sys-apps/usbutils/usbutils-002.ebuild new file mode 100644 index 000000000000..24bad2e16239 --- /dev/null +++ b/sys-apps/usbutils/usbutils-002.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/usbutils/usbutils-002.ebuild,v 1.1 2011/03/26 10:49:58 ssuominen Exp $ + +EAPI="3" + +PYTHON_DEPEND="python? 2:2.6" + +inherit python + +DESCRIPTION="USB enumeration utilities" +HOMEPAGE="http://linux-usb.sourceforge.net/" +SRC_URI="mirror://kernel/linux/utils/usb/usbutils/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="network-cron python zlib" + +RDEPEND="virtual/libusb:1 + zlib? ( sys-libs/zlib )" +DEPEND="${DEPEND} + dev-util/pkgconfig" + +pkg_setup() { + if use python; then + python_set_active_version 2 + python_pkg_setup + fi +} + +src_prepare() { + if use python; then + python_convert_shebangs 2 lsusb.py + sed -i -e '/^usbids/s:/usr/share:/usr/share/misc:' lsusb.py || die + fi +} + +src_configure() { + econf \ + --datarootdir=/usr/share \ + --datadir=/usr/share/misc \ + $(use_enable zlib) +} + +src_install() { + emake DESTDIR="${D}" install || die + use python || rm -f "${D}"/usr/bin/lsusb.py + mv "${D}"/usr/sbin/update-usbids{.sh,} || die + newbin "${FILESDIR}"/usbmodules.sh usbmodules || die + dodoc AUTHORS ChangeLog NEWS README + + use network-cron || return 0 + exeinto /etc/cron.monthly + newexe "${FILESDIR}"/usbutils.cron update-usbids || die +} |