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.
53 lines
1.2 KiB
53 lines
1.2 KiB
# Copyright 2015-2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit meson-multilib
|
|
|
|
DESCRIPTION="GObject bindings for libudev"
|
|
HOMEPAGE="https://wiki.gnome.org/Projects/libgudev"
|
|
SRC_URI="https://download.gnome.org/sources/libgudev/${PV}/${P}.tar.xz"
|
|
|
|
LICENSE="LGPL-2.1+"
|
|
SLOT="0/0"
|
|
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ppc ppc64 ~riscv ~s390 sparc x86"
|
|
IUSE="introspection test"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
RDEPEND="
|
|
>=dev-libs/glib-2.38.0:2[${MULTILIB_USEDEP}]
|
|
>=virtual/libudev-199:=[${MULTILIB_USEDEP}]
|
|
introspection? ( >=dev-libs/gobject-introspection-1.31.1 )
|
|
"
|
|
DEPEND="${RDEPEND}
|
|
test? ( dev-util/umockdev[${MULTILIB_USEDEP}] )
|
|
"
|
|
BDEPEND="
|
|
dev-util/glib-utils
|
|
virtual/pkgconfig
|
|
"
|
|
|
|
PATCHES=(
|
|
# https://gitlab.gnome.org/GNOME/libgudev/-/merge_requests/19
|
|
"${FILESDIR}/libgudev-test-double.patch"
|
|
)
|
|
|
|
multilib_src_configure() {
|
|
local emesonargs=(
|
|
$(meson_native_use_feature introspection)
|
|
-Dgtk_doc=false
|
|
$(meson_feature test tests)
|
|
-Dvapi=disabled
|
|
)
|
|
meson_src_configure
|
|
}
|
|
|
|
src_test() {
|
|
# libsandbox interferes somehow.
|
|
# There are no access violations, but tests fail.
|
|
# https://bugs.gentoo.org/805449
|
|
local -x SANDBOX_ON=0
|
|
meson-multilib_src_test
|
|
}
|