Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/xapian-bindings: xapian-bindings-1.2.16.ebuild xapian-bindings-1.2.15.ebuild ChangeLog
Date: Thu, 05 Dec 2013 19:55:00
Message-Id: 20131205195443.962F52004B@flycatcher.gentoo.org
1 blueness 13/12/05 19:54:43
2
3 Modified: ChangeLog
4 Added: xapian-bindings-1.2.16.ebuild
5 xapian-bindings-1.2.15.ebuild
6 Log:
7 Version bump 1.2.{15,16}. Disable mono bindings since it violates sandbox.
8
9 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
10
11 Revision Changes Path
12 1.74 dev-libs/xapian-bindings/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/xapian-bindings/ChangeLog?rev=1.74&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/xapian-bindings/ChangeLog?rev=1.74&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/xapian-bindings/ChangeLog?r1=1.73&r2=1.74
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-libs/xapian-bindings/ChangeLog,v
21 retrieving revision 1.73
22 retrieving revision 1.74
23 diff -u -r1.73 -r1.74
24 --- ChangeLog 24 Nov 2013 18:39:11 -0000 1.73
25 +++ ChangeLog 5 Dec 2013 19:54:43 -0000 1.74
26 @@ -1,6 +1,13 @@
27 # ChangeLog for dev-libs/xapian-bindings
28 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/xapian-bindings/ChangeLog,v 1.73 2013/11/24 18:39:11 ago Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/xapian-bindings/ChangeLog,v 1.74 2013/12/05 19:54:43 blueness Exp $
31 +
32 +*xapian-bindings-1.2.15 (05 Dec 2013)
33 +*xapian-bindings-1.2.16 (05 Dec 2013)
34 +
35 + 05 Dec 2013; Anthony G. Basile <blueness@g.o>
36 + +xapian-bindings-1.2.15.ebuild, +xapian-bindings-1.2.16.ebuild:
37 + Version bump 1.2.{15,16}. Disable mono bindings since it violates sandbox.
38
39 24 Nov 2013; Agostino Sarubbo <ago@g.o> xapian-bindings-1.2.14.ebuild:
40 Stable for sparc, wrt bug #470402
41
42
43
44 1.1 dev-libs/xapian-bindings/xapian-bindings-1.2.16.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/xapian-bindings/xapian-bindings-1.2.16.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/xapian-bindings/xapian-bindings-1.2.16.ebuild?rev=1.1&content-type=text/plain
48
49 Index: xapian-bindings-1.2.16.ebuild
50 ===================================================================
51 # Copyright 1999-2013 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/dev-libs/xapian-bindings/xapian-bindings-1.2.16.ebuild,v 1.1 2013/12/05 19:54:43 blueness Exp $
54
55 EAPI="5"
56
57 PYTHON_DEPEND="python? 2"
58 PYTHON_USE_WITH="threads"
59 SUPPORT_PYTHON_ABIS="1"
60 RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
61
62 USE_PHP="php5-3 php5-4"
63
64 PHP_EXT_NAME="xapian"
65 PHP_EXT_INI="yes"
66 PHP_EXT_OPTIONAL_USE="php"
67
68 #mono violates sandbox, we disable it until we figure this out
69 #inherit java-pkg-opt-2 mono php-ext-source-r2 python
70 inherit java-pkg-opt-2 php-ext-source-r2 python
71
72 DESCRIPTION="SWIG and JNI bindings for Xapian"
73 HOMEPAGE="http://www.xapian.org/"
74 SRC_URI="http://oligarchy.co.uk/xapian/${PV}/${P}.tar.xz"
75
76 LICENSE="GPL-2"
77 SLOT="0"
78 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
79 #IUSE="java lua mono perl php python ruby tcl"
80 #REQUIRED_USE="|| ( java lua mono perl php python ruby tcl )"
81 IUSE="java lua perl php python ruby tcl"
82 REQUIRED_USE="|| ( java lua perl php python ruby tcl )"
83
84 COMMONDEPEND="=dev-libs/xapian-${PV}*
85 lua? ( >=dev-lang/lua-5.1 )
86 perl? ( dev-lang/perl )
87 ruby? ( dev-lang/ruby )
88 tcl? ( >=dev-lang/tcl-8.1 )"
89 # mono? ( >=dev-lang/mono-1.0.8 )
90 DEPEND="${COMMONDEPEND}
91 java? ( >=virtual/jdk-1.3 )"
92 RDEPEND="${COMMONDEPEND}
93 java? ( >=virtual/jre-1.3 )"
94
95 pkg_setup() {
96 java-pkg-opt-2_pkg_setup
97
98 if use python; then
99 python_pkg_setup
100 fi
101 }
102
103 src_prepare() {
104 java-pkg-opt-2_src_prepare
105 if use java; then
106 sed \
107 -e 's/$(JAVAC)/$(JAVAC) $(JAVACFLAGS)/' \
108 -i java{/,/org/xapian/errors/,/org/xapian/}Makefile.in || die "sed failed"
109 fi
110
111 if use python; then
112 sed \
113 -e 's:\(^pkgpylib_DATA = xapian/__init__.py\).*:\1:' \
114 -e 's|\(^xapian/__init__.py: modern/xapian.py\)|\1 xapian/_xapian$(PYTHON_SO)|' \
115 -i python/Makefile.in || die "sed failed"
116 fi
117 }
118
119 src_configure() {
120 if use java; then
121 CXXFLAGS="${CXXFLAGS} $(java-pkg_get-jni-cflags)"
122 fi
123
124 if use perl; then
125 export PERL_ARCH="$(perl -MConfig -e 'print $Config{installvendorarch}')"
126 export PERL_LIB="$(perl -MConfig -e 'print $Config{installvendorlib}')"
127 fi
128
129 if use lua; then
130 export LUA_LIB="$(pkg-config --variable=INSTALL_CMOD lua)"
131 fi
132
133 econf \
134 $(use_with java) \
135 $(use_with lua) \
136 $(use_with perl) \
137 $(use_with php) \
138 $(use_with python) \
139 $(use_with ruby) \
140 $(use_with tcl)
141 # $(use_with mono csharp) \
142
143 # Python bindings are built/tested/installed manually.
144 sed -e "/SUBDIRS =/s/ python//" -i Makefile || die "sed Makefile"
145 }
146
147 src_compile() {
148 default
149
150 if use python; then
151 python_copy_sources python
152 building() {
153 emake \
154 PYTHON="$(PYTHON)" \
155 PYTHON_INC="$(python_get_includedir)" \
156 PYTHON_LIB="$(python_get_libdir)" \
157 PYTHON_SO="$("$(PYTHON)" -c 'import distutils.sysconfig; print(distutils.sysconfig.get_config_vars("SO")[0])')" \
158 pkgpylibdir="$(python_get_sitedir)/xapian"
159 }
160 python_execute_function -s --source-dir python building
161 fi
162 }
163
164 src_test() {
165 default
166
167 if use python; then
168 testing() {
169 emake \
170 PYTHON="$(PYTHON)" \
171 PYTHON_INC="$(python_get_includedir)" \
172 PYTHON_LIB="$(python_get_libdir)" \
173 PYTHON_SO="$("$(PYTHON)" -c 'import distutils.sysconfig; print(distutils.sysconfig.get_config_vars("SO")[0])')" \
174 pkgpylibdir="$(python_get_sitedir)/xapian" \
175 VERBOSE="1" \
176 check
177 }
178 python_execute_function -s --source-dir python testing
179 fi
180 }
181
182 src_install () {
183 emake DESTDIR="${D}" install || die "emake install failed"
184
185 if use java; then
186 java-pkg_dojar java/built/xapian_jni.jar
187 # TODO: make the build system not install this...
188 java-pkg_doso "${D}/${S}/java/built/libxapian_jni.so"
189 rm "${D}/${S}/java/built/libxapian_jni.so"
190 rmdir -p "${D}/${S}/java/built"
191 rmdir -p "${D}/${S}/java/native"
192 fi
193
194 if use python; then
195 installation() {
196 emake \
197 DESTDIR="${D}" \
198 PYTHON="$(PYTHON)" \
199 PYTHON_INC="$(python_get_includedir)" \
200 PYTHON_LIB="$(python_get_libdir)" \
201 PYTHON_SO="$("$(PYTHON)" -c 'import distutils.sysconfig; print(distutils.sysconfig.get_config_vars("SO")[0])')" \
202 pkgpylibdir="$(python_get_sitedir)/xapian" \
203 install
204 }
205 python_execute_function -s --source-dir python installation
206 fi
207
208 if use php; then
209 php-ext-source-r2_createinifiles
210 fi
211
212 # For some USE combinations this directory is not created
213 if [[ -d "${D}/usr/share/doc/xapian-bindings" ]]; then
214 mv "${D}/usr/share/doc/xapian-bindings" "${D}/usr/share/doc/${PF}"
215 fi
216
217 dodoc AUTHORS HACKING NEWS TODO README || die "dodoc failed"
218 }
219
220 pkg_postinst() {
221 if use python; then
222 python_mod_optimize xapian
223 fi
224
225 if use php_targets_php5-4; then
226 ewarn "Note: subclassing Xapian classes in PHP currently doesn't work with PHP 5.4"
227 fi
228 }
229
230 pkg_postrm() {
231 if use python; then
232 python_mod_cleanup xapian
233 fi
234 }
235
236
237
238 1.1 dev-libs/xapian-bindings/xapian-bindings-1.2.15.ebuild
239
240 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/xapian-bindings/xapian-bindings-1.2.15.ebuild?rev=1.1&view=markup
241 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/xapian-bindings/xapian-bindings-1.2.15.ebuild?rev=1.1&content-type=text/plain
242
243 Index: xapian-bindings-1.2.15.ebuild
244 ===================================================================
245 # Copyright 1999-2013 Gentoo Foundation
246 # Distributed under the terms of the GNU General Public License v2
247 # $Header: /var/cvsroot/gentoo-x86/dev-libs/xapian-bindings/xapian-bindings-1.2.15.ebuild,v 1.1 2013/12/05 19:54:43 blueness Exp $
248
249 EAPI="5"
250
251 PYTHON_DEPEND="python? 2"
252 PYTHON_USE_WITH="threads"
253 SUPPORT_PYTHON_ABIS="1"
254 RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
255
256 USE_PHP="php5-3 php5-4"
257
258 PHP_EXT_NAME="xapian"
259 PHP_EXT_INI="yes"
260 PHP_EXT_OPTIONAL_USE="php"
261
262 #mono violates sandbox, we disable it until we figure this out
263 #inherit java-pkg-opt-2 mono php-ext-source-r2 python
264 inherit java-pkg-opt-2 php-ext-source-r2 python
265
266 DESCRIPTION="SWIG and JNI bindings for Xapian"
267 HOMEPAGE="http://www.xapian.org/"
268 SRC_URI="http://oligarchy.co.uk/xapian/${PV}/${P}.tar.gz"
269
270 LICENSE="GPL-2"
271 SLOT="0"
272 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
273 #IUSE="java lua mono perl php python ruby tcl"
274 #REQUIRED_USE="|| ( java lua mono perl php python ruby tcl )"
275 IUSE="java lua perl php python ruby tcl"
276 REQUIRED_USE="|| ( java lua perl php python ruby tcl )"
277
278 COMMONDEPEND="=dev-libs/xapian-${PV}*
279 lua? ( >=dev-lang/lua-5.1 )
280 perl? ( dev-lang/perl )
281 ruby? ( dev-lang/ruby )
282 tcl? ( >=dev-lang/tcl-8.1 )"
283 # mono? ( >=dev-lang/mono-1.0.8 )
284 DEPEND="${COMMONDEPEND}
285 java? ( >=virtual/jdk-1.3 )"
286 RDEPEND="${COMMONDEPEND}
287 java? ( >=virtual/jre-1.3 )"
288
289 pkg_setup() {
290 java-pkg-opt-2_pkg_setup
291
292 if use python; then
293 python_pkg_setup
294 fi
295 }
296
297 src_prepare() {
298 java-pkg-opt-2_src_prepare
299 if use java; then
300 sed \
301 -e 's/$(JAVAC)/$(JAVAC) $(JAVACFLAGS)/' \
302 -i java{/,/org/xapian/errors/,/org/xapian/}Makefile.in || die "sed failed"
303 fi
304
305 if use python; then
306 sed \
307 -e 's:\(^pkgpylib_DATA = xapian/__init__.py\).*:\1:' \
308 -e 's|\(^xapian/__init__.py: modern/xapian.py\)|\1 xapian/_xapian$(PYTHON_SO)|' \
309 -i python/Makefile.in || die "sed failed"
310 fi
311 }
312
313 src_configure() {
314 if use java; then
315 CXXFLAGS="${CXXFLAGS} $(java-pkg_get-jni-cflags)"
316 fi
317
318 if use perl; then
319 export PERL_ARCH="$(perl -MConfig -e 'print $Config{installvendorarch}')"
320 export PERL_LIB="$(perl -MConfig -e 'print $Config{installvendorlib}')"
321 fi
322
323 if use lua; then
324 export LUA_LIB="$(pkg-config --variable=INSTALL_CMOD lua)"
325 fi
326
327 econf \
328 $(use_with java) \
329 $(use_with lua) \
330 $(use_with perl) \
331 $(use_with php) \
332 $(use_with python) \
333 $(use_with ruby) \
334 $(use_with tcl)
335 # $(use_with mono csharp) \
336
337 # Python bindings are built/tested/installed manually.
338 sed -e "/SUBDIRS =/s/ python//" -i Makefile || die "sed Makefile"
339 }
340
341 src_compile() {
342 default
343
344 if use python; then
345 python_copy_sources python
346 building() {
347 emake \
348 PYTHON="$(PYTHON)" \
349 PYTHON_INC="$(python_get_includedir)" \
350 PYTHON_LIB="$(python_get_libdir)" \
351 PYTHON_SO="$("$(PYTHON)" -c 'import distutils.sysconfig; print(distutils.sysconfig.get_config_vars("SO")[0])')" \
352 pkgpylibdir="$(python_get_sitedir)/xapian"
353 }
354 python_execute_function -s --source-dir python building
355 fi
356 }
357
358 src_test() {
359 default
360
361 if use python; then
362 testing() {
363 emake \
364 PYTHON="$(PYTHON)" \
365 PYTHON_INC="$(python_get_includedir)" \
366 PYTHON_LIB="$(python_get_libdir)" \
367 PYTHON_SO="$("$(PYTHON)" -c 'import distutils.sysconfig; print(distutils.sysconfig.get_config_vars("SO")[0])')" \
368 pkgpylibdir="$(python_get_sitedir)/xapian" \
369 VERBOSE="1" \
370 check
371 }
372 python_execute_function -s --source-dir python testing
373 fi
374 }
375
376 src_install () {
377 emake DESTDIR="${D}" install || die "emake install failed"
378
379 if use java; then
380 java-pkg_dojar java/built/xapian_jni.jar
381 # TODO: make the build system not install this...
382 java-pkg_doso "${D}/${S}/java/built/libxapian_jni.so"
383 rm "${D}/${S}/java/built/libxapian_jni.so"
384 rmdir -p "${D}/${S}/java/built"
385 rmdir -p "${D}/${S}/java/native"
386 fi
387
388 if use python; then
389 installation() {
390 emake \
391 DESTDIR="${D}" \
392 PYTHON="$(PYTHON)" \
393 PYTHON_INC="$(python_get_includedir)" \
394 PYTHON_LIB="$(python_get_libdir)" \
395 PYTHON_SO="$("$(PYTHON)" -c 'import distutils.sysconfig; print(distutils.sysconfig.get_config_vars("SO")[0])')" \
396 pkgpylibdir="$(python_get_sitedir)/xapian" \
397 install
398 }
399 python_execute_function -s --source-dir python installation
400 fi
401
402 if use php; then
403 php-ext-source-r2_createinifiles
404 fi
405
406 # For some USE combinations this directory is not created
407 if [[ -d "${D}/usr/share/doc/xapian-bindings" ]]; then
408 mv "${D}/usr/share/doc/xapian-bindings" "${D}/usr/share/doc/${PF}"
409 fi
410
411 dodoc AUTHORS HACKING NEWS TODO README || die "dodoc failed"
412 }
413
414 pkg_postinst() {
415 if use python; then
416 python_mod_optimize xapian
417 fi
418
419 if use php_targets_php5-4; then
420 ewarn "Note: subclassing Xapian classes in PHP currently doesn't work with PHP 5.4"
421 fi
422 }
423
424 pkg_postrm() {
425 if use python; then
426 python_mod_cleanup xapian
427 fi
428 }