Gentoo Archives: gentoo-commits

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