commit: f4b2a279d9bbe36012760d659ebc30245a16a6e3 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> AuthorDate: Sun Dec 20 16:57:53 2020 +0000 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> CommitDate: Sun Dec 20 16:59:16 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4b2a279
x11-libs/libxkbcommon: use python-any-r1 for tests Closes: https://bugs.gentoo.org/758866 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> x11-libs/libxkbcommon/libxkbcommon-1.0.3.ebuild | 14 ++++++++++++-- 1 file 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)"