From 9500cb315bbe6705f796aa7454d76e0eef020002 Mon Sep 17 00:00:00 2001 From: Benda Xu Date: Thu, 19 Mar 2020 15:13:03 -0700 Subject: [PATCH] x11-misc/xkeyboard-config: Use python-any-r1 Closes: https://bugs.gentoo.org/712792 Signed-off-by: Benda Xu Signed-off-by: Matt Turner --- x11-misc/xkeyboard-config/xkeyboard-config-2.29.ebuild | 7 +++++++ x11-misc/xkeyboard-config/xkeyboard-config-9999.ebuild | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/x11-misc/xkeyboard-config/xkeyboard-config-2.29.ebuild b/x11-misc/xkeyboard-config/xkeyboard-config-2.29.ebuild index 6ff6eec8778a..2bbc4b24325b 100644 --- a/x11-misc/xkeyboard-config/xkeyboard-config-2.29.ebuild +++ b/x11-misc/xkeyboard-config/xkeyboard-config-2.29.ebuild @@ -3,6 +3,9 @@ EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8} ) +inherit python-any-r1 + DESCRIPTION="X keyboard configuration database" HOMEPAGE="https://www.freedesktop.org/wiki/Software/XKeyboardConfig https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config" @@ -32,6 +35,10 @@ PATCHES=( "${FILESDIR}"/${P}-fix-python3-support.patch ) +pkg_setup() { + python-any-r1_pkg_setup +} + src_prepare() { default [[ ${PV} == 9999 ]] && eautoreconf diff --git a/x11-misc/xkeyboard-config/xkeyboard-config-9999.ebuild b/x11-misc/xkeyboard-config/xkeyboard-config-9999.ebuild index 712663d9504c..8d54fdae4de8 100644 --- a/x11-misc/xkeyboard-config/xkeyboard-config-9999.ebuild +++ b/x11-misc/xkeyboard-config/xkeyboard-config-9999.ebuild @@ -3,6 +3,9 @@ EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8} ) +inherit python-any-r1 + DESCRIPTION="X keyboard configuration database" HOMEPAGE="https://www.freedesktop.org/wiki/Software/XKeyboardConfig https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config" @@ -28,6 +31,10 @@ BDEPEND=" RDEPEND="" DEPEND="${LIVE_DEPEND}" +pkg_setup() { + python-any-r1_pkg_setup +} + src_prepare() { default [[ ${PV} == 9999 ]] && eautoreconf -- 2.26.2