mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 23:27:12 -08:00
x11-libs/libdrm: Add IUSE=tools
Closes: https://bugs.gentoo.org/920514 Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
@@ -24,7 +24,7 @@ for card in ${VIDEO_CARDS}; do
|
||||
IUSE_VIDEO_CARDS+=" video_cards_${card}"
|
||||
done
|
||||
|
||||
IUSE="${IUSE_VIDEO_CARDS} udev valgrind"
|
||||
IUSE="${IUSE_VIDEO_CARDS} tools udev valgrind"
|
||||
RESTRICT="test" # see bug #236845
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
@@ -34,6 +34,7 @@ COMMON_DEPEND="
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
valgrind? ( dev-util/valgrind )"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
video_cards_amdgpu? ( tools? ( >=dev-util/cunit-2.1 ) )
|
||||
udev? ( virtual/udev )"
|
||||
BDEPEND="${PYTHON_DEPS}
|
||||
$(python_gen_any_dep 'dev-python/docutils[${PYTHON_USEDEP}]')"
|
||||
@@ -59,7 +60,13 @@ multilib_src_configure() {
|
||||
$(meson_feature video_cards_vmware vmwgfx)
|
||||
# valgrind installs its .pc file to the pkgconfig for the primary arch
|
||||
-Dvalgrind=$(usex valgrind auto disabled)
|
||||
-Dtests=false # Tests are restricted
|
||||
$(meson_native_use_bool tools install-test-programs)
|
||||
)
|
||||
|
||||
if multilib_is_native_abi && use tools; then
|
||||
emesonargs+=( -Dtests=true )
|
||||
else
|
||||
emesonargs+=( -Dtests=false )
|
||||
fi
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
<email>x11@gentoo.org</email>
|
||||
<name>X11</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="tools">Install optional tests and tools</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="freedesktop-gitlab">mesa/drm</remote-id>
|
||||
</upstream>
|
||||
|
||||
Reference in New Issue
Block a user