commit: 2c9338e1b8416afe956e7aa1cda3feeb70336880 Author: Lukas Schmelting <lschmelting <AT> posteo <DOT> com> AuthorDate: Sat Aug 2 16:31:31 2025 +0000 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> CommitDate: Sun Aug 3 09:55:24 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c9338e1
dev-util/umockdev: add 0.19.3 Signed-off-by: Lukas Schmelting <lschmelting <AT> posteo.com> Part-of: https://github.com/gentoo/gentoo/pull/43298 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> dev-util/umockdev/Manifest | 1 + dev-util/umockdev/umockdev-0.19.3.ebuild | 62 ++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) diff --git a/dev-util/umockdev/Manifest b/dev-util/umockdev/Manifest index 3a041b9a2eca..2dcbc8e7afa9 100644 --- a/dev-util/umockdev/Manifest +++ b/dev-util/umockdev/Manifest @@ -1,2 +1,3 @@ DIST umockdev-0.18.3.tar.xz 493724 BLAKE2B 989391474b7204a228a323244b75dc81992c69cd79a499ea701344311a890383eb6d589769df2006727c371757e4bf807831b9ccabde0fcbfd1b99054042fdc6 SHA512 565fedc4367b7896ac4fd9cee19d704d1f3f8b382c31069ceef81d0a0e8f3a38b775f28bd7a3652a7bb9c5cb62dd1f616ea81d7fc2ee7fda933bad44b32627d2 DIST umockdev-0.19.1.tar.xz 496652 BLAKE2B 92f9c6f069dc1e0c5f389c0a6ac914a92b83a2ab4a255385e5dab30cf223580f4f96551b95021b1a42bdb7911732e81088ee1d6c7afcccc3d845e0ff687ed1ed SHA512 3e7c892d0999b6a61f802445851d83bff7c5a2ddc9d0b673bebe2a130b3782d7788082f21bf3c4064e3bbf867c43cde9a583bdd54e2eea467ee430c8b5d4db1c +DIST umockdev-0.19.3.tar.xz 497840 BLAKE2B c67213b95ae07fae612c9c697abce0c818a145a76d2618ae4e12921ed80789405a58d9fec9eb3ead1d83dc0dc2c5bb13006ca2e320f142461508b74277fdceba SHA512 c0de1b6cbb0f2d6d880154c392cfc5a28e91079b16053acd76f50febb9073436d6cc9f4e0d354227169b1a6d6876e1c23dbbd8b835956f7b360af5ac24cd77b5 diff --git a/dev-util/umockdev/umockdev-0.19.3.ebuild b/dev-util/umockdev/umockdev-0.19.3.ebuild new file mode 100644 index 000000000000..c42fb72132ed --- /dev/null +++ b/dev-util/umockdev/umockdev-0.19.3.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{11..13} ) + +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.32:= +" +DEPEND="${RDEPEND} + test? ( + ${PYTHON_DEPS} + dev-libs/libgudev:=[${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() { + meson_src_test --no-suite fails-valgrind +}
