diff options
author | Zero_Chaos <zerochaos@gentoo.org> | 2016-02-03 12:23:36 -0500 |
---|---|---|
committer | Zero_Chaos <zerochaos@gentoo.org> | 2016-02-03 12:33:29 -0500 |
commit | b1b62ea80db2a722874f43828c81bb83a581f8f8 (patch) | |
tree | 01bb9df4af8c2403f134fc8a32bc198cdcbba447 /dev-libs/libusb | |
parent | sys-auth/keystone: remove the badness (diff) | |
download | gentoo-b1b62ea80db2a722874f43828c81bb83a581f8f8.tar.gz gentoo-b1b62ea80db2a722874f43828c81bb83a581f8f8.tar.bz2 gentoo-b1b62ea80db2a722874f43828c81bb83a581f8f8.zip |
dev-libs/libusb: bump for new rev and fix static-libs support bug #515204
Package-Manager: portage-2.2.27
Diffstat (limited to 'dev-libs/libusb')
-rw-r--r-- | dev-libs/libusb/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libusb/libusb-1.0.20.ebuild | 71 |
2 files changed, 72 insertions, 0 deletions
diff --git a/dev-libs/libusb/Manifest b/dev-libs/libusb/Manifest index de29c6e7fa24..da7eacb7d1f8 100644 --- a/dev-libs/libusb/Manifest +++ b/dev-libs/libusb/Manifest @@ -1,3 +1,4 @@ DIST libusb-1.0.18.tar.bz2 502160 SHA256 c73f5cec45a5de94418da4e151b7232958571926984acfb9bce02b9424e83720 SHA512 bbc3d75cb91f4e6a024549c2bac38ee85aeda8529a4553fd36bc8e8a5c223cd89eb952eda71fcc0071d6c6c818a0631d4cca084fed69d4986eee5dcf9a87d662 WHIRLPOOL fcc663884fb6d03bcf5f08c30bfded1d05c5b9ac836a2b99335553476201f956fed327c4a51609e19f54182bf5db125a0f22b41496def0443b5b4152a9f60a45 DIST libusb-1.0.19.tar.bz2 521496 SHA256 6c502c816002f90d4f76050a6429c3a7e0d84204222cbff2dce95dd773ba6840 SHA512 f42f0187bfec16ebabad64efef7a7651ee85dcf2af1b7cbe543b7de615f9c6432f7eea5fcc6b23335591dcad287c905eb9bd56199cc5d3b47435027ad678f2c1 WHIRLPOOL 95bc30575cc0e9306584453f6b7549902083ff95ff170f0fc2c89734841f7fb82cf9e25a6443ba6a0b04e1f111096deb1e4a6dc8aa13a68d13f02e02b5d274c6 +DIST libusb-1.0.20.tar.bz2 795247 SHA256 cb057190ba0a961768224e4dc6883104c6f945b2bf2ef90d7da39e7c1834f7ff SHA512 4230047dbc18db402f399a6b228f70da37ce4f9da9d57203e5c31cf0edec5ddd664865b4f16038a2ae72c26097e713b709b9e882a11b65a274e84993d617c765 WHIRLPOOL 2d270f77352e108cfeba5f33799a2480535402108efe28c030599f071872d4394ce58464930fd405b66c14879b18309ff189d42892b9ae15aebc2496639026a6 DIST libusb-1.0.9.tar.bz2 421971 SHA256 e920eedc2d06b09606611c99ec7304413c6784cba6e33928e78243d323195f9b SHA512 5eba3e9df2c1db71d685becebebf5b1310ee87e442f97a2553a430fd11655a2d9ce50e4ec2ffd62fe322286b0d6bc9e142ce552effc2466ee50424deba035ee5 WHIRLPOOL 9886cb6660d4530fe199441a8b5b76cb8a00012d69a13a40276bf3b880561eeb31301c186828b6fd08b687e038fac640475ba280473053e252cf23f15ca38372 diff --git a/dev-libs/libusb/libusb-1.0.20.ebuild b/dev-libs/libusb/libusb-1.0.20.ebuild new file mode 100644 index 000000000000..fa3032969986 --- /dev/null +++ b/dev-libs/libusb/libusb-1.0.20.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils toolchain-funcs multilib-minimal + +DESCRIPTION="Userspace access to USB devices" +HOMEPAGE="http://libusb.info/" +SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="1" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 -x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="debug doc examples static-libs test udev" + +RDEPEND="udev? ( >=virtual/libudev-208:=[${MULTILIB_USEDEP},static-libs?] ) + abi_x86_32? ( + !<=app-emulation/emul-linux-x86-baselibs-20130224-r7 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] + )" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) + !udev? ( virtual/os-headers )" + +multilib_src_configure() { + ECONF_SOURCE=${S} \ + econf \ + $(use_enable static-libs static) \ + $(use_enable udev) \ + $(use_enable debug debug-log) \ + $(use_enable test tests-build) +} + +multilib_src_compile() { + emake + + if multilib_is_native_abi; then + use doc && emake -C doc docs + fi +} + +multilib_src_test() { + emake check + + # noinst_PROGRAMS from tests/Makefile.am + tests/stress || die +} + +multilib_src_install() { + emake DESTDIR="${D}" install + + if multilib_is_native_abi; then + gen_usr_ldscript -a usb-1.0 + + use doc && dohtml doc/html/* + fi +} + +multilib_src_install_all() { + prune_libtool_files + + dodoc AUTHORS ChangeLog NEWS PORTING README TODO + + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins examples/*.{c,h} + insinto /usr/share/doc/${PF}/examples/getopt + doins examples/getopt/*.{c,h} + fi +} |