commit:     d4a696225afffa1542beac38c620e28fcbfc90fe
Author:     Alexey Zapparov <alexey <AT> zapparov <DOT> com>
AuthorDate: Mon Jan 17 03:36:23 2022 +0000
Commit:     Alexey Zapparov <alexey <AT> zapparov <DOT> com>
CommitDate: Mon Jan 17 03:36:23 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d4a69622

x11-themes/bibata-xcursors: fix QA failures

Closes: https://bugs.gentoo.org/830149
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Alexey Zapparov <alexey <AT> zapparov.com>

 ...ors-1.1.2.ebuild => bibata-xcursors-1.1.2-r1.ebuild} | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/x11-themes/bibata-xcursors/bibata-xcursors-1.1.2.ebuild 
b/x11-themes/bibata-xcursors/bibata-xcursors-1.1.2-r1.ebuild
similarity index 80%
rename from x11-themes/bibata-xcursors/bibata-xcursors-1.1.2.ebuild
rename to x11-themes/bibata-xcursors/bibata-xcursors-1.1.2-r1.ebuild
index 170981fd1..7797f0381 100644
--- a/x11-themes/bibata-xcursors/bibata-xcursors-1.1.2.ebuild
+++ b/x11-themes/bibata-xcursors/bibata-xcursors-1.1.2-r1.ebuild
@@ -3,6 +3,9 @@
 
 EAPI=8
 
+PYTHON_COMPAT=( python3_{8..10} )
+inherit python-any-r1
+
 MY_PN="Bibata_Cursor"
 
 DESCRIPTION="Opensource, compact, and material-designed cursor set"
@@ -18,12 +21,24 @@ KEYWORDS="~amd64 ~x86"
 
 RDEPEND="x11-libs/libXcursor"
 BDEPEND="
-       dev-python/clickgen
+       ${RDEPEND}
+       ${PYTHON_DEPS}
+       $(python_gen_any_dep '
+               dev-python/clickgen[${PYTHON_USEDEP}]
+       ')
        app-arch/unzip
 "
 
 S="${WORKDIR}/${MY_PN}-${PV}"
 
+python_check_deps() {
+       has_version -b "dev-python/clickgen[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+       python-any-r1_pkg_setup
+}
+
 src_unpack() {
        unpack "${P}.tar.gz"
        cd "${S}" || die "Cannot change dir into '${S}'"

Reply via email to