Gentoo Archives: gentoo-commits

From: Tim Harder <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libusb/
Date: Sun, 25 Mar 2018 06:55:07
Message-Id: 1521960817.c458bdaeee18279a808323beb07b513c4065e5f4.radhermit@gentoo
1 commit: c458bdaeee18279a808323beb07b513c4065e5f4
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 25 06:53:37 2018 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 25 06:53:37 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c458bdae
7
8 dev-libs/libusb: version bump to 1.0.22
9
10 dev-libs/libusb/Manifest | 1 +
11 dev-libs/libusb/libusb-1.0.22.ebuild | 66 ++++++++++++++++++++++++++++++++++++
12 2 files changed, 67 insertions(+)
13
14 diff --git a/dev-libs/libusb/Manifest b/dev-libs/libusb/Manifest
15 index e5d73067119..5bd55da408f 100644
16 --- a/dev-libs/libusb/Manifest
17 +++ b/dev-libs/libusb/Manifest
18 @@ -1,3 +1,4 @@
19 DIST libusb-1.0.19.tar.bz2 521496 BLAKE2B 9f38dcb8f053019511dc2eed93772183c5487917794abd2839e981924bf05e39aba5cee4fb9a366b78e4d265fb16a921fb64c9a083323993ce21543d37073720 SHA512 f42f0187bfec16ebabad64efef7a7651ee85dcf2af1b7cbe543b7de615f9c6432f7eea5fcc6b23335591dcad287c905eb9bd56199cc5d3b47435027ad678f2c1
20 DIST libusb-1.0.20.tar.bz2 795247 BLAKE2B 9b3b4b9e372487ca355611917eb00a41d439df391796edf0b4fea28fcd88ca92214d05c4beb8eaf918028d833544e385e59ca38426880c293e070c5f1fc64647 SHA512 4230047dbc18db402f399a6b228f70da37ce4f9da9d57203e5c31cf0edec5ddd664865b4f16038a2ae72c26097e713b709b9e882a11b65a274e84993d617c765
21 DIST libusb-1.0.21.tar.bz2 607417 BLAKE2B c76352a19f416ad27b8940e99f38878e248cdbc04ef97752f8c8468ab0391869ab611197e3e143d69e0e23563da59f1691c14fce72958fdf28ebf10dd8c1521b SHA512 015ca07bdb559aa40af5db1302ab0b1c8a30d593699fe2f3c9f45162673dc7b608cecc58d60fde8f3bde2a68370794a045e8efa48fc55402eece11261e525762
22 +DIST libusb-1.0.22.tar.bz2 598833 BLAKE2B 38d01c1dd1837434c24008151a27cdfb2b2e9aab30fe95e4403bad613a0147a13b9b029814e15520bcfc2c181b00e3c5cc1ffdc3a586a604190bf441d3c89318 SHA512 2a93ba48bb66b9775838c16d74f7269348d9bc163f94ccf2842d1108d95a41cf79f8c8065233bea410fb94261a462dbb08ecfa1a9b6d3ddf4a5980e6043f74f4
23
24 diff --git a/dev-libs/libusb/libusb-1.0.22.ebuild b/dev-libs/libusb/libusb-1.0.22.ebuild
25 new file mode 100644
26 index 00000000000..9790ec477e2
27 --- /dev/null
28 +++ b/dev-libs/libusb/libusb-1.0.22.ebuild
29 @@ -0,0 +1,66 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +inherit ltprune toolchain-funcs multilib-minimal
35 +
36 +DESCRIPTION="Userspace access to USB devices"
37 +HOMEPAGE="http://libusb.info/ https://github.com/libusb/libusb"
38 +SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.bz2"
39 +
40 +LICENSE="LGPL-2.1"
41 +SLOT="1"
42 +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"
43 +IUSE="debug doc examples static-libs test udev"
44 +
45 +RDEPEND="udev? ( >=virtual/libudev-208:=[${MULTILIB_USEDEP},static-libs?] )"
46 +DEPEND="${RDEPEND}
47 + doc? ( app-doc/doxygen )
48 + !udev? ( virtual/os-headers )"
49 +
50 +multilib_src_configure() {
51 + ECONF_SOURCE=${S} \
52 + econf \
53 + $(use_enable static-libs static) \
54 + $(use_enable udev) \
55 + $(use_enable debug debug-log) \
56 + $(use_enable test tests-build)
57 +}
58 +
59 +multilib_src_compile() {
60 + emake
61 +
62 + if multilib_is_native_abi; then
63 + use doc && emake -C doc docs
64 + fi
65 +}
66 +
67 +multilib_src_test() {
68 + emake check
69 +
70 + # noinst_PROGRAMS from tests/Makefile.am
71 + tests/stress || die
72 +}
73 +
74 +multilib_src_install() {
75 + emake DESTDIR="${D}" install
76 +
77 + if multilib_is_native_abi; then
78 + gen_usr_ldscript -a usb-1.0
79 +
80 + use doc && dodoc -r doc/html
81 + fi
82 +}
83 +
84 +multilib_src_install_all() {
85 + prune_libtool_files
86 +
87 + dodoc AUTHORS ChangeLog NEWS PORTING README TODO
88 +
89 + if use examples; then
90 + insinto /usr/share/doc/${PF}/examples
91 + doins examples/*.{c,h}
92 + insinto /usr/share/doc/${PF}/examples/getopt
93 + doins examples/getopt/*.{c,h}
94 + fi
95 +}