summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2020-12-20 11:57:53 -0500
committerMike Gilbert <floppym@gentoo.org>2020-12-20 11:59:16 -0500
commitf4b2a279d9bbe36012760d659ebc30245a16a6e3 (patch)
treefae551bc24df77438ce5561fadf859b61ef2c4f7
parentnet-vpn/tailscale: Keyword 1.2.10-r1 arm, #760815 (diff)
downloadgentoo-f4b2a279d9bbe36012760d659ebc30245a16a6e3.tar.gz
gentoo-f4b2a279d9bbe36012760d659ebc30245a16a6e3.tar.bz2
gentoo-f4b2a279d9bbe36012760d659ebc30245a16a6e3.zip
x11-libs/libxkbcommon: use python-any-r1 for tests
Closes: https://bugs.gentoo.org/758866 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
-rw-r--r--x11-libs/libxkbcommon/libxkbcommon-1.0.3.ebuild14
1 files changed, 12 insertions, 2 deletions
diff --git a/x11-libs/libxkbcommon/libxkbcommon-1.0.3.ebuild b/x11-libs/libxkbcommon/libxkbcommon-1.0.3.ebuild
index e1f9cb29be7..7a792b68c9b 100644
--- a/x11-libs/libxkbcommon/libxkbcommon-1.0.3.ebuild
+++ b/x11-libs/libxkbcommon/libxkbcommon-1.0.3.ebuild
@@ -11,7 +11,9 @@ else
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 ~sparc ~x86"
fi
-inherit meson multilib-minimal ${GIT_ECLASS}
+PYTHON_COMPAT=( python3_{7..9} )
+
+inherit meson multilib-minimal ${GIT_ECLASS} python-any-r1
DESCRIPTION="keymap handling library for toolkits and window systems"
HOMEPAGE="https://xkbcommon.org/ https://github.com/xkbcommon/libxkbcommon/"
@@ -22,7 +24,9 @@ SLOT="0"
BDEPEND="
sys-devel/bison
- doc? ( app-doc/doxygen )"
+ doc? ( app-doc/doxygen )
+ test? ( ${PYTHON_DEPS} )
+"
RDEPEND="
X? ( >=x11-libs/libxcb-1.10:=[${MULTILIB_USEDEP},xkb] )
dev-libs/libxml2[${MULTILIB_USEDEP}]
@@ -31,6 +35,12 @@ RDEPEND="
DEPEND="${RDEPEND}
X? ( x11-base/xorg-proto )"
+pkg_setup() {
+ if use test; then
+ python-any-r1_pkg_setup
+ fi
+}
+
multilib_src_configure() {
local emesonargs=(
-Ddefault_library="$(usex static-libs both shared)"