diff options
Diffstat (limited to 'dev-util/umockdev')
-rw-r--r-- | dev-util/umockdev/Manifest | 2 | ||||
-rw-r--r-- | dev-util/umockdev/umockdev-0.16.1-r1.ebuild | 53 |
2 files changed, 55 insertions, 0 deletions
diff --git a/dev-util/umockdev/Manifest b/dev-util/umockdev/Manifest index 872fd8e41f09..7b52e44f9286 100644 --- a/dev-util/umockdev/Manifest +++ b/dev-util/umockdev/Manifest @@ -1,4 +1,6 @@ AUX umockdev-0.12.1-preload-Declare-__xstat-prototypes-for-glibc-2.32.90.patch 1743 BLAKE2B de1529d047dfce8038d0d466181c8ae54ffb48087620f9a391da0914665bd53d7915acf6e2611816bdb9665821b6b5379736a293f6d4ed09d065840c4decf31b SHA512 3e975a3fc03f78272c40e04a1d7c504be0fb8b4442db4598b9762afb2126608569c13e671863b7b79f9bc46d7b52be015c73b8bdd164afd591cce691e22269e9 DIST umockdev-0.12.1.tar.xz 756920 BLAKE2B a8c1d9734f4c0a8e7f19405e011ce964efce6621b4886efead88e040bfe07d2f5a85f063977dfed1c8fb5a5bf4668024b6e687b688a9609cdba1db419518a8ac SHA512 a8995d09179c7d2d37d319f8e675fb15c3caa605c57b56cbb2e785088909d886e790864475feb82ab2b6eb2449038c636a06250d4f9eb8b28b38f0d80574824c +DIST umockdev-0.16.1.tar.xz 478308 BLAKE2B 3d49ca1d9c9b7573ac63f5f7ecd81071041597732b507619c333379095434ac55eb26f16bdf5897b94bbeb5c307a34b703accd220cd6202482e172dd3a6d1983 SHA512 baeaf05cc6b8d8e2a5cae16b808db759a18a969cea0f2ceed5f6c2521edc0c4c07dc16265a4821051de51f4314fd39d63ebf2da124fcd3e103ec743dadfedaa8 EBUILD umockdev-0.12.1.ebuild 1304 BLAKE2B 35be39188381c08265e988b7dfc58b6b1f48b57ddb9b8d253513b37e592239d53e0e3b3a7561767336a4910505c47d4db2bba5bcb9d8472b63395d748275e8f6 SHA512 68943daec6ca268b1cc2069286fd4432cdb036c161e4b6a19c1de935a8f28414db30edc854fa87cfc04523c494886d4dc2c86f296f6e8209eee9deb13faf0dbe +EBUILD umockdev-0.16.1-r1.ebuild 1108 BLAKE2B 1d1c0929beffe47d7752f8da835a3a8fb49ac5fba252afe918f34496632cee0fbf44977d38361d7cec53e284020bebe3b26440432cac35989931635b1bd0639b SHA512 4bb6f364395e19786b547506d57fb31a5b62ad539816c9cee5a3e528e15f0ca401adb23012a2a1414f6f653a0d19550a277d16c3ff54c762ca36670b5b40f635 MISC metadata.xml 388 BLAKE2B 5140e5be03021c8b50516cddf6a51b8715a1e110e13519313cd3e30b2317874cec5c56eea5168d47496a2055635b87effcc66dac54a66a482818da15b540186d SHA512 ca1c14fa200681d916d6d4539fa9ee8c64d6894d7b78870abfc4ad03446a30703f0fe862a11c5838e26719ae66e0bc944fe0ca75f0f89195128d4e8856b6cd78 diff --git a/dev-util/umockdev/umockdev-0.16.1-r1.ebuild b/dev-util/umockdev/umockdev-0.16.1-r1.ebuild new file mode 100644 index 000000000000..40ff4e8639d2 --- /dev/null +++ b/dev-util/umockdev/umockdev-0.16.1-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{7..10} ) + +inherit meson-multilib python-any-r1 vala + +DESCRIPTION="Mock hardware devices for creating unit tests" +HOMEPAGE="https://github.com/martinpitt/umockdev/" +SRC_URI="https://github.com/martinpitt/umockdev/releases/download/${PV}/${P}.tar.xz" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~sparc ~x86" +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_src_prepare +} + +multilib_src_configure() { + export VALAC="$(type -P valac-$(vala_best_api_version))" + meson_src_configure +} + +multilib_src_test() { + meson_src_test --no-suite fails-valgrind +} |