1 |
commit: 94e723b6ed7ede38b6f06f5e0c320fbdc504f7d1 |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 6 22:04:01 2016 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 6 22:04:47 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94e723b6 |
7 |
|
8 |
app-accessibility/brltty: remove old version |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
app-accessibility/brltty/brltty-5.2.ebuild | 189 ----------------------------- |
13 |
1 file changed, 189 deletions(-) |
14 |
|
15 |
diff --git a/app-accessibility/brltty/brltty-5.2.ebuild b/app-accessibility/brltty/brltty-5.2.ebuild |
16 |
deleted file mode 100644 |
17 |
index 8adcb66..0000000 |
18 |
--- a/app-accessibility/brltty/brltty-5.2.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,189 +0,0 @@ |
21 |
-# Copyright 1999-2015 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
-# $Id$ |
24 |
- |
25 |
-EAPI=5 |
26 |
- |
27 |
-PYTHON_COMPAT=( python2_7 python3_3 python3_4 python3_5 ) |
28 |
-FINDLIB_USE="ocaml" |
29 |
- |
30 |
-inherit findlib eutils multilib toolchain-funcs java-pkg-opt-2 flag-o-matic \ |
31 |
- autotools udev systemd python-r1 |
32 |
- |
33 |
-DESCRIPTION="Daemon that provides access to the Linux/Unix console for a blind person" |
34 |
-HOMEPAGE="http://brltty.com/" |
35 |
-SRC_URI="http://brltty.com/archive/${P}.tar.xz" |
36 |
- |
37 |
-LICENSE="GPL-2 LGPL-2.1" |
38 |
-SLOT="0" |
39 |
-KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 x86" |
40 |
-IUSE="+api +beeper bluetooth +contracted-braille doc +fm gpm iconv icu |
41 |
- java +midi ncurses nls ocaml +pcm python usb +speech |
42 |
- tcl X" |
43 |
-REQUIRED_USE="doc? ( api ) |
44 |
- java? ( api ) |
45 |
- ocaml? ( api ) |
46 |
- python? ( api ) |
47 |
- tcl? ( api )" |
48 |
- |
49 |
-COMMON_DEP="bluetooth? ( net-wireless/bluez ) |
50 |
- gpm? ( >=sys-libs/gpm-1.20 ) |
51 |
- iconv? ( virtual/libiconv ) |
52 |
- icu? ( dev-libs/icu:= ) |
53 |
- python? ( ${PYTHON_DEPS} ) |
54 |
- ncurses? ( sys-libs/ncurses ) |
55 |
- nls? ( virtual/libintl ) |
56 |
- tcl? ( >=dev-lang/tcl-8.4.15:0= ) |
57 |
- usb? ( virtual/libusb:0 ) |
58 |
- X? ( x11-libs/libXaw )" |
59 |
-DEPEND="virtual/pkgconfig |
60 |
- java? ( >=virtual/jdk-1.4 ) |
61 |
- python? ( >=dev-python/cython-0.16[${PYTHON_USEDEP}] ) |
62 |
- ${COMMON_DEP}" |
63 |
-RDEPEND="java? ( >=virtual/jre-1.4 ) |
64 |
- ${COMMON_DEP}" |
65 |
- |
66 |
-src_prepare() { |
67 |
- epatch "${FILESDIR}"/${P}-fix-ldflags.patch \ |
68 |
- "${FILESDIR}"/${P}-udev.patch \ |
69 |
- "${FILESDIR}"/${P}-respect-AR.patch |
70 |
- |
71 |
- java-pkg-opt-2_src_prepare |
72 |
- |
73 |
- # The code runs `pkg-config` directly instead of locating a suitable |
74 |
- # pkg-config wrapper (or respecting $PKG_CONFIG). |
75 |
- sed -i \ |
76 |
- -e 's/\<pkg-config\>/${PKG_CONFIG:-pkg-config}/' \ |
77 |
- aclocal.m4 configure.ac || die |
78 |
- |
79 |
- # We run eautoconf instead of using eautoreconf because brltty uses |
80 |
- # a custom build system that uses autoconf without the rest of the |
81 |
- # autotools. |
82 |
- eautoconf |
83 |
- python_copy_sources |
84 |
-} |
85 |
- |
86 |
-src_configure() { |
87 |
- tc-export AR LD PKG_CONFIG |
88 |
- # override prefix in order to install into / |
89 |
- # braille terminal needs to be available as soon in the boot process as |
90 |
- # possible |
91 |
- # Also override localstatedir so that the lib/brltty directory is installed |
92 |
- # correctly. |
93 |
- # Disable stripping since we do that ourselves. |
94 |
- local myconf=( |
95 |
- --prefix=/ |
96 |
- --localedir=/usr/share/locale |
97 |
- --includedir=/usr/include |
98 |
- --localstatedir=/var |
99 |
- --disable-stripping |
100 |
- --with-install-root="${D}" |
101 |
- --with-writable-directory="/run/brltty" |
102 |
- $(use_enable api) |
103 |
- $(use_with beeper beep-package) |
104 |
- $(use_enable contracted-braille) |
105 |
- $(use_with fm fm-package) |
106 |
- $(use_enable gpm) |
107 |
- $(use_enable iconv) |
108 |
- $(use_enable icu) |
109 |
- $(use_enable java java-bindings) |
110 |
- $(use_with midi midi-package) |
111 |
- $(use_enable nls i18n) |
112 |
- $(use_enable ocaml ocaml-bindings) |
113 |
- $(use_with pcm pcm-package) |
114 |
- $(use_enable speech speech-support) |
115 |
- $(use_enable tcl tcl-bindings) |
116 |
- $(use_enable X x) |
117 |
- $(use_with bluetooth bluetooth-package) |
118 |
- $(use_with ncurses curses) |
119 |
- $(use_with usb usb-package) ) |
120 |
- |
121 |
- econf "${myconf[@]}" |
122 |
- |
123 |
- if use python; then |
124 |
- myconf+=( $(use_enable python python-bindings ) ) |
125 |
- |
126 |
- python_configure() { |
127 |
- econf "${myconf[@]}" |
128 |
- } |
129 |
- python_foreach_impl run_in_build_dir python_configure |
130 |
- fi |
131 |
-} |
132 |
- |
133 |
-src_compile() { |
134 |
- local JAVAC_CONF="" |
135 |
- local OUR_JNI_FLAGS="" |
136 |
- if use java; then |
137 |
- OUR_JNI_FLAGS="$(java-pkg_get-jni-cflags)" |
138 |
- JAVAC_CONF="${JAVAC} -encoding UTF-8 $(java-pkg_javac-args)" |
139 |
- fi |
140 |
- |
141 |
- emake JAVA_JNI_FLAGS="${OUR_JNI_FLAGS}" JAVAC="${JAVAC_CONF}" |
142 |
- |
143 |
- if use python; then |
144 |
- python_build() { |
145 |
- cd "Bindings/Python" || die |
146 |
- emake |
147 |
- } |
148 |
- python_foreach_impl run_in_build_dir python_build |
149 |
- fi |
150 |
-} |
151 |
- |
152 |
-src_install() { |
153 |
- if use ocaml; then |
154 |
- findlib_src_preinst |
155 |
- fi |
156 |
- |
157 |
- emake OCAML_LDCONF= install |
158 |
- |
159 |
- if use python; then |
160 |
- python_install() { |
161 |
- cd "Bindings/Python" || die |
162 |
- emake install |
163 |
- } |
164 |
- python_foreach_impl run_in_build_dir python_install |
165 |
- fi |
166 |
- |
167 |
- if use java; then |
168 |
- # make install puts the _java.so there, and no it's not $(get_libdir) |
169 |
- rm -rf "${D}/usr/lib/java" |
170 |
- java-pkg_doso Bindings/Java/libbrlapi_java.so |
171 |
- java-pkg_dojar Bindings/Java/brlapi.jar |
172 |
- fi |
173 |
- |
174 |
- insinto /etc |
175 |
- doins Documents/brltty.conf |
176 |
- udev_newrules Autostart/Udev/udev.rules 70-brltty.rules |
177 |
- newinitd "${FILESDIR}"/brltty.rc brltty |
178 |
- systemd_dounit Autostart/Systemd/brltty.service |
179 |
- systemd_dotmpfilesd "${FILESDIR}/${PN}.tmpfiles.conf" |
180 |
- |
181 |
- libdir="$(get_libdir)" |
182 |
- mkdir -p "${D}"/usr/${libdir}/ |
183 |
- mv "${D}"/${libdir}/*.a "${D}"/usr/${libdir}/ |
184 |
- gen_usr_ldscript libbrlapi.so |
185 |
- |
186 |
- cd Documents |
187 |
- mv Manual-BRLTTY/English/BRLTTY.txt BRLTTY-en.txt |
188 |
- mv Manual-BRLTTY/French/BRLTTY.txt BRLTTY-fr.txt |
189 |
- mv Manual-BrlAPI/English/BrlAPI.txt BrlAPI-en.txt |
190 |
- dodoc CONTRIBUTORS ChangeLog HISTORY README* TODO BRLTTY-*.txt |
191 |
- dohtml -r Manual-BRLTTY |
192 |
- if use doc; then |
193 |
- dohtml -r Manual-BrlAPI |
194 |
- dodoc BrlAPI-*.txt |
195 |
- fi |
196 |
- |
197 |
- keepdir /var/lib/brlapi |
198 |
- rmdir "${D}/run/brltty" |
199 |
- rmdir "${D}/run" |
200 |
-} |
201 |
- |
202 |
-pkg_postinst() { |
203 |
- elog |
204 |
- elog please be sure "${ROOT}"etc/brltty.conf is correct for your system. |
205 |
- elog |
206 |
- elog To make brltty start on boot, type this command as root: |
207 |
- elog |
208 |
- elog rc-update add brltty boot |
209 |
-} |