1 |
commit: 80f402602c6de344d3da225ed5ae9b83c36b1286 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 16 07:38:24 2020 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 16 07:49:15 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80f40260 |
7 |
|
8 |
app-accessibility/brltty: bump to 6.1, add py3.8 |
9 |
|
10 |
Package-Manager: Portage-2.3.103, Repoman-2.3.20 |
11 |
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org> |
12 |
|
13 |
app-accessibility/brltty/Manifest | 1 + |
14 |
app-accessibility/brltty/brltty-6.1.ebuild | 217 +++++++++++++++++++++++++++++ |
15 |
2 files changed, 218 insertions(+) |
16 |
|
17 |
diff --git a/app-accessibility/brltty/Manifest b/app-accessibility/brltty/Manifest |
18 |
index 5057b79d6e5..eeab6d53757 100644 |
19 |
--- a/app-accessibility/brltty/Manifest |
20 |
+++ b/app-accessibility/brltty/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST brltty-6.0.tar.xz 2879976 BLAKE2B 31bd45b63838d119d940492c615deb27ec47389c68afa39f19da3534324914695343344260799a10deae6ca3de41bedf9b0c1de1f78dbe01a89b694c2aa6e265 SHA512 07344fa902ad169967ca39d19b09dfea24e698011031dd63dce3eb997a4cb86622ee9427b216976b3ef60e5cbabb710a621621447c6bfa2313748fc1a1cf4b06 |
23 |
+DIST brltty-6.1.tar.xz 3394852 BLAKE2B 03e6358721dcd5c3bdee3301a1ed827a690128ec339669543279c7e9a115bef6c5d8630e4af2d0b214b9c7c3eaa9001ab4c54ae7fb899cb3bc675985f51d6933 SHA512 030ef60ef7a9a60dc2fba2a64ea0a0868395eee6f2f86876b4e4111e804a05b44f798a154a69a8f5e0f6358130993c360a550f7decac0535450f9cf939231eaf |
24 |
|
25 |
diff --git a/app-accessibility/brltty/brltty-6.1.ebuild b/app-accessibility/brltty/brltty-6.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..3940a5d9c5f |
28 |
--- /dev/null |
29 |
+++ b/app-accessibility/brltty/brltty-6.1.ebuild |
30 |
@@ -0,0 +1,217 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
37 |
+FINDLIB_USE="ocaml" |
38 |
+JAVA_PKG_WANT_SOURCE="1.8" |
39 |
+JAVA_PKG_WANT_TARGET="1.8" |
40 |
+ |
41 |
+inherit findlib eutils multilib toolchain-funcs java-pkg-opt-2 flag-o-matic usr-ldscript \ |
42 |
+ autotools udev systemd python-r1 |
43 |
+ |
44 |
+DESCRIPTION="Daemon that provides access to the Linux/Unix console for a blind person" |
45 |
+HOMEPAGE="https://brltty.app/" |
46 |
+SRC_URI="https://brltty.app/archive/${P}.tar.xz" |
47 |
+ |
48 |
+LICENSE="GPL-2 LGPL-2.1" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86" |
51 |
+IUSE="+api +beeper bluetooth +contracted-braille doc +fm gpm iconv icu |
52 |
+ java louis +midi ncurses nls ocaml +pcm policykit python |
53 |
+ usb systemd +speech tcl xml X" |
54 |
+REQUIRED_USE="doc? ( api ) |
55 |
+ java? ( api ) |
56 |
+ ocaml? ( api ) |
57 |
+ python? ( api ${PYTHON_REQUIRED_USE} ) |
58 |
+ tcl? ( api )" |
59 |
+ |
60 |
+DEPEND=" |
61 |
+ app-accessibility/at-spi2-core:2 |
62 |
+ dev-libs/libpcre2[pcre32] |
63 |
+ sys-apps/dbus |
64 |
+ bluetooth? ( net-wireless/bluez ) |
65 |
+ gpm? ( >=sys-libs/gpm-1.20 ) |
66 |
+ iconv? ( virtual/libiconv ) |
67 |
+ icu? ( dev-libs/icu:= ) |
68 |
+ louis? ( dev-libs/liblouis:= ) |
69 |
+ midi? ( media-libs/alsa-lib ) |
70 |
+ ncurses? ( sys-libs/ncurses:0= ) |
71 |
+ pcm? ( media-libs/alsa-lib ) |
72 |
+ policykit? ( sys-auth/polkit ) |
73 |
+ python? ( ${PYTHON_DEPS} ) |
74 |
+ speech? ( |
75 |
+ app-accessibility/espeak |
76 |
+ app-accessibility/flite |
77 |
+ app-accessibility/speech-dispatcher |
78 |
+ ) |
79 |
+ systemd? ( sys-apps/systemd ) |
80 |
+ tcl? ( >=dev-lang/tcl-8.4.15:0= ) |
81 |
+ usb? ( virtual/libusb:0 ) |
82 |
+ xml? ( dev-libs/expat ) |
83 |
+ X? ( |
84 |
+ x11-libs/libX11 |
85 |
+ x11-libs/libXaw |
86 |
+ x11-libs/libXfixes |
87 |
+ x11-libs/libXt |
88 |
+ x11-libs/libXtst |
89 |
+ )" |
90 |
+RDEPEND="${DEPEND} |
91 |
+ java? ( >=virtual/jre-1.4 ) |
92 |
+" |
93 |
+BDEPEND=" |
94 |
+ virtual/pkgconfig |
95 |
+ java? ( >=virtual/jdk-1.4 ) |
96 |
+ nls? ( virtual/libintl ) |
97 |
+ python? ( >=dev-python/cython-0.16[${PYTHON_USEDEP}] ) |
98 |
+" |
99 |
+ |
100 |
+HTML_DOCS=( "${S}"/Documents/Manual-BrlAPI/. ) |
101 |
+ |
102 |
+PATCHES=( |
103 |
+ "${FILESDIR}"/${PN}-6.0-udev.patch |
104 |
+ "${FILESDIR}"/${PN}-5.2-respect-AR.patch |
105 |
+) |
106 |
+ |
107 |
+src_prepare() { |
108 |
+ default |
109 |
+ |
110 |
+ java-pkg-opt-2_src_prepare |
111 |
+ |
112 |
+ # We run eautoconf instead of using eautoreconf because brltty uses |
113 |
+ # a custom build system that uses autoconf without the rest of the |
114 |
+ # autotools. |
115 |
+ eautoconf |
116 |
+ use python && python_copy_sources |
117 |
+} |
118 |
+ |
119 |
+src_configure() { |
120 |
+ tc-export AR LD PKG_CONFIG |
121 |
+ |
122 |
+ export JAVAC="" |
123 |
+ export JAVA_JNI_FLAGS="" |
124 |
+ if use java; then |
125 |
+ export JAVA_HOME="$(java-config -g JAVA_HOME)" |
126 |
+ export JAVAC_HOME="${JAVA_HOME}/bin" |
127 |
+ export JAVA_JNI_FLAGS="$(java-pkg_get-jni-cflags)" |
128 |
+ export JAVAC="$(java-pkg_get-javac) -encoding UTF-8 $(java-pkg_javac-args)" |
129 |
+ fi |
130 |
+ |
131 |
+ # override prefix in order to install into / |
132 |
+ # braille terminal needs to be available as soon in the boot process as |
133 |
+ # possible |
134 |
+ # Also override localstatedir so that the lib/brltty directory is installed |
135 |
+ # correctly. |
136 |
+ # Disable stripping since we do that ourselves. |
137 |
+ local myconf=( |
138 |
+ --prefix="${EPREFIX}"/ |
139 |
+ --localedir="${EPREFIX}"/usr/share/locale |
140 |
+ --includedir="${EPREFIX}"/usr/include |
141 |
+ --localstatedir="${EPREFIX}"/var |
142 |
+ --disable-stripping |
143 |
+ --with-install-root="${D}" |
144 |
+ --with-writable-directory="${EPREFIX}"/run/brltty |
145 |
+ $(use_enable api) |
146 |
+ $(use_with beeper beep-package) |
147 |
+ $(use_enable contracted-braille) |
148 |
+ $(use_with fm fm-package) |
149 |
+ $(use_enable gpm) |
150 |
+ $(use_enable iconv) |
151 |
+ $(use_enable icu) |
152 |
+ $(use_enable java java-bindings) |
153 |
+ $(use_enable louis liblouis) |
154 |
+ $(use_with midi midi-package) |
155 |
+ $(use_enable nls i18n) |
156 |
+ $(use_enable ocaml ocaml-bindings) |
157 |
+ $(use_with pcm pcm-package) |
158 |
+ $(use_enable policykit polkit) |
159 |
+ $(use_enable python python-bindings) |
160 |
+ $(use_enable speech speech-support) |
161 |
+ $(use_with systemd service-package) |
162 |
+ $(use_enable tcl tcl-bindings) |
163 |
+ $(use_enable xml expat) |
164 |
+ $(use_enable X x) |
165 |
+ $(use_with bluetooth bluetooth-package) |
166 |
+ $(use_with ncurses curses) |
167 |
+ $(use_with usb usb-package) ) |
168 |
+ |
169 |
+ econf "${myconf[@]}" |
170 |
+ |
171 |
+ if use python; then |
172 |
+ python_configure() { |
173 |
+ econf "${myconf[@]}" |
174 |
+ } |
175 |
+ python_foreach_impl run_in_build_dir python_configure |
176 |
+ fi |
177 |
+} |
178 |
+ |
179 |
+src_compile() { |
180 |
+ emake JAVA_JNI_FLAGS="${JAVA_JNI_FLAGS}" JAVAC="${JAVAC}" |
181 |
+ |
182 |
+ if use python; then |
183 |
+ python_build() { |
184 |
+ cd "Bindings/Python" || die |
185 |
+ emake |
186 |
+ } |
187 |
+ python_foreach_impl run_in_build_dir python_build |
188 |
+ fi |
189 |
+} |
190 |
+ |
191 |
+src_install() { |
192 |
+ if use ocaml; then |
193 |
+ findlib_src_preinst |
194 |
+ fi |
195 |
+ |
196 |
+ emake OCAML_LDCONF= install |
197 |
+ |
198 |
+ if use python; then |
199 |
+ python_install() { |
200 |
+ cd "Bindings/Python" || die |
201 |
+ emake install |
202 |
+ } |
203 |
+ python_foreach_impl run_in_build_dir python_install |
204 |
+ fi |
205 |
+ |
206 |
+ if use java; then |
207 |
+ java-pkg_doso Bindings/Java/libbrlapi_java.so |
208 |
+ java-pkg_dojar Bindings/Java/brlapi.jar |
209 |
+ fi |
210 |
+ |
211 |
+ insinto /etc |
212 |
+ doins Documents/brltty.conf |
213 |
+ udev_newrules Autostart/Udev/rules 70-brltty.rules |
214 |
+ newinitd "${FILESDIR}"/brltty.rc brltty |
215 |
+ systemd_dounit Autostart/Systemd/brltty@.service |
216 |
+ systemd_dotmpfilesd "${FILESDIR}/${PN}.tmpfiles.conf" |
217 |
+ |
218 |
+ if use api ; then |
219 |
+ local libdir="$(get_libdir)" |
220 |
+ mkdir -p "${ED}"/usr/${libdir}/ || die |
221 |
+ mv "${ED}"/${libdir}/*.a "${ED}"/usr/${libdir}/ || die |
222 |
+ gen_usr_ldscript libbrlapi.so |
223 |
+ fi |
224 |
+ |
225 |
+ cd Documents || die |
226 |
+ mv Manual-BRLTTY/English/BRLTTY.txt BRLTTY-en.txt || die |
227 |
+ mv Manual-BRLTTY/French/BRLTTY.txt BRLTTY-fr.txt || die |
228 |
+ mv Manual-BrlAPI/English/BrlAPI.txt BrlAPI-en.txt || die |
229 |
+ dodoc CONTRIBUTORS ChangeLog HISTORY README* TODO BRLTTY-*.txt |
230 |
+ if use doc; then |
231 |
+ dodoc BrlAPI-*.txt |
232 |
+ HTML_DOCS="Manual-BRLTTY" einstalldocs |
233 |
+ fi |
234 |
+ |
235 |
+ keepdir /var/lib/BrlAPI |
236 |
+ rmdir "${ED}/run/brltty" || die |
237 |
+ rmdir "${ED}/run" || die |
238 |
+} |
239 |
+ |
240 |
+pkg_postinst() { |
241 |
+ elog |
242 |
+ elog "please be sure ${ROOT}/etc/brltty.conf is correct for your system." |
243 |
+ elog |
244 |
+ elog "To make brltty start on boot, type this command as root:" |
245 |
+ elog |
246 |
+ elog "rc-update add brltty boot" |
247 |
+} |