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