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