1 |
|
# Copyright 1999-2020 Gentoo Authors
|
|
1 |
# Copyright 1999-2023 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
|
EAPI=6
|
5 |
|
PYTHON_COMPAT=( python3_7 )
|
6 |
|
PYTHON_REQ_USE="xml"
|
|
4 |
EAPI=8
|
7 |
5 |
|
8 |
|
inherit gnome2 python-r1
|
|
6 |
PYTHON_COMPAT=( python3_{9..11} )
|
|
7 |
PYTHON_REQ_USE="xml(+)"
|
|
8 |
|
|
9 |
inherit gnome2 python-single-r1
|
9 |
10 |
|
10 |
11 |
DESCRIPTION="Interactive Python accessibility explorer"
|
11 |
|
HOMEPAGE="https://wiki.gnome.org/Apps/Accerciser"
|
|
12 |
HOMEPAGE="https://wiki.gnome.org/Apps/Accerciser https://gitlab.gnome.org/GNOME/accerciser"
|
12 |
13 |
|
13 |
14 |
LICENSE="BSD CC-BY-SA-3.0"
|
14 |
15 |
SLOT="0"
|
15 |
16 |
KEYWORDS="amd64 x86"
|
16 |
|
IUSE=""
|
17 |
17 |
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
18 |
18 |
|
19 |
19 |
RDEPEND="
|
20 |
20 |
>=app-accessibility/at-spi2-core-2.5.2:2
|
21 |
|
>=dev-python/pygobject-2.90.3:3[${PYTHON_USEDEP}]
|
22 |
21 |
>=x11-libs/gtk+-3.1.13:3[introspection]
|
|
22 |
$(python_gen_cond_dep '
|
|
23 |
>=dev-python/pygobject-2.90.3:3[${PYTHON_USEDEP}]
|
|
24 |
>=dev-python/ipython-0.11[${PYTHON_USEDEP}]
|
|
25 |
>=dev-python/pyatspi-2.1.5[${PYTHON_USEDEP}]
|
|
26 |
dev-python/pycairo[${PYTHON_USEDEP}]
|
|
27 |
dev-python/python-xlib[${PYTHON_USEDEP}]
|
|
28 |
')
|
23 |
29 |
|
24 |
30 |
dev-libs/atk[introspection]
|
25 |
31 |
>=dev-libs/glib-2.28:2
|
26 |
32 |
dev-libs/gobject-introspection:=
|
27 |
|
>=dev-python/ipython-0.11[${PYTHON_USEDEP}]
|
28 |
|
>=dev-python/pyatspi-2.1.5[${PYTHON_USEDEP}]
|
29 |
|
dev-python/pycairo[${PYTHON_USEDEP}]
|
30 |
33 |
x11-libs/gdk-pixbuf[introspection]
|
31 |
34 |
x11-libs/libwnck:3[introspection]
|
32 |
35 |
x11-libs/pango[introspection]
|
|
36 |
gnome-base/librsvg[introspection]
|
33 |
37 |
${PYTHON_DEPS}
|
34 |
38 |
"
|
35 |
|
DEPEND="${RDEPEND}
|
36 |
|
app-text/yelp-tools
|
37 |
|
>=dev-util/intltool-0.35
|
38 |
|
sys-devel/gettext
|
|
39 |
DEPEND="${RDEPEND}"
|
|
40 |
BDEPEND="
|
|
41 |
dev-util/itstool
|
|
42 |
>=sys-devel/gettext-0.19.8
|
39 |
43 |
virtual/pkgconfig
|
40 |
44 |
"
|
41 |
45 |
|
42 |
|
src_prepare() {
|
43 |
|
gnome2_src_prepare
|
44 |
|
|
45 |
|
# Leave shebang alone
|
46 |
|
sed 's:@PYTHON@:/usr/bin/python:' -i src/accerciser.in || die
|
47 |
|
|
48 |
|
python_copy_sources
|
49 |
|
}
|
50 |
|
|
51 |
|
src_configure() {
|
52 |
|
python_foreach_impl run_in_build_dir gnome2_src_configure
|
53 |
|
}
|
54 |
|
|
55 |
|
src_compile() {
|
56 |
|
python_foreach_impl run_in_build_dir gnome2_src_compile
|
57 |
|
}
|
58 |
|
|
59 |
46 |
src_install() {
|
60 |
|
installing() {
|
61 |
|
gnome2_src_install
|
62 |
|
python_doscript src/accerciser
|
63 |
|
}
|
64 |
|
python_foreach_impl run_in_build_dir installing
|
|
47 |
gnome2_src_install
|
|
48 |
python_optimize
|
65 |
49 |
}
|