1 |
commit: d01e05bcc99d08ad11dd01c66b2b912434d6a0d3 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 30 08:00:03 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 30 08:14:14 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d01e05bc |
7 |
|
8 |
dev-libs/libusb: Bump to version 1.0.23 |
9 |
|
10 |
Package-Manager: Portage-2.3.73, Repoman-2.3.17 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
dev-libs/libusb/Manifest | 1 + |
14 |
dev-libs/libusb/libusb-1.0.23.ebuild | 67 ++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 68 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/libusb/Manifest b/dev-libs/libusb/Manifest |
18 |
index d4b6054f7af..e3eef8d1174 100644 |
19 |
--- a/dev-libs/libusb/Manifest |
20 |
+++ b/dev-libs/libusb/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST libusb-1.0.19.tar.bz2 521496 BLAKE2B 9f38dcb8f053019511dc2eed93772183c5487917794abd2839e981924bf05e39aba5cee4fb9a366b78e4d265fb16a921fb64c9a083323993ce21543d37073720 SHA512 f42f0187bfec16ebabad64efef7a7651ee85dcf2af1b7cbe543b7de615f9c6432f7eea5fcc6b23335591dcad287c905eb9bd56199cc5d3b47435027ad678f2c1 |
23 |
DIST libusb-1.0.21.tar.bz2 607417 BLAKE2B c76352a19f416ad27b8940e99f38878e248cdbc04ef97752f8c8468ab0391869ab611197e3e143d69e0e23563da59f1691c14fce72958fdf28ebf10dd8c1521b SHA512 015ca07bdb559aa40af5db1302ab0b1c8a30d593699fe2f3c9f45162673dc7b608cecc58d60fde8f3bde2a68370794a045e8efa48fc55402eece11261e525762 |
24 |
DIST libusb-1.0.22.tar.bz2 598833 BLAKE2B 38d01c1dd1837434c24008151a27cdfb2b2e9aab30fe95e4403bad613a0147a13b9b029814e15520bcfc2c181b00e3c5cc1ffdc3a586a604190bf441d3c89318 SHA512 2a93ba48bb66b9775838c16d74f7269348d9bc163f94ccf2842d1108d95a41cf79f8c8065233bea410fb94261a462dbb08ecfa1a9b6d3ddf4a5980e6043f74f4 |
25 |
+DIST libusb-1.0.23.tar.bz2 602860 BLAKE2B 4eaf8cce0047b85c3057c67b53769739c50a39c4d34e94659b030fb11f02309f9217e93d35d78f699c55256346cf8b14827c8ddf495caeeacc522c51f473abc2 SHA512 73430ad31dd405e76a9c6c55086961003989c44964e2735b5076f9ca849e3f6fe71d10a66b74b111f0c34a0d2cb744b9ca105863c552123fce4ec0bbdd2ec15b |
26 |
|
27 |
diff --git a/dev-libs/libusb/libusb-1.0.23.ebuild b/dev-libs/libusb/libusb-1.0.23.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..542edcff870 |
30 |
--- /dev/null |
31 |
+++ b/dev-libs/libusb/libusb-1.0.23.ebuild |
32 |
@@ -0,0 +1,67 @@ |
33 |
+# Copyright 1999-2019 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+inherit toolchain-funcs multilib-minimal usr-ldscript |
38 |
+ |
39 |
+DESCRIPTION="Userspace access to USB devices" |
40 |
+HOMEPAGE="https://libusb.info/ https://github.com/libusb/libusb" |
41 |
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.bz2" |
42 |
+ |
43 |
+LICENSE="LGPL-2.1" |
44 |
+SLOT="1" |
45 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 -x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
46 |
+IUSE="debug doc examples static-libs test udev" |
47 |
+ |
48 |
+RDEPEND="udev? ( >=virtual/libudev-208:=[${MULTILIB_USEDEP},static-libs?] )" |
49 |
+DEPEND="${RDEPEND} |
50 |
+ doc? ( app-doc/doxygen ) |
51 |
+ !udev? ( virtual/os-headers )" |
52 |
+ |
53 |
+multilib_src_configure() { |
54 |
+ local myeconfargs=( |
55 |
+ $(use_enable static-libs static) |
56 |
+ $(use_enable udev) |
57 |
+ $(use_enable debug debug-log) |
58 |
+ $(use_enable test tests-build) |
59 |
+ ) |
60 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
61 |
+} |
62 |
+ |
63 |
+multilib_src_compile() { |
64 |
+ emake |
65 |
+ |
66 |
+ if multilib_is_native_abi; then |
67 |
+ use doc && emake -C doc docs |
68 |
+ fi |
69 |
+} |
70 |
+ |
71 |
+multilib_src_test() { |
72 |
+ emake check |
73 |
+ |
74 |
+ # noinst_PROGRAMS from tests/Makefile.am |
75 |
+ tests/stress || die |
76 |
+} |
77 |
+ |
78 |
+multilib_src_install() { |
79 |
+ emake DESTDIR="${D}" install |
80 |
+ |
81 |
+ if multilib_is_native_abi; then |
82 |
+ gen_usr_ldscript -a usb-1.0 |
83 |
+ |
84 |
+ use doc && dodoc -r doc/html |
85 |
+ fi |
86 |
+} |
87 |
+ |
88 |
+multilib_src_install_all() { |
89 |
+ find "${ED}" -type f -name "*.la" -delete || die |
90 |
+ |
91 |
+ dodoc AUTHORS ChangeLog NEWS PORTING README TODO |
92 |
+ |
93 |
+ if use examples; then |
94 |
+ insinto /usr/share/doc/${PF}/examples |
95 |
+ doins examples/*.{c,h} |
96 |
+ insinto /usr/share/doc/${PF}/examples/getopt |
97 |
+ doins examples/getopt/*.{c,h} |
98 |
+ fi |
99 |
+} |