1 |
commit: 840b90818081c7281d92c9cf01be658138ec0d6d |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 27 04:19:56 2022 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 27 04:43:53 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=840b9081 |
7 |
|
8 |
gui-libs/gtk: Depend on pygobject for USE=introspection |
9 |
|
10 |
Closes: https://bugs.gentoo.org/835898 |
11 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
12 |
|
13 |
gui-libs/gtk/gtk-4.6.2.ebuild | 17 ++++++++++++++++- |
14 |
1 file changed, 16 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/gui-libs/gtk/gtk-4.6.2.ebuild b/gui-libs/gtk/gtk-4.6.2.ebuild |
17 |
index 2b60e61d6409..b3e13e5d5acf 100644 |
18 |
--- a/gui-libs/gtk/gtk-4.6.2.ebuild |
19 |
+++ b/gui-libs/gtk/gtk-4.6.2.ebuild |
20 |
@@ -3,7 +3,8 @@ |
21 |
|
22 |
EAPI=7 |
23 |
|
24 |
-inherit gnome.org gnome2-utils meson optfeature virtualx xdg |
25 |
+PYTHON_COMPAT=( python3_{8..10} ) |
26 |
+inherit gnome.org gnome2-utils meson optfeature python-any-r1 virtualx xdg |
27 |
|
28 |
DESCRIPTION="GTK is a multi-platform toolkit for creating graphical user interfaces" |
29 |
HOMEPAGE="https://www.gtk.org/ https://gitlab.gnome.org/GNOME/gtk/" |
30 |
@@ -72,6 +73,12 @@ PDEPEND=" |
31 |
" |
32 |
BDEPEND=" |
33 |
dev-libs/gobject-introspection-common |
34 |
+ introspection? ( |
35 |
+ ${PYTHON_DEPS} |
36 |
+ $(python_gen_any_dep ' |
37 |
+ dev-python/pygobject:3[${PYTHON_USEDEP}] |
38 |
+ ') |
39 |
+ ) |
40 |
dev-python/docutils |
41 |
>=dev-util/gdbus-codegen-2.48 |
42 |
dev-util/glib-utils |
43 |
@@ -83,6 +90,14 @@ BDEPEND=" |
44 |
) |
45 |
" |
46 |
|
47 |
+python_check_deps() { |
48 |
+ python_has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" || return |
49 |
+} |
50 |
+ |
51 |
+pkg_setup() { |
52 |
+ use introspection && python-any-r1_pkg_setup |
53 |
+} |
54 |
+ |
55 |
src_prepare() { |
56 |
xdg_src_prepare |
57 |
# dev-python/docutils installs rst2man.py, not rst2man |