Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/umockdev/
Date: Tue, 01 Mar 2022 20:37:49
Message-Id: 1646167039.03383a5691771d0b50a4eef2e51fa09b4bc6af9d.mattst88@gentoo
1 commit: 03383a5691771d0b50a4eef2e51fa09b4bc6af9d
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 1 20:35:43 2022 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 1 20:37:19 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03383a56
7
8 dev-util/umockdev: Version bump to 0.17.7
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11
12 dev-util/umockdev/Manifest | 1 +
13 dev-util/umockdev/umockdev-0.17.7.ebuild | 53 ++++++++++++++++++++++++++++++++
14 2 files changed, 54 insertions(+)
15
16 diff --git a/dev-util/umockdev/Manifest b/dev-util/umockdev/Manifest
17 index e5f24bc74557..bfa7fc1ce1f6 100644
18 --- a/dev-util/umockdev/Manifest
19 +++ b/dev-util/umockdev/Manifest
20 @@ -1,2 +1,3 @@
21 DIST umockdev-0.16.2.tar.xz 478388 BLAKE2B 8fb2116ec7d48b238898052d959c596f4f91a65cf7b8292de8b8731e6fe50600282cb56093b8d6ca1afdc082a12c9af3c4a4f443283538ffb2aeae4c2b775596 SHA512 82020c068d5a158a762f865f4b25d1ee8596785a5b379c316c652004e1b1b9c533d4dad87818a490f89983a4c065f34e4ff5ca91360bac6d79b141dfa2139eea
22 DIST umockdev-0.17.6.tar.xz 486668 BLAKE2B 973c195b8fccd1c080665b65ffd47f8fe110118de9c541d5dda383e51e4dbcc36f77eeda6af5c774f4570a7b839190130fe95559fb3148e9937dae19dace6331 SHA512 05a86e2a583972d02fb3cfa26b017d44600831b6ed1415769d7cc7344357f484d34228b1593de2cfbfcce302611c0c22f045ee9fbd7fea76d8ae0b4ccd28d6ef
23 +DIST umockdev-0.17.7.tar.xz 486964 BLAKE2B f3c4021198c8adea47383f3d0c111f921c35550ca9b70c0711e71799ba89a44031356a687b88cc80aa51b1bf4606cfcf48a1d24d16501b0ea08f805e4e30cf83 SHA512 6fc611787c9679f450ce7cdf7dccb93a5d7435470b0b5f5cb1803036cf3c8ce73521af9e7777bec68485834cddfddba0ed9379a0818bfb072bb643cf6419c17d
24
25 diff --git a/dev-util/umockdev/umockdev-0.17.7.ebuild b/dev-util/umockdev/umockdev-0.17.7.ebuild
26 new file mode 100644
27 index 000000000000..7a53f924c567
28 --- /dev/null
29 +++ b/dev-util/umockdev/umockdev-0.17.7.ebuild
30 @@ -0,0 +1,53 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +PYTHON_COMPAT=( python3_{8..10} )
36 +
37 +inherit meson-multilib python-any-r1 vala
38 +
39 +DESCRIPTION="Mock hardware devices for creating unit tests"
40 +HOMEPAGE="https://github.com/martinpitt/umockdev/"
41 +SRC_URI="https://github.com/martinpitt/umockdev/releases/download/${PV}/${P}.tar.xz"
42 +
43 +LICENSE="LGPL-2.1+"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
46 +IUSE="test"
47 +RESTRICT="!test? ( test )"
48 +
49 +RDEPEND="
50 + net-libs/libpcap[${MULTILIB_USEDEP}]
51 + virtual/libudev:=[${MULTILIB_USEDEP}]
52 + >=dev-libs/glib-2.32:2[${MULTILIB_USEDEP}]
53 + >=dev-libs/gobject-introspection-1.32:=
54 +"
55 +DEPEND="${RDEPEND}
56 + test? (
57 + ${PYTHON_DEPS}
58 + dev-libs/libgudev:=[${MULTILIB_USEDEP}]
59 + )
60 +"
61 +BDEPEND="
62 + $(vala_depend)
63 + app-arch/xz-utils
64 + virtual/pkgconfig
65 +"
66 +
67 +pkg_setup() {
68 + use test && python-any-r1_pkg_setup
69 +}
70 +
71 +src_prepare() {
72 + default
73 + vala_src_prepare
74 +}
75 +
76 +multilib_src_configure() {
77 + export VALAC="$(type -P valac-$(vala_best_api_version))"
78 + meson_src_configure
79 +}
80 +
81 +multilib_src_test() {
82 + meson_src_test --no-suite fails-valgrind
83 +}