From d696e896570795c37f86b6d7e60cfac99f5a83b2 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Tue, 10 Apr 2007 09:44:07 +0000 Subject: [PATCH] Bug #103132 - move libusb to /lib for usage with UPS and other system devices when /usr is a seperate partition. Package-Manager: portage-2.1.2.3 --- dev-libs/libusb/ChangeLog | 9 +++- dev-libs/libusb/Manifest | 15 ++++-- dev-libs/libusb/files/digest-libusb-0.1.12-r1 | 3 ++ dev-libs/libusb/libusb-0.1.12-r1.ebuild | 54 +++++++++++++++++++ 4 files changed, 76 insertions(+), 5 deletions(-) create mode 100644 dev-libs/libusb/files/digest-libusb-0.1.12-r1 create mode 100644 dev-libs/libusb/libusb-0.1.12-r1.ebuild diff --git a/dev-libs/libusb/ChangeLog b/dev-libs/libusb/ChangeLog index 3c5b37de434a..ddcf562b4f3f 100644 --- a/dev-libs/libusb/ChangeLog +++ b/dev-libs/libusb/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-libs/libusb # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libusb/ChangeLog,v 1.66 2007/03/28 02:36:41 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libusb/ChangeLog,v 1.67 2007/04/10 09:44:07 robbat2 Exp $ + +*libusb-0.1.12-r1 (10 Apr 2007) + + 10 Apr 2007; Robin H. Johnson + +libusb-0.1.12-r1.ebuild: + Bug #103132 - move libusb to /lib for usage with UPS and other system + devices when /usr is a seperate partition. 28 Mar 2007; Jeroen Roovers : Stable for HPPA too. diff --git a/dev-libs/libusb/Manifest b/dev-libs/libusb/Manifest index 413a8fa798a2..8d8e367434a4 100644 --- a/dev-libs/libusb/Manifest +++ b/dev-libs/libusb/Manifest @@ -22,6 +22,10 @@ EBUILD libusb-0.1.11.ebuild 1057 RMD160 422a10490c31d9448983f0c517223175f69f2a39 MD5 66c87783b63f890512ed0e01d8e556c9 libusb-0.1.11.ebuild 1057 RMD160 422a10490c31d9448983f0c517223175f69f2a39 libusb-0.1.11.ebuild 1057 SHA256 b4b1d113c64159ead308fe07c2eefd399c737a1433082aafdf39f34498e61074 libusb-0.1.11.ebuild 1057 +EBUILD libusb-0.1.12-r1.ebuild 1476 RMD160 ba9e308be8ef2dd7a3fb2f330d8ded9a48b65bfd SHA1 24b9e246b04b0b172b07059aa4e6e141d5cf93b4 SHA256 0c38cf6b9b6aa017bbb3a3dba38081d14f438492455acd3973f444587fd60035 +MD5 2ec3de68948544c70057b6afb1392521 libusb-0.1.12-r1.ebuild 1476 +RMD160 ba9e308be8ef2dd7a3fb2f330d8ded9a48b65bfd libusb-0.1.12-r1.ebuild 1476 +SHA256 0c38cf6b9b6aa017bbb3a3dba38081d14f438492455acd3973f444587fd60035 libusb-0.1.12-r1.ebuild 1476 EBUILD libusb-0.1.12.ebuild 1220 RMD160 1cc8d2de1b74065c3b4d654cb3eec00d06acf19f SHA1 bff760c4061c4fe0ebfe362c87a106ab369ca69a SHA256 d3a313b7a0500fbed3bb01a3ecef80d03209acca9542af176206526fd9eaf57c MD5 683c9c16019b7543bfc93ff1ea6c3992 libusb-0.1.12.ebuild 1220 RMD160 1cc8d2de1b74065c3b4d654cb3eec00d06acf19f libusb-0.1.12.ebuild 1220 @@ -30,10 +34,10 @@ EBUILD libusb-0.1.8.ebuild 1381 RMD160 805c7f8399e22939182949619495dd8c54335d44 MD5 823329fd97af87fac3e12438a72e0619 libusb-0.1.8.ebuild 1381 RMD160 805c7f8399e22939182949619495dd8c54335d44 libusb-0.1.8.ebuild 1381 SHA256 75a95c0a476449b58c3dbbfe1ccd1bb81d0085dbe351de3e0aff0462a20d7921 libusb-0.1.8.ebuild 1381 -MISC ChangeLog 7893 RMD160 509ac0fb43ac4618d54c7d4caffbb3a0f670c7c8 SHA1 cb8648460354e7ecde29c53399eaeacfb6fa6ba3 SHA256 f1f36de8604b0d5abe2b95f074440e57e1e2511ad38f6b15a1262ef673bd6b6e -MD5 4685a55f46d55fcbf547b5a6566eba69 ChangeLog 7893 -RMD160 509ac0fb43ac4618d54c7d4caffbb3a0f670c7c8 ChangeLog 7893 -SHA256 f1f36de8604b0d5abe2b95f074440e57e1e2511ad38f6b15a1262ef673bd6b6e ChangeLog 7893 +MISC ChangeLog 8129 RMD160 6ec210676c30dad74dfd70d7a0e76c9518c114ed SHA1 0c7d31263e51560af7d9bb28be3d5827d1da19ae SHA256 7c3712e84f8fd7a23acf919f1d17c5ed8dafe0741295436f040e4a6dfbca2f8f +MD5 995fc8f0a5ffbc5c930cd6d3bff2fe76 ChangeLog 8129 +RMD160 6ec210676c30dad74dfd70d7a0e76c9518c114ed ChangeLog 8129 +SHA256 7c3712e84f8fd7a23acf919f1d17c5ed8dafe0741295436f040e4a6dfbca2f8f ChangeLog 8129 MISC metadata.xml 219 RMD160 fd2bbaf1c19b4ad2d876f02846608907516e2403 SHA1 aad05fa7d0ab2c9304502d4843d10f775afad2a8 SHA256 f39a99f0777bf9eac2d5a444a392d3b93da834a6de01613747bad25c84637138 MD5 8f906ffe0aa837e5e26fe03af3043461 metadata.xml 219 RMD160 fd2bbaf1c19b4ad2d876f02846608907516e2403 metadata.xml 219 @@ -47,6 +51,9 @@ SHA256 6e7b3285d5f8b2673fc642b26bcfd4e3e9892de658efae72fde3495cae5f8309 files/di MD5 69d1715954fdf5d05e4de63304bc524d files/digest-libusb-0.1.12 241 RMD160 a4173f9c426aaf2c3045976cfa54c0042c66404d files/digest-libusb-0.1.12 241 SHA256 e3f7389ad6c898008f7394c8f3bec01d538e3b96f6db87c90109804e962a8fc7 files/digest-libusb-0.1.12 241 +MD5 69d1715954fdf5d05e4de63304bc524d files/digest-libusb-0.1.12-r1 241 +RMD160 a4173f9c426aaf2c3045976cfa54c0042c66404d files/digest-libusb-0.1.12-r1 241 +SHA256 e3f7389ad6c898008f7394c8f3bec01d538e3b96f6db87c90109804e962a8fc7 files/digest-libusb-0.1.12-r1 241 MD5 fed87a209f88bc91afcc4044cf5db5fd files/digest-libusb-0.1.8 238 RMD160 3ef8446ca3de5be6094f6a05f3059fa7fec9e23a files/digest-libusb-0.1.8 238 SHA256 2df8c1864fe04dc88c097c244f40dee51d5ca642eae9b78d254b1469838b2c63 files/digest-libusb-0.1.8 238 diff --git a/dev-libs/libusb/files/digest-libusb-0.1.12-r1 b/dev-libs/libusb/files/digest-libusb-0.1.12-r1 new file mode 100644 index 000000000000..7b884d146b0f --- /dev/null +++ b/dev-libs/libusb/files/digest-libusb-0.1.12-r1 @@ -0,0 +1,3 @@ +MD5 caf182cbc7565dac0fd72155919672e6 libusb-0.1.12.tar.gz 389343 +RMD160 63848df717e00fff67ab30ba86a85466370d4e8e libusb-0.1.12.tar.gz 389343 +SHA256 37f6f7d9de74196eb5fc0bbe0aea9b5c939de7f500acba3af6fd643f3b538b44 libusb-0.1.12.tar.gz 389343 diff --git a/dev-libs/libusb/libusb-0.1.12-r1.ebuild b/dev-libs/libusb/libusb-0.1.12-r1.ebuild new file mode 100644 index 000000000000..8acfe84185ac --- /dev/null +++ b/dev-libs/libusb/libusb-0.1.12-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libusb/libusb-0.1.12-r1.ebuild,v 1.1 2007/04/10 09:44:07 robbat2 Exp $ + +WANT_AUTOMAKE="latest" +WANT_AUTOCONF="latest" +inherit eutils libtool autotools toolchain-funcs + +DESCRIPTION="Userspace access to USB devices" +HOMEPAGE="http://libusb.sourceforge.net/" +SRC_URI="mirror://sourceforge/libusb/${P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="debug doc" +RESTRICT="test" + +RDEPEND="" +DEPEND="doc? ( app-text/openjade + app-text/docbook-dsssl-stylesheets + app-text/docbook-sgml-utils + ~app-text/docbook-sgml-dtd-4.2 )" + +src_unpack() { + unpack ${A} + cd "${S}" + sed -i -e 's:-Werror::' Makefile.am + epatch "${FILESDIR}"/${PV}-fbsd.patch + eautoreconf + elibtoolize +} + +src_compile() { + econf \ + $(use_enable debug debug all) \ + $(use_enable doc build-docs) \ + --libdir /usr/$(get_libdir) \ + || die "econf failed" + emake || die "emake failed" +} + +src_install() { + emake -j1 DESTDIR="${D}" install || die "make install failed" + dodir /$(get_libdir) + mv ${D}/usr/$(get_libdir)/*.so* ${D}/$(get_libdir) \ + || die "Failed to put dynamic libs in /$(get_libdir)" + gen_usr_ldscript libusb.so + gen_usr_ldscript libusbpp.so + dodoc AUTHORS NEWS README || die "dodoc failed" + if use doc ; then + dohtml doc/html/*.html || die "dohtml failed" + fi +} -- 2.26.2