1 |
commit: 3c484cb5f653742e11e8fc51b8b2c424479129f6 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 13 19:24:07 2022 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 13 20:05:04 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c484cb5 |
7 |
|
8 |
dev-libs/libgusb: Version bump to 0.4.0 |
9 |
|
10 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
11 |
|
12 |
dev-libs/libgusb/Manifest | 1 + |
13 |
dev-libs/libgusb/libgusb-0.4.0.ebuild | 64 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 65 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/libgusb/Manifest b/dev-libs/libgusb/Manifest |
17 |
index 9d0b5549cd32..652ea0353b83 100644 |
18 |
--- a/dev-libs/libgusb/Manifest |
19 |
+++ b/dev-libs/libgusb/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST libgusb-0.3.10.tar.xz 42972 BLAKE2B 4c49aa15cbbbb56d5ee5b896adb3e34b45332cd846933fd3aa86a645e7d897418d0e7a30d9972980e6527f1e60fc6e579f5df119708a12b3e504ff695c94d922 SHA512 66bd7c292cb9df2799b02acd48dc4b07794e7339ea1bd6473ea512dfec1b8e7e58abbd40f16a2a4805240cc8df4aec050335edb4f4178ad12ac5275438b8ae59 |
22 |
+DIST libgusb-0.4.0.tar.xz 49844 BLAKE2B 9f2b552d8f224b4c8209f8adaec9d9131adf6ea938a25dca2ce2e6a8b4f154e3d9d6c75dc5bb1d42c6f00b2727136156c76f6291156f2c364aaa3343990ac3bd SHA512 80aa3dea90a7a49d1108cddf066232dcb3c3a41bbbec5e598fbb1f5a554997b2fbc3ad95e514813ffb575a018585deef6ec16ba4533eefb3c1a086e1cc4534ce |
23 |
|
24 |
diff --git a/dev-libs/libgusb/libgusb-0.4.0.ebuild b/dev-libs/libgusb/libgusb-0.4.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..4749b7480219 |
27 |
--- /dev/null |
28 |
+++ b/dev-libs/libgusb/libgusb-0.4.0.ebuild |
29 |
@@ -0,0 +1,64 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{8..11} ) |
36 |
+PYTHON_REQ_USE="xml(+)" |
37 |
+ |
38 |
+inherit meson-multilib python-any-r1 vala |
39 |
+ |
40 |
+DESCRIPTION="GObject wrapper for libusb" |
41 |
+HOMEPAGE="https://github.com/hughsie/libgusb" |
42 |
+SRC_URI="https://people.freedesktop.org/~hughsient/releases/${P}.tar.xz" |
43 |
+ |
44 |
+LICENSE="LGPL-2.1+" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" |
47 |
+ |
48 |
+IUSE="gtk-doc +introspection test +vala" |
49 |
+REQUIRED_USE="vala? ( introspection )" |
50 |
+RESTRICT="!test? ( test )" |
51 |
+ |
52 |
+RDEPEND=" |
53 |
+ >=dev-libs/glib-2.44.0:2[${MULTILIB_USEDEP}] |
54 |
+ virtual/libusb:1[udev,${MULTILIB_USEDEP}] |
55 |
+ >=dev-libs/json-glib-1.1.1[${MULTILIB_USEDEP}] |
56 |
+ introspection? ( >=dev-libs/gobject-introspection-1.54:= ) |
57 |
+ sys-apps/hwdata |
58 |
+" |
59 |
+DEPEND="${RDEPEND} |
60 |
+ test? ( >=dev-util/umockdev-0.17.7[${MULTILIB_USEDEP}] )" |
61 |
+BDEPEND=" |
62 |
+ $(python_gen_any_dep 'dev-python/setuptools[${PYTHON_USEDEP}]') |
63 |
+ gtk-doc? ( |
64 |
+ app-text/docbook-xml-dtd:4.1.2 |
65 |
+ app-text/docbook-xml-dtd:4.4 |
66 |
+ dev-util/gtk-doc |
67 |
+ ) |
68 |
+ vala? ( $(vala_depend) ) |
69 |
+ virtual/pkgconfig |
70 |
+" |
71 |
+ |
72 |
+python_check_deps() { |
73 |
+ python_has_version "dev-python/setuptools[${PYTHON_USEDEP}]" |
74 |
+} |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ default |
78 |
+ use vala && vala_setup |
79 |
+} |
80 |
+ |
81 |
+multilib_src_configure() { |
82 |
+ local emesonargs=( |
83 |
+ -Ddefault_library=shared |
84 |
+ $(meson_use test tests) |
85 |
+ $(meson_native_use_bool vala vapi) |
86 |
+ -Dusb_ids="${EPREFIX}"/usr/share/hwdata/usb.ids |
87 |
+ $(meson_native_use_bool gtk-doc docs) |
88 |
+ $(meson_native_use_bool introspection) |
89 |
+ $(meson_feature test umockdev) |
90 |
+ |
91 |
+ ) |
92 |
+ meson_src_configure |
93 |
+} |