You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.1 KiB
54 lines
1.1 KiB
2 years ago
|
# Copyright 1999-2022 Gentoo Authors
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
PYTHON_COMPAT=( python3_{8..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 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~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
|
||
|
}
|