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