Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/xapian-bindings/
Date: Fri, 22 Feb 2019 23:54:44
Message-Id: 1550879660.a3f551368dd65bef0a6db973c0d7f7b7c16eef56.blueness@gentoo
1 commit: a3f551368dd65bef0a6db973c0d7f7b7c16eef56
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 22 23:54:20 2019 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 22 23:54:20 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3f55136
7
8 dev-libs/xapian-bindings: remove older versions
9
10 Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 dev-libs/xapian-bindings/Manifest | 3 -
14 .../xapian-bindings/xapian-bindings-1.2.24.ebuild | 203 --------------
15 .../xapian-bindings/xapian-bindings-1.4.4.ebuild | 158 -----------
16 .../xapian-bindings/xapian-bindings-1.4.6.ebuild | 305 ---------------------
17 4 files changed, 669 deletions(-)
18
19 diff --git a/dev-libs/xapian-bindings/Manifest b/dev-libs/xapian-bindings/Manifest
20 index 0f0dccca37e..2840d3cf553 100644
21 --- a/dev-libs/xapian-bindings/Manifest
22 +++ b/dev-libs/xapian-bindings/Manifest
23 @@ -1,8 +1,5 @@
24 -DIST xapian-bindings-1.2.24.tar.xz 886148 BLAKE2B b3ed571022f24754b21e64479b7d835820463894f75b02d310288b18e2708a0c9ac6aae332ebc70ce81c312fbf0996608b5b7b287f8ab7946e7eec9820dbe9b3 SHA512 aaedac02ec9fb192ef8b45b07bef5584bc60aff7068c2e3fa0008430ed8296a653780cad04176431d81fe014802df333a3090469dce63204923eead15e6bbaef
25 DIST xapian-bindings-1.2.25.tar.xz 1711860 BLAKE2B 66367dbc503333c4f59da8bb5bd4885fe9678aace45365573bac8e0e8e2c712795af2021ff52de9eeabb91f65a2f0447d1963424b1ae6558be95b737d1279e98 SHA512 5d27b2ae2722409ea99a1b9e6bf3f5c61ed9195b67121c090f1533340d3b11c546014985d0989a0725b60a07b392b9705bce054495f423bd3a7c99835aa336c7
26 -DIST xapian-bindings-1.4.4.tar.xz 1117140 BLAKE2B 2240ecbe136443e9beea8871731a720a7382f0b59533ecb50983ff3cf8142500aaf762e4d1282be26de9f7e862c1071e21fa3cd67c50203d7bbc687fb202fb6d SHA512 006e771b3ea654130b4f76f1a1caee576fd5a3fa6317ca44f1e5483671e8c83073ecbde4f3fc7f84c75590eec53acb59701af4cf9bcd72355ed9d53924492b53
27 DIST xapian-bindings-1.4.5.tar.xz 1118884 BLAKE2B 507b06f0121e5a56224250bfe7b19795eb9fd2fba977d12022d054e7b832fd70af70085ad576dab41efcde261f9ecd48179646f1ea67aaa266fb6272358eb69a SHA512 e39ece495e25077990db3d06554306567c52c6f45ad55a65005cb97e18086ee18947e41d0d612157b891b61e015881385bcb082a03aa0c6452565e90d09e8275
28 -DIST xapian-bindings-1.4.6.tar.xz 1121532 BLAKE2B ecac35f9510fadb39f260c1ebd03220ebe01131e4a5fcc2842778adccdf9bf3e3ae6161dd66dc75774bfb1643f1dccc99a3bbb99894e49dbbdd65f838f827a4d SHA512 e1d8d4c79ef8eb1b890be955b14eca7e9c7aafc6051cf9080d67948455f82ed68ab518343f532cde2a1c9e07d94b3aae8b8f5130db158c6badc9b6d118ceb733
29 DIST xapian-bindings-1.4.7.tar.xz 1121700 BLAKE2B f8492113b76aba322c975aa2b957a627a32e5209d8b79f435dc85c899cf14619af6165265e624e2ba8806f3c91dd35d71d98c4a47f5d6f4fba1b7fb83700c0d0 SHA512 c904cd3abf19d68495b0487ea77265fdc92a3cd8b1c2437b89034efd349ce41198bbc4abca49f259f71a1ba0fd269b2cf9b6dd4c1607678a73cbed4de9c5a1d5
30 DIST xapian-bindings-1.4.8.tar.xz 1123812 BLAKE2B 5aa496ff3cfe06a40fa8db6a04cdc9041f4a0d9f12c7a61565f10c7d360490a7c8a7c745d91c9eda45b9d9bc58bd6a2bbae02aa9dd7ff1949ac59f7e09b090df SHA512 f979c32b096ecdc7a71b2bd032c6d0e7131f3d304e47e44005989ca79ea1f940c39626c60a8e52ff3cdb2cb380aa5ddf82a99bae08e06629c0bd47d8e0bfa7cc
31 DIST xapian-bindings-1.4.9.tar.xz 1123628 BLAKE2B 918748bb99b826485127b16511ae2fe6e7965102738308fc675eca3018c8a7131fd65f54cc396912367c4c6f43c7c28b1ba07591567fe3ae646c3e1480439d0d SHA512 cddc6cedfd571d565619ade0a4c9bfee8d688ca3d06d77368c8d673d3c9d1296b652122836debc84a4d54724c2bf0639a009396bf587ed4b8901a6bfe508851d
32
33 diff --git a/dev-libs/xapian-bindings/xapian-bindings-1.2.24.ebuild b/dev-libs/xapian-bindings/xapian-bindings-1.2.24.ebuild
34 deleted file mode 100644
35 index 6d733e8d95b..00000000000
36 --- a/dev-libs/xapian-bindings/xapian-bindings-1.2.24.ebuild
37 +++ /dev/null
38 @@ -1,203 +0,0 @@
39 -# Copyright 1999-2017 Gentoo Foundation
40 -# Distributed under the terms of the GNU General Public License v2
41 -
42 -EAPI="5"
43 -
44 -PYTHON_COMPAT=( python2_7 )
45 -PYTHON_REQ_USE="threads"
46 -
47 -USE_PHP="php5-6"
48 -
49 -PHP_EXT_NAME="xapian"
50 -PHP_EXT_INI="yes"
51 -PHP_EXT_OPTIONAL_USE="php"
52 -
53 -#mono violates sandbox, we disable it until we figure this out
54 -#inherit java-pkg-opt-2 mono-env php-ext-source-r2 python
55 -inherit java-pkg-opt-2 php-ext-source-r2 python-r1 toolchain-funcs
56 -
57 -DESCRIPTION="SWIG and JNI bindings for Xapian"
58 -HOMEPAGE="http://www.xapian.org/"
59 -SRC_URI="http://oligarchy.co.uk/xapian/${PV}/${P}.tar.xz"
60 -
61 -LICENSE="GPL-2"
62 -SLOT="0"
63 -KEYWORDS="alpha amd64 arm ia64 ~mips ppc ppc64 sparc x86"
64 -#IUSE="java lua mono perl php python ruby tcl"
65 -#REQUIRED_USE="|| ( java lua mono perl php python ruby tcl )"
66 -IUSE="java lua perl php python ruby tcl"
67 -REQUIRED_USE="|| ( java lua perl php python ruby tcl ) python? ( ${PYTHON_REQUIRED_USE} )"
68 -
69 -COMMONDEPEND="dev-libs/xapian:0/1.2.22
70 - lua? ( dev-lang/lua:0 )
71 - perl? ( dev-lang/perl:= )
72 - python? ( ${PYTHON_DEPS} )
73 - ruby? ( dev-lang/ruby:= )
74 - tcl? ( >=dev-lang/tcl-8.1:0= )"
75 -# mono? ( >=dev-lang/mono-1.0.8 )
76 -DEPEND="${COMMONDEPEND}
77 - virtual/pkgconfig
78 - java? ( >=virtual/jdk-1.3 )"
79 -RDEPEND="${COMMONDEPEND}
80 - java? ( >=virtual/jre-1.3 )"
81 -
82 -pkg_setup() {
83 - java-pkg-opt-2_pkg_setup
84 -}
85 -
86 -src_unpack() {
87 - default
88 -}
89 -
90 -src_prepare() {
91 - java-pkg-opt-2_src_prepare
92 - if use java; then
93 - sed \
94 - -e 's/$(JAVAC)/$(JAVAC) $(JAVACFLAGS)/' \
95 - -i java{/,/org/xapian/errors/,/org/xapian/}Makefile.in || die "sed failed"
96 - fi
97 -
98 - if use python; then
99 - sed \
100 - -e 's:\(^pkgpylib_DATA = xapian/__init__.py\).*:\1:' \
101 - -e 's|\(^xapian/__init__.py: modern/xapian.py\)|\1 xapian/_xapian.so|' \
102 - -i python/Makefile.in || die "sed failed"
103 - fi
104 -}
105 -
106 -src_configure() {
107 - if use java; then
108 - CXXFLAGS="${CXXFLAGS} $(java-pkg_get-jni-cflags)"
109 - fi
110 -
111 - if use perl; then
112 - export PERL_ARCH="$(perl -MConfig -e 'print $Config{installvendorarch}')"
113 - export PERL_LIB="$(perl -MConfig -e 'print $Config{installvendorlib}')"
114 - fi
115 -
116 - if use lua; then
117 - export LUA_LIB="$($(tc-getPKG_CONFIG) --variable=INSTALL_CMOD lua)"
118 - fi
119 -
120 - econf \
121 - $(use_with java) \
122 - $(use_with lua) \
123 - $(use_with perl) \
124 - $(use_with php) \
125 - $(use_with python) \
126 - $(use_with ruby) \
127 - $(use_with tcl)
128 -# $(use_with mono csharp) \
129 -
130 - # PHP and Python bindings are built/tested/installed manually.
131 - sed -e "/SUBDIRS =/s/ php//" -i Makefile || die "sed Makefile"
132 - sed -e "/SUBDIRS =/s/ python//" -i Makefile || die "sed Makefile"
133 -}
134 -
135 -src_compile() {
136 - default
137 -
138 - if use php; then
139 - local php_slot
140 - for php_slot in $(php_get_slots); do
141 - cp -r php php-${php_slot}
142 - emake -C php-${php_slot} \
143 - PHP="${EPREFIX}/usr/$(get_libdir)/${php_slot}/bin/php" \
144 - PHP_CONFIG="${EPREFIX}/usr/$(get_libdir)/${php_slot}/bin/php-config" \
145 - PHP_EXTENSION_DIR="$("${EPREFIX}/usr/$(get_libdir)/${php_slot}/bin/php-config" --extension-dir)" \
146 - PHP_INC="$("${EPREFIX}/usr/$(get_libdir)/${php_slot}/bin/php-config" --includes)"
147 - done
148 - fi
149 -
150 - if use python; then
151 - python_copy_sources
152 -# building() {
153 -# emake -C python \
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 - building() {
161 - emake -C python \
162 - PYTHON_INC="$(python_get_includedir)" \
163 - pkgpylibdir="$(python_get_sitedir)/xapian"
164 - VERBOSE="1"
165 - }
166 - python_foreach_impl building
167 - fi
168 -}
169 -
170 -src_test() {
171 - default
172 -
173 - if use php; then
174 - local php_slot
175 - for php_slot in $(php_get_slots); do
176 - emake -C php-${php_slot} \
177 - PHP="${EPREFIX}/usr/$(get_libdir)/${php_slot}/bin/php" \
178 - PHP_CONFIG="${EPREFIX}/usr/$(get_libdir)/${php_slot}/bin/php-config" \
179 - PHP_EXTENSION_DIR="$("${EPREFIX}/usr/$(get_libdir)/${php_slot}/bin/php-config" --extension-dir)" \
180 - PHP_INC="$("${EPREFIX}/usr/$(get_libdir)/${php_slot}/bin/php-config" --includes)" \
181 - check
182 - done
183 - fi
184 -
185 - if use python; then
186 - testing() {
187 - emake -C python \
188 - PYTHON_INC="$(python_get_includedir)" \
189 - pkgpylibdir="$(python_get_sitedir)/xapian" \
190 - VERBOSE="1" \
191 - check
192 - }
193 - python_foreach_impl testing
194 - fi
195 -}
196 -
197 -src_install () {
198 - emake DESTDIR="${D}" install
199 -
200 - if use java; then
201 - java-pkg_dojar java/built/xapian_jni.jar
202 - # TODO: make the build system not install this...
203 - java-pkg_doso "${D}/${S}/java/built/libxapian_jni.so"
204 - rm "${D}/${S}/java/built/libxapian_jni.so"
205 - rmdir -p "${D}/${S}/java/built"
206 - rmdir -p "${D}/${S}/java/native"
207 - fi
208 -
209 - if use php; then
210 - local php_slot
211 - for php_slot in $(php_get_slots); do
212 - emake DESTDIR="${D}" -C php-${php_slot} \
213 - PHP="${EPREFIX}/usr/$(get_libdir)/${php_slot}/bin/php" \
214 - PHP_CONFIG="${EPREFIX}/usr/$(get_libdir)/${php_slot}/bin/php-config" \
215 - PHP_EXTENSION_DIR="$("${EPREFIX}/usr/$(get_libdir)/${php_slot}/bin/php-config" --extension-dir)" \
216 - PHP_INC="$("${EPREFIX}/usr/$(get_libdir)/${php_slot}/bin/php-config" --includes)" \
217 - install
218 - done
219 -
220 - php-ext-source-r2_createinifiles
221 - fi
222 -
223 - if use python; then
224 - installation() {
225 - emake -C python \
226 - DESTDIR="${D}" \
227 - PYTHON_INC="$(python_get_includedir)" \
228 - pkgpylibdir="$(python_get_sitedir)/xapian" \
229 - VERBOSE="1" \
230 - install
231 - }
232 - python_foreach_impl installation
233 - fi
234 -
235 - # For some USE combinations this directory is not created
236 - if [[ -d "${D}/usr/share/doc/xapian-bindings" ]]; then
237 - mv "${D}/usr/share/doc/xapian-bindings" "${D}/usr/share/doc/${PF}"
238 - fi
239 -
240 - dodoc AUTHORS HACKING NEWS TODO README
241 -}
242
243 diff --git a/dev-libs/xapian-bindings/xapian-bindings-1.4.4.ebuild b/dev-libs/xapian-bindings/xapian-bindings-1.4.4.ebuild
244 deleted file mode 100644
245 index b03aeae6e54..00000000000
246 --- a/dev-libs/xapian-bindings/xapian-bindings-1.4.4.ebuild
247 +++ /dev/null
248 @@ -1,158 +0,0 @@
249 -# Copyright 1999-2017 Gentoo Foundation
250 -# Distributed under the terms of the GNU General Public License v2
251 -
252 -EAPI="5"
253 -
254 -PYTHON_COMPAT=( python{2_7,3_4,3_5} )
255 -PYTHON_REQ_USE="threads(+)"
256 -
257 -USE_PHP="php5-6"
258 -
259 -PHP_EXT_NAME="xapian"
260 -PHP_EXT_INI="yes"
261 -PHP_EXT_OPTIONAL_USE="php"
262 -
263 -inherit distutils-r1 libtool java-pkg-opt-2 mono-env php-ext-source-r2 toolchain-funcs
264 -
265 -DESCRIPTION="SWIG and JNI bindings for Xapian"
266 -HOMEPAGE="http://www.xapian.org/"
267 -SRC_URI="http://oligarchy.co.uk/xapian/${PV}/${P}.tar.xz"
268 -
269 -LICENSE="GPL-2"
270 -SLOT="0"
271 -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86"
272 -IUSE="java lua mono perl php python ruby tcl"
273 -REQUIRED_USE="|| ( java lua mono perl php python ruby tcl )"
274 -
275 -COMMONDEPEND="dev-libs/xapian:0/30
276 - lua? ( dev-lang/lua:= )
277 - perl? ( dev-lang/perl:= )
278 - python? (
279 - dev-python/sphinx[${PYTHON_USEDEP}]
280 - ${PYTHON_DEPS}
281 - )
282 - ruby? ( dev-lang/ruby:= )
283 - tcl? ( dev-lang/tcl:= )
284 - mono? ( dev-lang/mono )"
285 -DEPEND="${COMMONDEPEND}
286 - virtual/pkgconfig
287 - java? ( >=virtual/jdk-1.6 )"
288 -RDEPEND="${COMMONDEPEND}
289 - java? ( >=virtual/jre-1.6 )"
290 -
291 -pkg_setup() {
292 - use mono && mono-env_pkg_setup
293 - use java && java-pkg-opt-2_pkg_setup
294 -}
295 -
296 -src_prepare() {
297 - use java && java-pkg-opt-2_src_prepare
298 -
299 - # http://trac.xapian.org/ticket/702
300 - export XAPIAN_CONFIG="/usr/bin/xapian-config"
301 -
302 - # Accept ruby 2.0 - patch configure directly to avoid autoreconf
303 - epatch "${FILESDIR}"/${PN}-1.3.6-allow-ruby-2.0.patch
304 -
305 - if use python; then
306 - python_copy_sources
307 - fi
308 -}
309 -
310 -src_configure() {
311 - local conf=(
312 - --disable-documentation
313 - --without-csharp
314 - --without-python
315 - --without-python3
316 - )
317 -
318 - if use java; then
319 - export CXXFLAGS="${CXXFLAGS} $(java-pkg_get-jni-cflags)"
320 - conf+=( --with-java )
321 - fi
322 -
323 - if use perl; then
324 - export PERL_ARCH="$(perl -MConfig -e 'print $Config{installvendorarch}')"
325 - export PERL_LIB="$(perl -MConfig -e 'print $Config{installvendorlib}')"
326 - conf+=( --with-perl )
327 - fi
328 -
329 - if use lua; then
330 - export LUA_LIB="$($(tc-getPKG_CONFIG) --variable=INSTALL_CMOD lua)"
331 - conf+=( --with-lua )
332 - fi
333 -
334 - if use php; then
335 - if has_version "=dev-lang/php-7*"; then
336 - conf+=( --with-php7 )
337 - else
338 - conf+=( --with-php )
339 - fi
340 - fi
341 -
342 - use ruby && conf+=( --with-ruby )
343 - use tcl && conf+=( --with-tcl )
344 - use mono && conf+=( --with-csharp )
345 -
346 - econf ${conf[@]}
347 -
348 - python_configure() {
349 - local myconf=(
350 - --disable-documentation
351 - --without-java
352 - --without-lua
353 - --without-csharp
354 - --without-perl
355 - --without-php
356 - --without-ruby
357 - --without-tcl
358 - )
359 - if python_is_python3; then
360 - myconf+=( --with-python3 )
361 - else
362 - myconf+=( --with-python )
363 - fi
364 -
365 - # Avoid sandbox failures when compiling modules
366 - addpredict "$(python_get_sitedir)"
367 -
368 - econf "${myconf[@]}"
369 - }
370 -
371 - if use python; then
372 - python_foreach_impl run_in_build_dir python_configure
373 - fi
374 -}
375 -
376 -src_compile() {
377 - default
378 - if use python; then
379 - unset PYTHONDONTWRITEBYTECODE
380 - python_foreach_impl run_in_build_dir emake
381 - fi
382 -}
383 -
384 -src_install() {
385 - emake DESTDIR="${D}" install
386 -
387 - if use java; then
388 - java-pkg_dojar java/built/xapian_jni.jar
389 - # TODO: make the build system not install this...
390 - java-pkg_doso java/.libs/libxapian_jni.so
391 - rm -rf "${D}var" || die "could not remove java cruft!"
392 - fi
393 -
394 - use php && php-ext-source-r2_createinifiles
395 -
396 - if use python; then
397 - python_foreach_impl run_in_build_dir emake DESTDIR="${D}" install
398 - fi
399 -
400 - # For some USE combinations this directory is not created
401 - if [[ -d "${D}/usr/share/doc/xapian-bindings" ]]; then
402 - mv "${D}/usr/share/doc/xapian-bindings" "${D}/usr/share/doc/${PF}" || die
403 - fi
404 -
405 - dodoc AUTHORS HACKING NEWS TODO README
406 -}
407
408 diff --git a/dev-libs/xapian-bindings/xapian-bindings-1.4.6.ebuild b/dev-libs/xapian-bindings/xapian-bindings-1.4.6.ebuild
409 deleted file mode 100644
410 index 863e7f5c434..00000000000
411 --- a/dev-libs/xapian-bindings/xapian-bindings-1.4.6.ebuild
412 +++ /dev/null
413 @@ -1,305 +0,0 @@
414 -# Copyright 1999-2018 Gentoo Foundation
415 -# Distributed under the terms of the GNU General Public License v2
416 -
417 -EAPI="6"
418 -
419 -PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
420 -PYTHON_REQ_USE="threads(+)"
421 -
422 -USE_PHP="php5-6 php7-0 php7-1 php7-2"
423 -
424 -PHP_EXT_NAME="xapian"
425 -PHP_EXT_INI="yes"
426 -PHP_EXT_OPTIONAL_USE="php"
427 -
428 -USE_RUBY="ruby22 ruby23 ruby24"
429 -RUBY_OPTIONAL="yes"
430 -
431 -inherit java-pkg-opt-2 mono-env multibuild php-ext-source-r3 python-r1 ruby-ng toolchain-funcs
432 -
433 -DESCRIPTION="SWIG and JNI bindings for Xapian"
434 -HOMEPAGE="http://www.xapian.org/"
435 -SRC_URI="http://oligarchy.co.uk/xapian/${PV}/${P}.tar.xz"
436 -
437 -LICENSE="GPL-2"
438 -SLOT="0"
439 -KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
440 -IUSE="java lua mono perl php python ruby tcl"
441 -REQUIRED_USE="|| ( java lua mono perl php python ruby tcl )
442 - python? ( ${PYTHON_REQUIRED_USE} )
443 - ruby? ( || ( $(ruby_get_use_targets) ) )"
444 -
445 -COMMONDEPEND=">=dev-libs/xapian-1.4.6:0/30
446 - lua? ( dev-lang/lua:= )
447 - perl? ( dev-lang/perl:= )
448 - python? (
449 - dev-python/sphinx[${PYTHON_USEDEP}]
450 - ${PYTHON_DEPS}
451 - )
452 - ruby? ( $(ruby_implementations_depend) )
453 - tcl? ( dev-lang/tcl:= )
454 - mono? ( dev-lang/mono )"
455 -DEPEND="${COMMONDEPEND}
456 - virtual/pkgconfig
457 - java? ( >=virtual/jdk-1.6 )"
458 -RDEPEND="${COMMONDEPEND}
459 - java? ( >=virtual/jre-1.6 )"
460 -
461 -S="${WORKDIR}/${P}"
462 -
463 -has_basic_bindings() {
464 - # Update this list if new bindings are added that are not built
465 - # multiple times for multiple versions like php, python and ruby are
466 - return $(use mono || use java || use lua || use perl || use tcl)
467 -}
468 -
469 -php_copy_sources() {
470 - local MULTIBUILD_VARIANTS=($(php_get_slots))
471 - multibuild_copy_sources
472 -}
473 -
474 -php_foreach_impl() {
475 - local MULTIBUILD_VARIANTS=($(php_get_slots))
476 - multibuild_foreach_variant "$@"
477 -}
478 -
479 -ruby_copy_sources() {
480 - local MULTIBUILD_VARIANTS=($(ruby_get_use_implementations))
481 - multibuild_copy_sources
482 -}
483 -
484 -ruby_foreach_impl() {
485 - local MULTIBUILD_VARIANTS=($(ruby_get_use_implementations))
486 - multibuild_foreach_variant "$@"
487 -}
488 -
489 -pkg_setup() {
490 - use mono && mono-env_pkg_setup
491 - use java && java-pkg-opt-2_pkg_setup
492 -}
493 -
494 -src_unpack() {
495 - default
496 -
497 - if use php; then
498 - local php_slot
499 - for php_slot in $(php_get_slots); do
500 - # Unfortunately required for php-ext-source-r3_createinifiles().
501 - mkdir "${WORKDIR}/${php_slot}"
502 - done
503 - fi
504 -}
505 -
506 -src_prepare() {
507 - use java && java-pkg-opt-2_src_prepare
508 -
509 - # http://trac.xapian.org/ticket/702
510 - export XAPIAN_CONFIG="/usr/bin/xapian-config"
511 -
512 - if use php; then
513 - php_copy_sources
514 - fi
515 -
516 - if use python; then
517 - python_copy_sources
518 - fi
519 -
520 - if use ruby; then
521 - ruby_copy_sources
522 - fi
523 -
524 - eapply_user
525 -}
526 -
527 -src_configure() {
528 - if has_basic_bindings ; then
529 - local conf=(
530 - --disable-documentation
531 - $(use_with mono csharp)
532 - $(use_with java)
533 - $(use_with lua)
534 - $(use_with perl)
535 - $(use_with tcl)
536 - --without-php
537 - --without-php7
538 - --without-python
539 - --without-python3
540 - --without-ruby
541 - )
542 -
543 - if use java; then
544 - local -x CXXFLAGS="${CXXFLAGS} $(java-pkg_get-jni-cflags)"
545 - fi
546 -
547 - if use perl; then
548 - local -x PERL_ARCH="$(perl -MConfig -e 'print $Config{installvendorarch}')"
549 - local -x PERL_LIB="$(perl -MConfig -e 'print $Config{installvendorlib}')"
550 - fi
551 -
552 - if use lua; then
553 - local -x LUA_INC="$("$(tc-getPKG_CONFIG)" --variable=INSTALL_INC lua)"
554 - local -x LUA_LIB="$("$(tc-getPKG_CONFIG)" --variable=INSTALL_CMOD lua)"
555 - fi
556 -
557 - econf "${conf[@]}"
558 - fi
559 -
560 - php_configure() {
561 - local myconf=(
562 - --disable-documentation
563 - --without-java
564 - --without-lua
565 - --without-csharp
566 - --without-perl
567 - --without-python
568 - --without-python3
569 - --without-ruby
570 - --without-tcl
571 - )
572 - if [[ ${MULTIBUILD_VARIANT} == php5.* ]]; then
573 - myconf+=(
574 - --with-php
575 - --without-php7
576 - )
577 - local -x PHP_CONFIG="${EPREFIX}/usr/$(get_libdir)/${MULTIBUILD_VARIANT/-/.}/bin/php-config"
578 - elif [[ ${MULTIBUILD_VARIANT} == php7.* ]]; then
579 - myconf+=(
580 - --without-php
581 - --with-php7
582 - )
583 - local -x PHP_CONFIG7="${EPREFIX}/usr/$(get_libdir)/${MULTIBUILD_VARIANT/-/.}/bin/php-config"
584 - fi
585 -
586 - econf "${myconf[@]}"
587 - }
588 -
589 - if use php; then
590 - addpredict /usr/share/snmp/mibs/.index
591 - addpredict /var/lib/net-snmp/mib_indexes
592 -
593 - php_foreach_impl run_in_build_dir php_configure
594 - fi
595 -
596 - python_configure() {
597 - local myconf=(
598 - --disable-documentation
599 - --without-java
600 - --without-lua
601 - --without-csharp
602 - --without-perl
603 - --without-php
604 - --without-php7
605 - --without-ruby
606 - --without-tcl
607 - )
608 - if python_is_python3; then
609 - myconf+=( --with-python3 )
610 - else
611 - myconf+=( --with-python )
612 - fi
613 -
614 - # Avoid sandbox failures when compiling modules
615 - addpredict "$(python_get_sitedir)"
616 -
617 - econf "${myconf[@]}"
618 - }
619 -
620 - if use python; then
621 - python_foreach_impl run_in_build_dir python_configure
622 - fi
623 -
624 - ruby_configure() {
625 - local myconf=(
626 - --disable-documentation
627 - --without-java
628 - --without-lua
629 - --without-csharp
630 - --without-perl
631 - --without-php
632 - --without-php7
633 - --without-python
634 - --without-python3
635 - --with-ruby
636 - --without-tcl
637 - )
638 - local -x RUBY="${EPREFIX}/usr/bin/${MULTIBUILD_VARIANT}"
639 -
640 - econf "${myconf[@]}"
641 - }
642 -
643 - if use ruby; then
644 - ruby_foreach_impl run_in_build_dir ruby_configure
645 - fi
646 -}
647 -
648 -src_compile() {
649 - if has_basic_bindings ; then
650 - default
651 - fi
652 -
653 - if use php; then
654 - php_foreach_impl run_in_build_dir emake
655 - fi
656 -
657 - if use python; then
658 - unset PYTHONDONTWRITEBYTECODE
659 - python_foreach_impl run_in_build_dir emake
660 - fi
661 -
662 - if use ruby; then
663 - ruby_foreach_impl run_in_build_dir emake
664 - fi
665 -}
666 -
667 -src_test() {
668 - if has_basic_bindings ; then
669 - default
670 - fi
671 -
672 - if use php; then
673 - php_foreach_impl run_in_build_dir emake check
674 - fi
675 -
676 - if use python; then
677 - python_foreach_impl run_in_build_dir emake check
678 - fi
679 -
680 - if use ruby; then
681 - ruby_foreach_impl run_in_build_dir emake check
682 - fi
683 -}
684 -
685 -src_install() {
686 - if has_basic_bindings ; then
687 - emake DESTDIR="${D}" install
688 - fi
689 -
690 - if use java; then
691 - java-pkg_dojar java/built/xapian.jar
692 - # TODO: make the build system not install this...
693 - java-pkg_doso java/.libs/libxapian_jni.so
694 - rm -rf "${D}var" || die "could not remove java cruft!"
695 - fi
696 -
697 - if use php; then
698 - php_foreach_impl run_in_build_dir emake DESTDIR="${D}" install
699 - php-ext-source-r3_createinifiles
700 - # php-ext-source-r3_createinifiles() changes current directory.
701 - cd "${S}"
702 - fi
703 -
704 - if use python; then
705 - python_foreach_impl run_in_build_dir emake DESTDIR="${D}" install
706 - fi
707 -
708 - if use ruby; then
709 - ruby_foreach_impl run_in_build_dir emake DESTDIR="${D}" install
710 - fi
711 -
712 - # For some USE combinations this directory is not created
713 - if [[ -d "${D}/usr/share/doc/xapian-bindings" ]]; then
714 - mv "${D}/usr/share/doc/xapian-bindings" "${D}/usr/share/doc/${PF}" || die
715 - fi
716 -
717 - dodoc AUTHORS HACKING NEWS TODO README
718 -}