1 |
commit: d31a5b37c1cfd21c90ad5678c889f21eff14604e |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 29 20:12:11 2021 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 29 20:58:23 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d31a5b37 |
7 |
|
8 |
dev-util/umockdev: Version bump to 0.16.1 |
9 |
|
10 |
Based on an ebuild by Fabio Scaccabarozzi <fsvm88 <AT> gmail.com> |
11 |
|
12 |
Closes: https://bugs.gentoo.org/779748 |
13 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
14 |
|
15 |
dev-util/umockdev/Manifest | 1 + |
16 |
dev-util/umockdev/umockdev-0.16.1.ebuild | 52 ++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 53 insertions(+) |
18 |
|
19 |
diff --git a/dev-util/umockdev/Manifest b/dev-util/umockdev/Manifest |
20 |
index 976dbbd1c42..c6d45dc28fc 100644 |
21 |
--- a/dev-util/umockdev/Manifest |
22 |
+++ b/dev-util/umockdev/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST umockdev-0.12.1.tar.xz 756920 BLAKE2B a8c1d9734f4c0a8e7f19405e011ce964efce6621b4886efead88e040bfe07d2f5a85f063977dfed1c8fb5a5bf4668024b6e687b688a9609cdba1db419518a8ac SHA512 a8995d09179c7d2d37d319f8e675fb15c3caa605c57b56cbb2e785088909d886e790864475feb82ab2b6eb2449038c636a06250d4f9eb8b28b38f0d80574824c |
25 |
+DIST umockdev-0.16.1.tar.xz 478308 BLAKE2B 3d49ca1d9c9b7573ac63f5f7ecd81071041597732b507619c333379095434ac55eb26f16bdf5897b94bbeb5c307a34b703accd220cd6202482e172dd3a6d1983 SHA512 baeaf05cc6b8d8e2a5cae16b808db759a18a969cea0f2ceed5f6c2521edc0c4c07dc16265a4821051de51f4314fd39d63ebf2da124fcd3e103ec743dadfedaa8 |
26 |
|
27 |
diff --git a/dev-util/umockdev/umockdev-0.16.1.ebuild b/dev-util/umockdev/umockdev-0.16.1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..ad527911b17 |
30 |
--- /dev/null |
31 |
+++ b/dev-util/umockdev/umockdev-0.16.1.ebuild |
32 |
@@ -0,0 +1,52 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+PYTHON_COMPAT=( python3_{7..10} ) |
38 |
+ |
39 |
+inherit meson-multilib python-any-r1 vala |
40 |
+ |
41 |
+DESCRIPTION="Mock hardware devices for creating unit tests" |
42 |
+HOMEPAGE="https://github.com/martinpitt/umockdev/" |
43 |
+SRC_URI="https://github.com/martinpitt/umockdev/releases/download/${PV}/${P}.tar.xz" |
44 |
+ |
45 |
+LICENSE="LGPL-2.1+" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" |
48 |
+IUSE="test" |
49 |
+RESTRICT="!test? ( test )" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ virtual/libudev:=[${MULTILIB_USEDEP}] |
53 |
+ >=dev-libs/glib-2.32:2[${MULTILIB_USEDEP}] |
54 |
+ >=dev-libs/gobject-introspection-1.32:= |
55 |
+" |
56 |
+DEPEND="${RDEPEND} |
57 |
+ test? ( |
58 |
+ ${PYTHON_DEPS} |
59 |
+ dev-libs/libgudev:=[${MULTILIB_USEDEP}] |
60 |
+ ) |
61 |
+" |
62 |
+BDEPEND=" |
63 |
+ $(vala_depend) |
64 |
+ app-arch/xz-utils |
65 |
+ virtual/pkgconfig |
66 |
+" |
67 |
+ |
68 |
+pkg_setup() { |
69 |
+ use test && python-any-r1_pkg_setup |
70 |
+} |
71 |
+ |
72 |
+src_prepare() { |
73 |
+ default |
74 |
+ vala_src_prepare |
75 |
+} |
76 |
+ |
77 |
+multilib_src_configure() { |
78 |
+ export VALAC="$(type -P valac-$(vala_best_api_version))" |
79 |
+ meson_src_configure |
80 |
+} |
81 |
+ |
82 |
+multilib_src_test() { |
83 |
+ meson_src_test --no-suite fails-valgrind |
84 |
+} |