1 |
commit: fa1dff08ba14f84b92edb2bc9b4ef4dda278a109 |
2 |
Author: Matthew Turnbull <sparky <AT> bluefang-logic <DOT> com> |
3 |
AuthorDate: Tue May 12 04:40:48 2020 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 29 00:10:42 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa1dff08 |
7 |
|
8 |
app-accessibility/caribou: python 3.7 support |
9 |
|
10 |
Bug: https://bugs.gentoo.org/718316 |
11 |
Bug: https://bugs.gentoo.org/704532 |
12 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
13 |
Signed-off-by: Matthew S. Turnbull <sparky <AT> bluefang-logic.com> |
14 |
Closes: https://github.com/gentoo/gentoo/pull/15774 |
15 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
16 |
|
17 |
app-accessibility/caribou/caribou-0.4.21-r1.ebuild | 92 ++++++++++++++++++++++ |
18 |
1 file changed, 92 insertions(+) |
19 |
|
20 |
diff --git a/app-accessibility/caribou/caribou-0.4.21-r1.ebuild b/app-accessibility/caribou/caribou-0.4.21-r1.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000000..a6ab60c8d63 |
23 |
--- /dev/null |
24 |
+++ b/app-accessibility/caribou/caribou-0.4.21-r1.ebuild |
25 |
@@ -0,0 +1,92 @@ |
26 |
+# Copyright 1999-2020 Gentoo Authors |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=6 |
30 |
+GNOME2_LA_PUNT="yes" |
31 |
+PYTHON_COMPAT=( python3_{6,7} ) |
32 |
+PYTHON_REQ_USE="xml" |
33 |
+ |
34 |
+inherit gnome2 python-r1 |
35 |
+ |
36 |
+DESCRIPTION="Input assistive technology intended for switch and pointer users" |
37 |
+HOMEPAGE="https://wiki.gnome.org/Projects/Caribou" |
38 |
+ |
39 |
+LICENSE="LGPL-2.1" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
42 |
+ |
43 |
+IUSE="" |
44 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
45 |
+ |
46 |
+COMMON_DEPEND=" |
47 |
+ app-accessibility/at-spi2-core |
48 |
+ >=dev-python/pygobject-2.90.3:3[${PYTHON_USEDEP}] |
49 |
+ >=x11-libs/gtk+-3:3[introspection] |
50 |
+ x11-libs/gtk+:2 |
51 |
+ >=dev-libs/gobject-introspection-0.10.7:= |
52 |
+ dev-libs/libgee:0.8 |
53 |
+ dev-libs/libxml2 |
54 |
+ >=media-libs/clutter-1.5.11:1.0[introspection] |
55 |
+ x11-libs/libX11 |
56 |
+ x11-libs/libxklavier |
57 |
+ x11-libs/libXtst |
58 |
+ ${PYTHON_DEPS} |
59 |
+" |
60 |
+# gsettings-desktop-schemas is needed for the 'toolkit-accessibility' key |
61 |
+# pyatspi-2.1.90 needed to run caribou if pygobject:3 is installed |
62 |
+# librsvg needed to load svg images in css styles |
63 |
+RDEPEND="${COMMON_DEPEND} |
64 |
+ dev-libs/glib[dbus] |
65 |
+ >=dev-python/pyatspi-2.1.90[${PYTHON_USEDEP}] |
66 |
+ >=gnome-base/gsettings-desktop-schemas-3 |
67 |
+ gnome-base/librsvg:2 |
68 |
+ sys-apps/dbus |
69 |
+" |
70 |
+DEPEND="${COMMON_DEPEND} |
71 |
+ dev-libs/libxslt |
72 |
+ >=dev-util/intltool-0.35.5 |
73 |
+ virtual/pkgconfig |
74 |
+" |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ # FIXME: Now this supports python3 too... |
78 |
+ # delete custom PYTHONPATH, useless on Gentoo and potential bug source |
79 |
+ # + caribou is python2 only so fix the shell scripts |
80 |
+# sed -e '/export PYTHONPATH=.*python/ d' \ |
81 |
+# -e "s:@PYTHON@:${EPREFIX}/usr/bin/python2:" \ |
82 |
+# -i bin/{antler-keyboard,caribou-preferences}.in || |
83 |
+# die "sed failed" |
84 |
+ |
85 |
+ gnome2_src_prepare |
86 |
+ |
87 |
+ prepare_caribou() { |
88 |
+ mkdir -p "${BUILD_DIR}" || die |
89 |
+ } |
90 |
+ python_foreach_impl prepare_caribou |
91 |
+} |
92 |
+ |
93 |
+src_configure() { |
94 |
+ ECONF_SOURCE="${S}" python_foreach_impl run_in_build_dir \ |
95 |
+ gnome2_src_configure \ |
96 |
+ --disable-docs \ |
97 |
+ --disable-static \ |
98 |
+ --enable-gtk3-module \ |
99 |
+ --enable-gtk2-module \ |
100 |
+ VALAC=$(type -P true) |
101 |
+ # vala is not needed for tarball builds, but configure checks for it... |
102 |
+} |
103 |
+ |
104 |
+src_compile() { |
105 |
+ python_foreach_impl run_in_build_dir gnome2_src_compile |
106 |
+} |
107 |
+ |
108 |
+src_test() { |
109 |
+ python_foreach_impl run_in_build_dir default |
110 |
+} |
111 |
+ |
112 |
+src_install() { |
113 |
+ python_foreach_impl run_in_build_dir gnome2_src_install |
114 |
+ |
115 |
+ # https://bugzilla.gnome.org/show_bug.cgi?id=769323 |
116 |
+ dodoc AUTHORS NEWS README # ChangeLog simply points to git log |
117 |
+} |