diff options
Diffstat (limited to 'dev-libs/libusb')
-rw-r--r-- | dev-libs/libusb/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libusb/libusb-1.0.21.ebuild | 68 |
2 files changed, 69 insertions, 0 deletions
diff --git a/dev-libs/libusb/Manifest b/dev-libs/libusb/Manifest index da7eacb7d1f8..1021ed926c9c 100644 --- a/dev-libs/libusb/Manifest +++ b/dev-libs/libusb/Manifest @@ -1,4 +1,5 @@ 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.21.tar.bz2 607417 SHA256 7dce9cce9a81194b7065ee912bcd55eeffebab694ea403ffb91b67db66b1824b SHA512 015ca07bdb559aa40af5db1302ab0b1c8a30d593699fe2f3c9f45162673dc7b608cecc58d60fde8f3bde2a68370794a045e8efa48fc55402eece11261e525762 WHIRLPOOL f364ab89a8644d12f378268264632fe06988d045b7ab7b86e16250b095b6c2963a5de904ee642fc56aa9aa659ad8bcef960c34024263d2a20e104084d44ac67c DIST libusb-1.0.9.tar.bz2 421971 SHA256 e920eedc2d06b09606611c99ec7304413c6784cba6e33928e78243d323195f9b SHA512 5eba3e9df2c1db71d685becebebf5b1310ee87e442f97a2553a430fd11655a2d9ce50e4ec2ffd62fe322286b0d6bc9e142ce552effc2466ee50424deba035ee5 WHIRLPOOL 9886cb6660d4530fe199441a8b5b76cb8a00012d69a13a40276bf3b880561eeb31301c186828b6fd08b687e038fac640475ba280473053e252cf23f15ca38372 diff --git a/dev-libs/libusb/libusb-1.0.21.ebuild b/dev-libs/libusb/libusb-1.0.21.ebuild new file mode 100644 index 000000000000..e3b3cf6922e2 --- /dev/null +++ b/dev-libs/libusb/libusb-1.0.21.ebuild @@ -0,0 +1,68 @@ +# 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/ https://github.com/libusb/libusb" +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?] )" +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() { + # Bug 573802 + emake -j1 + + 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 +} |