1 |
commit: 265cdd847717520d14fe94e5798ca64c9fff23b3 |
2 |
Author: Matthew S. Turnbull <sparky <AT> bluefang-logic <DOT> com> |
3 |
AuthorDate: Mon Jan 25 06:03:07 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 1 13:02:43 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=265cdd84 |
7 |
|
8 |
app-accessibility/caribou: Package clean-up |
9 |
|
10 |
* Update to EAPI7. |
11 |
|
12 |
* Convert to python-single-r1, as it doesn't look |
13 |
like it actually installs python bindings. Also |
14 |
remove env setup handling from launcher scripts. |
15 |
|
16 |
* Drop GTK-2 support. |
17 |
|
18 |
Closes: https://bugs.gentoo.org/629108 |
19 |
Closes: https://bugs.gentoo.org/642582 |
20 |
Bug: https://bugs.gentoo.org/772950 |
21 |
Package-Manager: Portage-3.0.13, Repoman-3.0.2 |
22 |
Signed-off-by: Matthew S. Turnbull <sparky <AT> bluefang-logic.com> |
23 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
24 |
|
25 |
app-accessibility/caribou/caribou-0.4.21-r3.ebuild | 96 ++++++++++++++++++++++ |
26 |
.../caribou/files/caribou-fix-python-env.patch | 58 +++++++++++++ |
27 |
2 files changed, 154 insertions(+) |
28 |
|
29 |
diff --git a/app-accessibility/caribou/caribou-0.4.21-r3.ebuild b/app-accessibility/caribou/caribou-0.4.21-r3.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..d5ff2747cb3 |
32 |
--- /dev/null |
33 |
+++ b/app-accessibility/caribou/caribou-0.4.21-r3.ebuild |
34 |
@@ -0,0 +1,96 @@ |
35 |
+# Copyright 1999-2021 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+ |
40 |
+PYTHON_COMPAT=( python3_{7..9} ) |
41 |
+PYTHON_REQ_USE="xml" |
42 |
+ |
43 |
+inherit gnome.org gnome2-utils python-single-r1 vala |
44 |
+ |
45 |
+DESCRIPTION="Input assistive technology intended for switch and pointer users" |
46 |
+HOMEPAGE="https://wiki.gnome.org/Projects/Caribou" |
47 |
+ |
48 |
+LICENSE="LGPL-2.1" |
49 |
+SLOT="0" |
50 |
+IUSE="" |
51 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
52 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
53 |
+ |
54 |
+COMMON_DEPEND=" |
55 |
+ ${PYTHON_DEPS} |
56 |
+ app-accessibility/at-spi2-core |
57 |
+ $(python_gen_cond_dep ' |
58 |
+ >=dev-python/pygobject-2.90.3:3[${PYTHON_USEDEP}] |
59 |
+ ') |
60 |
+ >=dev-libs/gobject-introspection-0.10.7:= |
61 |
+ dev-libs/libgee:0.8 |
62 |
+ dev-libs/libxml2 |
63 |
+ >=media-libs/clutter-1.5.11:1.0[introspection] |
64 |
+ >=x11-libs/gtk+-3:3[introspection] |
65 |
+ x11-libs/libX11 |
66 |
+ x11-libs/libxklavier |
67 |
+ x11-libs/libXtst |
68 |
+" |
69 |
+# gsettings-desktop-schemas is needed for the 'toolkit-accessibility' key |
70 |
+# pyatspi-2.1.90 needed to run caribou if pygobject:3 is installed |
71 |
+# librsvg needed to load svg images in css styles |
72 |
+RDEPEND=" |
73 |
+ ${COMMON_DEPEND} |
74 |
+ dev-libs/glib[dbus] |
75 |
+ $(python_gen_cond_dep ' |
76 |
+ >=dev-python/pyatspi-2.1.90[${PYTHON_USEDEP}] |
77 |
+ ') |
78 |
+ >=gnome-base/gsettings-desktop-schemas-3 |
79 |
+ gnome-base/librsvg:2 |
80 |
+ sys-apps/dbus |
81 |
+ !<x11-base/xorg-server-1.20.10 |
82 |
+" |
83 |
+DEPEND=" |
84 |
+ ${COMMON_DEPEND} |
85 |
+ dev-libs/libxslt |
86 |
+" |
87 |
+BDEPEND=" |
88 |
+ $(vala_depend) |
89 |
+ >=dev-util/intltool-0.35.5 |
90 |
+ virtual/pkgconfig |
91 |
+" |
92 |
+ |
93 |
+PATCHES=( |
94 |
+ "${FILESDIR}/${PN}-fix-compilation-error.patch" |
95 |
+ "${FILESDIR}/${PN}-fix-subkey-popmenu.patch" |
96 |
+ "${FILESDIR}/${PN}-fix-xadapter-xkb-calls.patch" |
97 |
+ "${FILESDIR}/${PN}-fix-antler-style-css.patch" |
98 |
+ "${FILESDIR}/${PN}-fix-python-env.patch" |
99 |
+) |
100 |
+ |
101 |
+src_prepare() { |
102 |
+ default |
103 |
+ vala_src_prepare |
104 |
+ gnome2_disable_deprecation_warning |
105 |
+} |
106 |
+ |
107 |
+src_configure() { |
108 |
+ econf \ |
109 |
+ --disable-maintainer-mode \ |
110 |
+ --disable-schemas-compile \ |
111 |
+ --disable-docs \ |
112 |
+ --disable-static \ |
113 |
+ --disable-gtk2-module \ |
114 |
+ --enable-gtk3-module |
115 |
+} |
116 |
+ |
117 |
+src_install() { |
118 |
+ DOCS="AUTHORS NEWS README" |
119 |
+ default |
120 |
+ find "${D}" -name '*.la' -delete || die |
121 |
+ python_optimize |
122 |
+} |
123 |
+ |
124 |
+pkg_postinst() { |
125 |
+ gnome2_schemas_update |
126 |
+} |
127 |
+ |
128 |
+pkg_postrm() { |
129 |
+ gnome2_schemas_update |
130 |
+} |
131 |
|
132 |
diff --git a/app-accessibility/caribou/files/caribou-fix-python-env.patch b/app-accessibility/caribou/files/caribou-fix-python-env.patch |
133 |
new file mode 100644 |
134 |
index 00000000000..3a0b26698fa |
135 |
--- /dev/null |
136 |
+++ b/app-accessibility/caribou/files/caribou-fix-python-env.patch |
137 |
@@ -0,0 +1,58 @@ |
138 |
+--- a/bin/antler-keyboard.in |
139 |
++++ b/bin/antler-keyboard.in |
140 |
+@@ -18,24 +18,4 @@ |
141 |
+ # along with this program; if not, write to the Free Software Foundation, |
142 |
+ # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
143 |
+ |
144 |
+-script_dir="$(dirname "$(readlink -f ${0})")" |
145 |
+- |
146 |
+-prefix=@prefix@ |
147 |
+-exec_prefix=@exec_prefix@ |
148 |
+-datarootdir=@datarootdir@ |
149 |
+- |
150 |
+-if [ $script_dir = "@libexecdir@" ] |
151 |
+-then |
152 |
+- datadir="$(@PYTHON@ -c "from gi.repository import GLib; print(':'.join(GLib.get_system_data_dirs()))")" |
153 |
+- export PYTHONPATH="${prefix}/lib/python@PYTHON_VERSION@/site-packages:${prefix}/lib64/python@PYTHON_VERSION@/site-packages${PYTHONPATH:+:$PYTHONPATH}" |
154 |
+- export GI_TYPELIB_PATH="@libdir@/girepository-1.0${GI_TYPELIB_PATH:+:$GI_TYPELIB_PATH}" |
155 |
+- export LD_LIBRARY_PATH="@libdir@${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" |
156 |
+- export XDG_DATA_DIRS="@datadir@${datadir:+:$datadir}" |
157 |
+-else |
158 |
+- export PYTHONPATH="$(dirname $script_dir)${PYTHONPATH:+:$PYTHONPATH}" |
159 |
+- export GI_TYPELIB_PATH="$(dirname $script_dir)/libcaribou${GI_TYPELIB_PATH:+:$GI_TYPELIB_PATH}" |
160 |
+- export LD_LIBRARY_PATH="$(dirname $script_dir)/libcaribou/.libs${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" |
161 |
+- export ANTLER_THEME_PATH="$(dirname $script_dir)/data" |
162 |
+-fi |
163 |
+- |
164 |
+-@PYTHON@ -m caribou.antler.main "$@" |
165 |
++exec @PYTHON@ -m caribou.antler.main "$@" |
166 |
+--- a/bin/caribou-preferences.in |
167 |
++++ b/bin/caribou-preferences.in |
168 |
+@@ -18,26 +18,7 @@ |
169 |
+ # along with this program; if not, write to the Free Software Foundation, |
170 |
+ # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
171 |
+ |
172 |
+-script_dir="$(dirname "$(readlink -f ${0})")" |
173 |
+- |
174 |
+-prefix=@prefix@ |
175 |
+-exec_prefix=@exec_prefix@ |
176 |
+-datarootdir=@datarootdir@ |
177 |
+- |
178 |
+-if [ $script_dir = "@bindir@" ] |
179 |
+-then |
180 |
+- datadir="$(@PYTHON@ -c "from gi.repository import GLib; print(':'.join(GLib.get_system_data_dirs()))")" |
181 |
+- export PYTHONPATH="@prefix@/lib/python@PYTHON_VERSION@/site-packages${PYTHONPATH:+:$PYTHONPATH}" |
182 |
+- export GI_TYPELIB_PATH="@libdir@/girepository-1.0${GI_TYPELIB_PATH:+:$GI_TYPELIB_PATH}" |
183 |
+- export LD_LIBRARY_PATH="@libdir@${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" |
184 |
+- export XDG_DATA_DIRS="@datadir@${datadir:+:$datadir}" |
185 |
+-else |
186 |
+- export PYTHONPATH="$(dirname $script_dir)${PYTHONPATH:+:$PYTHONPATH}" |
187 |
+- export GI_TYPELIB_PATH="$(dirname $script_dir)/libcaribou${GI_TYPELIB_PATH:+:$GI_TYPELIB_PATH}" |
188 |
+- export LD_LIBRARY_PATH="$(dirname $script_dir)/libcaribou/.lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" |
189 |
+-fi |
190 |
+- |
191 |
+-@PYTHON@ -c " |
192 |
++exec @PYTHON@ -c " |
193 |
+ import signal |
194 |
+ signal.signal(signal.SIGINT, signal.SIG_DFL) |
195 |
+ |