commit: ed9a689ee4621cdd122c18bda5de6c5b9157a355
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 20 09:08:16 2025 +0000
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Sat Dec 20 09:08:16 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed9a689e
dev-util/umockdev: add 0.19.4
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
dev-util/umockdev/Manifest | 1 +
dev-util/umockdev/umockdev-0.19.4.ebuild | 63 ++++++++++++++++++++++++++++++++
2 files changed, 64 insertions(+)
diff --git a/dev-util/umockdev/Manifest b/dev-util/umockdev/Manifest
index be682a1a45a6..349bf20a6f71 100644
--- a/dev-util/umockdev/Manifest
+++ b/dev-util/umockdev/Manifest
@@ -1,2 +1,3 @@
DIST umockdev-0.19.1.tar.xz 496652 BLAKE2B
92f9c6f069dc1e0c5f389c0a6ac914a92b83a2ab4a255385e5dab30cf223580f4f96551b95021b1a42bdb7911732e81088ee1d6c7afcccc3d845e0ff687ed1ed
SHA512
3e7c892d0999b6a61f802445851d83bff7c5a2ddc9d0b673bebe2a130b3782d7788082f21bf3c4064e3bbf867c43cde9a583bdd54e2eea467ee430c8b5d4db1c
DIST umockdev-0.19.3.tar.xz 497840 BLAKE2B
c67213b95ae07fae612c9c697abce0c818a145a76d2618ae4e12921ed80789405a58d9fec9eb3ead1d83dc0dc2c5bb13006ca2e320f142461508b74277fdceba
SHA512
c0de1b6cbb0f2d6d880154c392cfc5a28e91079b16053acd76f50febb9073436d6cc9f4e0d354227169b1a6d6876e1c23dbbd8b835956f7b360af5ac24cd77b5
+DIST umockdev-0.19.4.tar.xz 498200 BLAKE2B
d63e8703fc8987809dbadcabbd83c6eb631884f48d7d114a315edf8211fa97ddfa12bacbec7631051248be01380144db7c178d544991fb3aa1e88de43882e931
SHA512
89516283593a6da31d6fb722f9833f0993cb62998defffbe8b7cf4be7ca3011cc0db7785360d1f67189c0a909fce38ca07c62f35f0e725a4472b5ed9f0419ca1
diff --git a/dev-util/umockdev/umockdev-0.19.4.ebuild
b/dev-util/umockdev/umockdev-0.19.4.ebuild
new file mode 100644
index 000000000000..e9ff181701c0
--- /dev/null
+++ b/dev-util/umockdev/umockdev-0.19.4.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+PYTHON_COMPAT=( python3_{11..14} )
+
+inherit flag-o-matic meson-multilib python-any-r1 vala
+
+if [[ ${PV} = 9999* ]]; then
+ EGIT_REPO_URI="https://github.com/martinpitt/${PN}.git"
+ inherit git-r3
+else
+
SRC_URI="https://github.com/martinpitt/umockdev/releases/download/${PV}/${P}.tar.xz"
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv
~s390 ~sparc ~x86"
+fi
+
+DESCRIPTION="Mock hardware devices for creating unit tests"
+HOMEPAGE="https://github.com/martinpitt/umockdev/"
+
+LICENSE="LGPL-2.1+"
+SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ net-libs/libpcap[${MULTILIB_USEDEP}]
+ virtual/libudev:=[${MULTILIB_USEDEP}]
+ >=dev-libs/glib-2.32:2[${MULTILIB_USEDEP}]
+ >=dev-libs/gobject-introspection-1.82.0-r2:=
+"
+DEPEND="${RDEPEND}
+ test? (
+ ${PYTHON_DEPS}
+ dev-libs/libgudev:=[introspection,${MULTILIB_USEDEP}]
+ )
+"
+BDEPEND="
+ $(vala_depend)
+ app-arch/xz-utils
+ virtual/pkgconfig
+"
+
+pkg_setup() {
+ use test && python-any-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+ vala_setup
+}
+
+multilib_src_configure() {
+ # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101270
+ filter-flags -fno-semantic-interposition
+
+ export VALAC="$(type -P valac-$(vala_best_api_version))"
+ meson_src_configure
+}
+
+multilib_src_test() {
+ export SLOW_TESTBED_FACTOR=10
+ meson_src_test --num-processes=1 --timeout-multiplier=10 --setup
installed
+}