summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-11-19 09:58:45 +0000
committerMike Frysinger <vapier@gentoo.org>2010-11-19 09:58:45 +0000
commit0cfd6d216f11bb603ab82ac764582162d25c4ee3 (patch)
tree6dea4d73e361d6932df04f24e81861a43ca7bc9c /sys-apps
parentMask www-client/chromium dev channel release. (diff)
downloadgentoo-2-0cfd6d216f11bb603ab82ac764582162d25c4ee3.tar.gz
gentoo-2-0cfd6d216f11bb603ab82ac764582162d25c4ee3.tar.bz2
gentoo-2-0cfd6d216f11bb603ab82ac764582162d25c4ee3.zip
Rewrite usbutils to use libusb-1 #342553 by Chris Coleman. Move lsusb to /usr/bin #342529 by Samuli Suominen.
(Portage version: 2.2.0_alpha4/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/usbutils/ChangeLog8
-rw-r--r--sys-apps/usbutils/usbutils-0.91-r1.ebuild45
2 files changed, 52 insertions, 1 deletions
diff --git a/sys-apps/usbutils/ChangeLog b/sys-apps/usbutils/ChangeLog
index f0187befddce..b532e5a9f3d1 100644
--- a/sys-apps/usbutils/ChangeLog
+++ b/sys-apps/usbutils/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/usbutils
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/usbutils/ChangeLog,v 1.107 2010/10/26 14:47:41 fauli Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/usbutils/ChangeLog,v 1.108 2010/11/19 09:58:45 vapier Exp $
+
+*usbutils-0.91-r1 (19 Nov 2010)
+
+ 19 Nov 2010; Mike Frysinger <vapier@gentoo.org> +usbutils-0.91-r1.ebuild:
+ Rewrite usbutils to use libusb-1 #342553 by Chris Coleman. Move lsusb to
+ /usr/bin #342529 by Samuli Suominen.
26 Oct 2010; Christian Faulhammer <fauli@gentoo.org> usbutils-0.90.ebuild:
stable x86, bug 342525
diff --git a/sys-apps/usbutils/usbutils-0.91-r1.ebuild b/sys-apps/usbutils/usbutils-0.91-r1.ebuild
new file mode 100644
index 000000000000..56b1e1b080a4
--- /dev/null
+++ b/sys-apps/usbutils/usbutils-0.91-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/usbutils/usbutils-0.91-r1.ebuild,v 1.1 2010/11/19 09:58:45 vapier Exp $
+
+EAPI="2"
+
+inherit eutils autotools
+
+DESCRIPTION="USB enumeration utilities"
+HOMEPAGE="http://linux-usb.sourceforge.net/"
+SRC_URI="mirror://kernel/linux/utils/usb/usbutils/${P}.tar.gz
+ mirror://gentoo/${P}-libusb1.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="network-cron zlib"
+
+RDEPEND="virtual/libusb:1
+ zlib? ( sys-libs/zlib )"
+DEPEND="${DEPEND}
+ dev-util/pkgconfig"
+
+src_prepare() {
+ epatch "${WORKDIR}"/*.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --datarootdir=/usr/share \
+ --datadir=/usr/share/misc \
+ $(use_enable zlib)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ 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
+}