1 |
commit: e10c2a9007d03761012c3ac72109e93e1e697ff9 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 7 15:48:17 2020 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 7 15:50:10 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e10c2a90 |
7 |
|
8 |
dev-libs/xapian-bindings: remove older versions |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
12 |
|
13 |
dev-libs/xapian-bindings/Manifest | 7 - |
14 |
.../xapian-bindings/xapian-bindings-1.4.10.ebuild | 306 --------------------- |
15 |
.../xapian-bindings/xapian-bindings-1.4.11.ebuild | 306 --------------------- |
16 |
.../xapian-bindings/xapian-bindings-1.4.12.ebuild | 306 --------------------- |
17 |
.../xapian-bindings/xapian-bindings-1.4.13.ebuild | 306 --------------------- |
18 |
.../xapian-bindings/xapian-bindings-1.4.5.ebuild | 305 -------------------- |
19 |
.../xapian-bindings/xapian-bindings-1.4.8.ebuild | 305 -------------------- |
20 |
.../xapian-bindings/xapian-bindings-1.4.9.ebuild | 305 -------------------- |
21 |
8 files changed, 2146 deletions(-) |
22 |
|
23 |
diff --git a/dev-libs/xapian-bindings/Manifest b/dev-libs/xapian-bindings/Manifest |
24 |
index 7864d8f58ab..650a3ab0dc2 100644 |
25 |
--- a/dev-libs/xapian-bindings/Manifest |
26 |
+++ b/dev-libs/xapian-bindings/Manifest |
27 |
@@ -1,11 +1,4 @@ |
28 |
DIST xapian-bindings-1.2.25.tar.xz 1711860 BLAKE2B 66367dbc503333c4f59da8bb5bd4885fe9678aace45365573bac8e0e8e2c712795af2021ff52de9eeabb91f65a2f0447d1963424b1ae6558be95b737d1279e98 SHA512 5d27b2ae2722409ea99a1b9e6bf3f5c61ed9195b67121c090f1533340d3b11c546014985d0989a0725b60a07b392b9705bce054495f423bd3a7c99835aa336c7 |
29 |
-DIST xapian-bindings-1.4.10.tar.xz 1125168 BLAKE2B cb864021362098243993560724a66964532cd4ff47ce7a746876f1102113d136676b0feb70fa6515a9c9b31627e5363c76f4d65d9928b21822f05fe41b92401c SHA512 e993c33820f7606e17ee6ff5a13bdcb91beceec6a8443298ff06a3160052e96caff3aca30908c68a8a695429ec51189a86404b69c5525e5770741637cc63bbc1 |
30 |
-DIST xapian-bindings-1.4.11.tar.xz 1125716 BLAKE2B 0fd4204b4d18c04e017385f5eb116df68daa2f76f528f2b1770e61e5ab5062498aed6ccb57f51ac26ced58912d41c5f5a6f076e0f721a7eb1c3f83e01f2b9523 SHA512 326b08b9959143b92e6c10bd9b6b107ce2779e6ef1a3b5570abd07802a5988dd7df4e890d820f7da355f9f9e64df9a3ae08a0664d70d10ba6f876fca3dc44ecd |
31 |
-DIST xapian-bindings-1.4.12.tar.xz 1132048 BLAKE2B 56ab098a4d2da4de7e8be2a07581f57957d03cb84b31878c5f449d267060aa620a887f79c968f0ec28cb3a2c9f1f77f8e9e8d29e052c228109b71b0c137d7b71 SHA512 08190a70fe2548be50d82192f94158fd5d6839534b5ba7e0fdbcec7e99df29f0be6517603e7a66a474dffef94ea6bd2e6b7a3315717056687c6a205c25908b45 |
32 |
-DIST xapian-bindings-1.4.13.tar.xz 1132592 BLAKE2B f9498f67da907fba6f58209000bd8056c6654ea53d79806a53d8b17bfedbcb2afb1b91da189feab2bdfd39a3749d4ac20a21ed17c09b99345f575e705f125968 SHA512 20f5f8842e401ba1c1407f336d1a03fa8bc6faa1fcc9533bad1772644ad3ae878a51f10c2f7810f89e3f14683a73c0c089601af548cdf3fbe7feeead4d2d21d9 |
33 |
DIST xapian-bindings-1.4.14.tar.xz 1132008 BLAKE2B 3057f8f98cfd11e82555df4b554ad1ffed793ea92bf0f077ef4a495d09250da47116d76ded0deb07621f3b14ddd7f653aa0bb19add01d88fe077e637bee21ec4 SHA512 6d35c6c011c6d841254934f4dd59f4a2b842fe826af108e526cde9acbccec67b43517974331b21cbee5e828d0743aa5b9b973a96e1940065fbcfc342b8f23ead |
34 |
DIST xapian-bindings-1.4.15.tar.xz 1132248 BLAKE2B ba9f60263881ca558f9d3deab09bd07271e6f54e06a13d09bcb59bfaf9a637e959b3a62a9e9db0724ae2262e605fc3fd2160559d53702b2af5012f47177ea66a SHA512 dec8a0431c9070fc70d79b67bddc2e0adb10ef5366c4b9d7a135365ea6c6680d2e7682dbfd60c29eca51da48eaa0715509e30b13d5482d5a38bfd0d0156c43f9 |
35 |
-DIST xapian-bindings-1.4.5.tar.xz 1118884 BLAKE2B 507b06f0121e5a56224250bfe7b19795eb9fd2fba977d12022d054e7b832fd70af70085ad576dab41efcde261f9ecd48179646f1ea67aaa266fb6272358eb69a SHA512 e39ece495e25077990db3d06554306567c52c6f45ad55a65005cb97e18086ee18947e41d0d612157b891b61e015881385bcb082a03aa0c6452565e90d09e8275 |
36 |
DIST xapian-bindings-1.4.7.tar.xz 1121700 BLAKE2B f8492113b76aba322c975aa2b957a627a32e5209d8b79f435dc85c899cf14619af6165265e624e2ba8806f3c91dd35d71d98c4a47f5d6f4fba1b7fb83700c0d0 SHA512 c904cd3abf19d68495b0487ea77265fdc92a3cd8b1c2437b89034efd349ce41198bbc4abca49f259f71a1ba0fd269b2cf9b6dd4c1607678a73cbed4de9c5a1d5 |
37 |
-DIST xapian-bindings-1.4.8.tar.xz 1123812 BLAKE2B 5aa496ff3cfe06a40fa8db6a04cdc9041f4a0d9f12c7a61565f10c7d360490a7c8a7c745d91c9eda45b9d9bc58bd6a2bbae02aa9dd7ff1949ac59f7e09b090df SHA512 f979c32b096ecdc7a71b2bd032c6d0e7131f3d304e47e44005989ca79ea1f940c39626c60a8e52ff3cdb2cb380aa5ddf82a99bae08e06629c0bd47d8e0bfa7cc |
38 |
-DIST xapian-bindings-1.4.9.tar.xz 1123628 BLAKE2B 918748bb99b826485127b16511ae2fe6e7965102738308fc675eca3018c8a7131fd65f54cc396912367c4c6f43c7c28b1ba07591567fe3ae646c3e1480439d0d SHA512 cddc6cedfd571d565619ade0a4c9bfee8d688ca3d06d77368c8d673d3c9d1296b652122836debc84a4d54724c2bf0639a009396bf587ed4b8901a6bfe508851d |
39 |
|
40 |
diff --git a/dev-libs/xapian-bindings/xapian-bindings-1.4.10.ebuild b/dev-libs/xapian-bindings/xapian-bindings-1.4.10.ebuild |
41 |
deleted file mode 100644 |
42 |
index 9a638f05286..00000000000 |
43 |
--- a/dev-libs/xapian-bindings/xapian-bindings-1.4.10.ebuild |
44 |
+++ /dev/null |
45 |
@@ -1,306 +0,0 @@ |
46 |
-# Copyright 1999-2020 Gentoo Authors |
47 |
-# Distributed under the terms of the GNU General Public License v2 |
48 |
- |
49 |
-EAPI="6" |
50 |
- |
51 |
-PYTHON_COMPAT=( python{2_7,3_6} ) |
52 |
-PYTHON_REQ_USE="threads(+)" |
53 |
- |
54 |
-USE_PHP="php7-1 php7-2 php7-3" |
55 |
- |
56 |
-PHP_EXT_NAME="xapian" |
57 |
-PHP_EXT_INI="yes" |
58 |
-PHP_EXT_OPTIONAL_USE="php" |
59 |
- |
60 |
-USE_RUBY="ruby22 ruby23 ruby24" |
61 |
-RUBY_OPTIONAL="yes" |
62 |
- |
63 |
-inherit java-pkg-opt-2 mono-env multibuild php-ext-source-r3 python-r1 ruby-ng toolchain-funcs |
64 |
- |
65 |
-DESCRIPTION="SWIG and JNI bindings for Xapian" |
66 |
-HOMEPAGE="https://www.xapian.org/" |
67 |
-SRC_URI="https://oligarchy.co.uk/xapian/${PV}/${P}.tar.xz" |
68 |
- |
69 |
-LICENSE="GPL-2" |
70 |
-SLOT="0" |
71 |
-KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
72 |
-IUSE="java lua mono perl php python ruby tcl" |
73 |
-REQUIRED_USE="|| ( java lua mono perl php python ruby tcl ) |
74 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
75 |
- ruby? ( || ( $(ruby_get_use_targets) ) )" |
76 |
- |
77 |
-COMMONDEPEND=">=dev-libs/xapian-1.4.9:0/30 |
78 |
- lua? ( dev-lang/lua:= ) |
79 |
- perl? ( dev-lang/perl:= ) |
80 |
- php? ( dev-lang/php:=[-threads] ) |
81 |
- python? ( |
82 |
- dev-python/sphinx[${PYTHON_USEDEP}] |
83 |
- ${PYTHON_DEPS} |
84 |
- ) |
85 |
- ruby? ( $(ruby_implementations_depend) ) |
86 |
- tcl? ( dev-lang/tcl:= ) |
87 |
- mono? ( dev-lang/mono )" |
88 |
-DEPEND="${COMMONDEPEND} |
89 |
- virtual/pkgconfig |
90 |
- java? ( >=virtual/jdk-1.6 )" |
91 |
-RDEPEND="${COMMONDEPEND} |
92 |
- java? ( >=virtual/jre-1.6 )" |
93 |
- |
94 |
-S="${WORKDIR}/${P}" |
95 |
- |
96 |
-has_basic_bindings() { |
97 |
- # Update this list if new bindings are added that are not built |
98 |
- # multiple times for multiple versions like php, python and ruby are |
99 |
- return $(use mono || use java || use lua || use perl || use tcl) |
100 |
-} |
101 |
- |
102 |
-php_copy_sources() { |
103 |
- local MULTIBUILD_VARIANTS=($(php_get_slots)) |
104 |
- multibuild_copy_sources |
105 |
-} |
106 |
- |
107 |
-php_foreach_impl() { |
108 |
- local MULTIBUILD_VARIANTS=($(php_get_slots)) |
109 |
- multibuild_foreach_variant "$@" |
110 |
-} |
111 |
- |
112 |
-ruby_copy_sources() { |
113 |
- local MULTIBUILD_VARIANTS=($(ruby_get_use_implementations)) |
114 |
- multibuild_copy_sources |
115 |
-} |
116 |
- |
117 |
-ruby_foreach_impl() { |
118 |
- local MULTIBUILD_VARIANTS=($(ruby_get_use_implementations)) |
119 |
- multibuild_foreach_variant "$@" |
120 |
-} |
121 |
- |
122 |
-pkg_setup() { |
123 |
- use mono && mono-env_pkg_setup |
124 |
- use java && java-pkg-opt-2_pkg_setup |
125 |
-} |
126 |
- |
127 |
-src_unpack() { |
128 |
- default |
129 |
- |
130 |
- if use php; then |
131 |
- local php_slot |
132 |
- for php_slot in $(php_get_slots); do |
133 |
- # Unfortunately required for php-ext-source-r3_createinifiles(). |
134 |
- mkdir "${WORKDIR}/${php_slot}" |
135 |
- done |
136 |
- fi |
137 |
-} |
138 |
- |
139 |
-src_prepare() { |
140 |
- use java && java-pkg-opt-2_src_prepare |
141 |
- |
142 |
- # https://trac.xapian.org/ticket/702 |
143 |
- export XAPIAN_CONFIG="/usr/bin/xapian-config" |
144 |
- |
145 |
- if use php; then |
146 |
- php_copy_sources |
147 |
- fi |
148 |
- |
149 |
- if use python; then |
150 |
- python_copy_sources |
151 |
- fi |
152 |
- |
153 |
- if use ruby; then |
154 |
- ruby_copy_sources |
155 |
- fi |
156 |
- |
157 |
- eapply_user |
158 |
-} |
159 |
- |
160 |
-src_configure() { |
161 |
- if has_basic_bindings ; then |
162 |
- local conf=( |
163 |
- --disable-documentation |
164 |
- $(use_with mono csharp) |
165 |
- $(use_with java) |
166 |
- $(use_with lua) |
167 |
- $(use_with perl) |
168 |
- $(use_with tcl) |
169 |
- --without-php |
170 |
- --without-php7 |
171 |
- --without-python |
172 |
- --without-python3 |
173 |
- --without-ruby |
174 |
- ) |
175 |
- |
176 |
- if use java; then |
177 |
- local -x CXXFLAGS="${CXXFLAGS} $(java-pkg_get-jni-cflags)" |
178 |
- fi |
179 |
- |
180 |
- if use perl; then |
181 |
- local -x PERL_ARCH="$(perl -MConfig -e 'print $Config{installvendorarch}')" |
182 |
- local -x PERL_LIB="$(perl -MConfig -e 'print $Config{installvendorlib}')" |
183 |
- fi |
184 |
- |
185 |
- if use lua; then |
186 |
- local -x LUA_INC="$("$(tc-getPKG_CONFIG)" --variable=INSTALL_INC lua)" |
187 |
- local -x LUA_LIB="$("$(tc-getPKG_CONFIG)" --variable=INSTALL_CMOD lua)" |
188 |
- fi |
189 |
- |
190 |
- econf "${conf[@]}" |
191 |
- fi |
192 |
- |
193 |
- php_configure() { |
194 |
- local myconf=( |
195 |
- --disable-documentation |
196 |
- --without-java |
197 |
- --without-lua |
198 |
- --without-csharp |
199 |
- --without-perl |
200 |
- --without-python |
201 |
- --without-python3 |
202 |
- --without-ruby |
203 |
- --without-tcl |
204 |
- ) |
205 |
- if [[ ${MULTIBUILD_VARIANT} == php5.* ]]; then |
206 |
- myconf+=( |
207 |
- --with-php |
208 |
- --without-php7 |
209 |
- ) |
210 |
- local -x PHP_CONFIG="${EPREFIX}/usr/$(get_libdir)/${MULTIBUILD_VARIANT/-/.}/bin/php-config" |
211 |
- elif [[ ${MULTIBUILD_VARIANT} == php7.* ]]; then |
212 |
- myconf+=( |
213 |
- --without-php |
214 |
- --with-php7 |
215 |
- ) |
216 |
- local -x PHP_CONFIG7="${EPREFIX}/usr/$(get_libdir)/${MULTIBUILD_VARIANT/-/.}/bin/php-config" |
217 |
- fi |
218 |
- |
219 |
- econf "${myconf[@]}" |
220 |
- } |
221 |
- |
222 |
- if use php; then |
223 |
- addpredict /usr/share/snmp/mibs/.index |
224 |
- addpredict /var/lib/net-snmp/mib_indexes |
225 |
- |
226 |
- php_foreach_impl run_in_build_dir php_configure |
227 |
- fi |
228 |
- |
229 |
- python_configure() { |
230 |
- local myconf=( |
231 |
- --disable-documentation |
232 |
- --without-java |
233 |
- --without-lua |
234 |
- --without-csharp |
235 |
- --without-perl |
236 |
- --without-php |
237 |
- --without-php7 |
238 |
- --without-ruby |
239 |
- --without-tcl |
240 |
- ) |
241 |
- if python_is_python3; then |
242 |
- myconf+=( --with-python3 ) |
243 |
- else |
244 |
- myconf+=( --with-python ) |
245 |
- fi |
246 |
- |
247 |
- # Avoid sandbox failures when compiling modules |
248 |
- addpredict "$(python_get_sitedir)" |
249 |
- |
250 |
- econf "${myconf[@]}" |
251 |
- } |
252 |
- |
253 |
- if use python; then |
254 |
- python_foreach_impl run_in_build_dir python_configure |
255 |
- fi |
256 |
- |
257 |
- ruby_configure() { |
258 |
- local myconf=( |
259 |
- --disable-documentation |
260 |
- --without-java |
261 |
- --without-lua |
262 |
- --without-csharp |
263 |
- --without-perl |
264 |
- --without-php |
265 |
- --without-php7 |
266 |
- --without-python |
267 |
- --without-python3 |
268 |
- --with-ruby |
269 |
- --without-tcl |
270 |
- ) |
271 |
- local -x RUBY="${EPREFIX}/usr/bin/${MULTIBUILD_VARIANT}" |
272 |
- |
273 |
- econf "${myconf[@]}" |
274 |
- } |
275 |
- |
276 |
- if use ruby; then |
277 |
- ruby_foreach_impl run_in_build_dir ruby_configure |
278 |
- fi |
279 |
-} |
280 |
- |
281 |
-src_compile() { |
282 |
- if has_basic_bindings ; then |
283 |
- default |
284 |
- fi |
285 |
- |
286 |
- if use php; then |
287 |
- php_foreach_impl run_in_build_dir emake |
288 |
- fi |
289 |
- |
290 |
- if use python; then |
291 |
- unset PYTHONDONTWRITEBYTECODE |
292 |
- python_foreach_impl run_in_build_dir emake |
293 |
- fi |
294 |
- |
295 |
- if use ruby; then |
296 |
- ruby_foreach_impl run_in_build_dir emake |
297 |
- fi |
298 |
-} |
299 |
- |
300 |
-src_test() { |
301 |
- if has_basic_bindings ; then |
302 |
- default |
303 |
- fi |
304 |
- |
305 |
- if use php; then |
306 |
- php_foreach_impl run_in_build_dir emake check |
307 |
- fi |
308 |
- |
309 |
- if use python; then |
310 |
- python_foreach_impl run_in_build_dir emake check |
311 |
- fi |
312 |
- |
313 |
- if use ruby; then |
314 |
- ruby_foreach_impl run_in_build_dir emake check |
315 |
- fi |
316 |
-} |
317 |
- |
318 |
-src_install() { |
319 |
- if has_basic_bindings ; then |
320 |
- emake DESTDIR="${D}" install |
321 |
- fi |
322 |
- |
323 |
- if use java; then |
324 |
- java-pkg_dojar java/built/xapian.jar |
325 |
- # TODO: make the build system not install this... |
326 |
- java-pkg_doso java/.libs/libxapian_jni.so |
327 |
- rm -rf "${D}var" || die "could not remove java cruft!" |
328 |
- fi |
329 |
- |
330 |
- if use php; then |
331 |
- php_foreach_impl run_in_build_dir emake DESTDIR="${D}" install |
332 |
- php-ext-source-r3_createinifiles |
333 |
- # php-ext-source-r3_createinifiles() changes current directory. |
334 |
- cd "${S}" |
335 |
- fi |
336 |
- |
337 |
- if use python; then |
338 |
- python_foreach_impl run_in_build_dir emake DESTDIR="${D}" install |
339 |
- fi |
340 |
- |
341 |
- if use ruby; then |
342 |
- ruby_foreach_impl run_in_build_dir emake DESTDIR="${D}" install |
343 |
- fi |
344 |
- |
345 |
- # For some USE combinations this directory is not created |
346 |
- if [[ -d "${D}/usr/share/doc/xapian-bindings" ]]; then |
347 |
- mv "${D}/usr/share/doc/xapian-bindings" "${D}/usr/share/doc/${PF}" || die |
348 |
- fi |
349 |
- |
350 |
- dodoc AUTHORS HACKING NEWS TODO README |
351 |
-} |
352 |
|
353 |
diff --git a/dev-libs/xapian-bindings/xapian-bindings-1.4.11.ebuild b/dev-libs/xapian-bindings/xapian-bindings-1.4.11.ebuild |
354 |
deleted file mode 100644 |
355 |
index c17baaa699c..00000000000 |
356 |
--- a/dev-libs/xapian-bindings/xapian-bindings-1.4.11.ebuild |
357 |
+++ /dev/null |
358 |
@@ -1,306 +0,0 @@ |
359 |
-# Copyright 1999-2020 Gentoo Authors |
360 |
-# Distributed under the terms of the GNU General Public License v2 |
361 |
- |
362 |
-EAPI="6" |
363 |
- |
364 |
-PYTHON_COMPAT=( python{2_7,3_6} ) |
365 |
-PYTHON_REQ_USE="threads(+)" |
366 |
- |
367 |
-USE_PHP="php7-1 php7-2 php7-3" |
368 |
- |
369 |
-PHP_EXT_NAME="xapian" |
370 |
-PHP_EXT_INI="yes" |
371 |
-PHP_EXT_OPTIONAL_USE="php" |
372 |
- |
373 |
-USE_RUBY="ruby24 ruby25 ruby26" |
374 |
-RUBY_OPTIONAL="yes" |
375 |
- |
376 |
-inherit java-pkg-opt-2 mono-env multibuild php-ext-source-r3 python-r1 ruby-ng toolchain-funcs |
377 |
- |
378 |
-DESCRIPTION="SWIG and JNI bindings for Xapian" |
379 |
-HOMEPAGE="https://www.xapian.org/" |
380 |
-SRC_URI="https://oligarchy.co.uk/xapian/${PV}/${P}.tar.xz" |
381 |
- |
382 |
-LICENSE="GPL-2" |
383 |
-SLOT="0" |
384 |
-KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
385 |
-IUSE="java lua mono perl php python ruby tcl" |
386 |
-REQUIRED_USE="|| ( java lua mono perl php python ruby tcl ) |
387 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
388 |
- ruby? ( || ( $(ruby_get_use_targets) ) )" |
389 |
- |
390 |
-COMMONDEPEND=">=dev-libs/xapian-1.4.9:0/30 |
391 |
- lua? ( dev-lang/lua:= ) |
392 |
- perl? ( dev-lang/perl:= ) |
393 |
- php? ( dev-lang/php:=[-threads] ) |
394 |
- python? ( |
395 |
- dev-python/sphinx[${PYTHON_USEDEP}] |
396 |
- ${PYTHON_DEPS} |
397 |
- ) |
398 |
- ruby? ( $(ruby_implementations_depend) ) |
399 |
- tcl? ( dev-lang/tcl:= ) |
400 |
- mono? ( dev-lang/mono )" |
401 |
-DEPEND="${COMMONDEPEND} |
402 |
- virtual/pkgconfig |
403 |
- java? ( >=virtual/jdk-1.6 )" |
404 |
-RDEPEND="${COMMONDEPEND} |
405 |
- java? ( >=virtual/jre-1.6 )" |
406 |
- |
407 |
-S="${WORKDIR}/${P}" |
408 |
- |
409 |
-has_basic_bindings() { |
410 |
- # Update this list if new bindings are added that are not built |
411 |
- # multiple times for multiple versions like php, python and ruby are |
412 |
- return $(use mono || use java || use lua || use perl || use tcl) |
413 |
-} |
414 |
- |
415 |
-php_copy_sources() { |
416 |
- local MULTIBUILD_VARIANTS=($(php_get_slots)) |
417 |
- multibuild_copy_sources |
418 |
-} |
419 |
- |
420 |
-php_foreach_impl() { |
421 |
- local MULTIBUILD_VARIANTS=($(php_get_slots)) |
422 |
- multibuild_foreach_variant "$@" |
423 |
-} |
424 |
- |
425 |
-ruby_copy_sources() { |
426 |
- local MULTIBUILD_VARIANTS=($(ruby_get_use_implementations)) |
427 |
- multibuild_copy_sources |
428 |
-} |
429 |
- |
430 |
-ruby_foreach_impl() { |
431 |
- local MULTIBUILD_VARIANTS=($(ruby_get_use_implementations)) |
432 |
- multibuild_foreach_variant "$@" |
433 |
-} |
434 |
- |
435 |
-pkg_setup() { |
436 |
- use mono && mono-env_pkg_setup |
437 |
- use java && java-pkg-opt-2_pkg_setup |
438 |
-} |
439 |
- |
440 |
-src_unpack() { |
441 |
- default |
442 |
- |
443 |
- if use php; then |
444 |
- local php_slot |
445 |
- for php_slot in $(php_get_slots); do |
446 |
- # Unfortunately required for php-ext-source-r3_createinifiles(). |
447 |
- mkdir "${WORKDIR}/${php_slot}" |
448 |
- done |
449 |
- fi |
450 |
-} |
451 |
- |
452 |
-src_prepare() { |
453 |
- use java && java-pkg-opt-2_src_prepare |
454 |
- |
455 |
- # https://trac.xapian.org/ticket/702 |
456 |
- export XAPIAN_CONFIG="/usr/bin/xapian-config" |
457 |
- |
458 |
- if use php; then |
459 |
- php_copy_sources |
460 |
- fi |
461 |
- |
462 |
- if use python; then |
463 |
- python_copy_sources |
464 |
- fi |
465 |
- |
466 |
- if use ruby; then |
467 |
- ruby_copy_sources |
468 |
- fi |
469 |
- |
470 |
- eapply_user |
471 |
-} |
472 |
- |
473 |
-src_configure() { |
474 |
- if has_basic_bindings ; then |
475 |
- local conf=( |
476 |
- --disable-documentation |
477 |
- $(use_with mono csharp) |
478 |
- $(use_with java) |
479 |
- $(use_with lua) |
480 |
- $(use_with perl) |
481 |
- $(use_with tcl) |
482 |
- --without-php |
483 |
- --without-php7 |
484 |
- --without-python |
485 |
- --without-python3 |
486 |
- --without-ruby |
487 |
- ) |
488 |
- |
489 |
- if use java; then |
490 |
- local -x CXXFLAGS="${CXXFLAGS} $(java-pkg_get-jni-cflags)" |
491 |
- fi |
492 |
- |
493 |
- if use perl; then |
494 |
- local -x PERL_ARCH="$(perl -MConfig -e 'print $Config{installvendorarch}')" |
495 |
- local -x PERL_LIB="$(perl -MConfig -e 'print $Config{installvendorlib}')" |
496 |
- fi |
497 |
- |
498 |
- if use lua; then |
499 |
- local -x LUA_INC="$("$(tc-getPKG_CONFIG)" --variable=INSTALL_INC lua)" |
500 |
- local -x LUA_LIB="$("$(tc-getPKG_CONFIG)" --variable=INSTALL_CMOD lua)" |
501 |
- fi |
502 |
- |
503 |
- econf "${conf[@]}" |
504 |
- fi |
505 |
- |
506 |
- php_configure() { |
507 |
- local myconf=( |
508 |
- --disable-documentation |
509 |
- --without-java |
510 |
- --without-lua |
511 |
- --without-csharp |
512 |
- --without-perl |
513 |
- --without-python |
514 |
- --without-python3 |
515 |
- --without-ruby |
516 |
- --without-tcl |
517 |
- ) |
518 |
- if [[ ${MULTIBUILD_VARIANT} == php5.* ]]; then |
519 |
- myconf+=( |
520 |
- --with-php |
521 |
- --without-php7 |
522 |
- ) |
523 |
- local -x PHP_CONFIG="${EPREFIX}/usr/$(get_libdir)/${MULTIBUILD_VARIANT/-/.}/bin/php-config" |
524 |
- elif [[ ${MULTIBUILD_VARIANT} == php7.* ]]; then |
525 |
- myconf+=( |
526 |
- --without-php |
527 |
- --with-php7 |
528 |
- ) |
529 |
- local -x PHP_CONFIG7="${EPREFIX}/usr/$(get_libdir)/${MULTIBUILD_VARIANT/-/.}/bin/php-config" |
530 |
- fi |
531 |
- |
532 |
- econf "${myconf[@]}" |
533 |
- } |
534 |
- |
535 |
- if use php; then |
536 |
- addpredict /usr/share/snmp/mibs/.index |
537 |
- addpredict /var/lib/net-snmp/mib_indexes |
538 |
- |
539 |
- php_foreach_impl run_in_build_dir php_configure |
540 |
- fi |
541 |
- |
542 |
- python_configure() { |
543 |
- local myconf=( |
544 |
- --disable-documentation |
545 |
- --without-java |
546 |
- --without-lua |
547 |
- --without-csharp |
548 |
- --without-perl |
549 |
- --without-php |
550 |
- --without-php7 |
551 |
- --without-ruby |
552 |
- --without-tcl |
553 |
- ) |
554 |
- if python_is_python3; then |
555 |
- myconf+=( --with-python3 ) |
556 |
- else |
557 |
- myconf+=( --with-python ) |
558 |
- fi |
559 |
- |
560 |
- # Avoid sandbox failures when compiling modules |
561 |
- addpredict "$(python_get_sitedir)" |
562 |
- |
563 |
- econf "${myconf[@]}" |
564 |
- } |
565 |
- |
566 |
- if use python; then |
567 |
- python_foreach_impl run_in_build_dir python_configure |
568 |
- fi |
569 |
- |
570 |
- ruby_configure() { |
571 |
- local myconf=( |
572 |
- --disable-documentation |
573 |
- --without-java |
574 |
- --without-lua |
575 |
- --without-csharp |
576 |
- --without-perl |
577 |
- --without-php |
578 |
- --without-php7 |
579 |
- --without-python |
580 |
- --without-python3 |
581 |
- --with-ruby |
582 |
- --without-tcl |
583 |
- ) |
584 |
- local -x RUBY="${EPREFIX}/usr/bin/${MULTIBUILD_VARIANT}" |
585 |
- |
586 |
- econf "${myconf[@]}" |
587 |
- } |
588 |
- |
589 |
- if use ruby; then |
590 |
- ruby_foreach_impl run_in_build_dir ruby_configure |
591 |
- fi |
592 |
-} |
593 |
- |
594 |
-src_compile() { |
595 |
- if has_basic_bindings ; then |
596 |
- default |
597 |
- fi |
598 |
- |
599 |
- if use php; then |
600 |
- php_foreach_impl run_in_build_dir emake |
601 |
- fi |
602 |
- |
603 |
- if use python; then |
604 |
- unset PYTHONDONTWRITEBYTECODE |
605 |
- python_foreach_impl run_in_build_dir emake |
606 |
- fi |
607 |
- |
608 |
- if use ruby; then |
609 |
- ruby_foreach_impl run_in_build_dir emake |
610 |
- fi |
611 |
-} |
612 |
- |
613 |
-src_test() { |
614 |
- if has_basic_bindings ; then |
615 |
- default |
616 |
- fi |
617 |
- |
618 |
- if use php; then |
619 |
- php_foreach_impl run_in_build_dir emake check |
620 |
- fi |
621 |
- |
622 |
- if use python; then |
623 |
- python_foreach_impl run_in_build_dir emake check |
624 |
- fi |
625 |
- |
626 |
- if use ruby; then |
627 |
- ruby_foreach_impl run_in_build_dir emake check |
628 |
- fi |
629 |
-} |
630 |
- |
631 |
-src_install() { |
632 |
- if has_basic_bindings ; then |
633 |
- emake DESTDIR="${D}" install |
634 |
- fi |
635 |
- |
636 |
- if use java; then |
637 |
- java-pkg_dojar java/built/xapian.jar |
638 |
- # TODO: make the build system not install this... |
639 |
- java-pkg_doso java/.libs/libxapian_jni.so |
640 |
- rm -rf "${D}var" || die "could not remove java cruft!" |
641 |
- fi |
642 |
- |
643 |
- if use php; then |
644 |
- php_foreach_impl run_in_build_dir emake DESTDIR="${D}" install |
645 |
- php-ext-source-r3_createinifiles |
646 |
- # php-ext-source-r3_createinifiles() changes current directory. |
647 |
- cd "${S}" |
648 |
- fi |
649 |
- |
650 |
- if use python; then |
651 |
- python_foreach_impl run_in_build_dir emake DESTDIR="${D}" install |
652 |
- fi |
653 |
- |
654 |
- if use ruby; then |
655 |
- ruby_foreach_impl run_in_build_dir emake DESTDIR="${D}" install |
656 |
- fi |
657 |
- |
658 |
- # For some USE combinations this directory is not created |
659 |
- if [[ -d "${D}/usr/share/doc/xapian-bindings" ]]; then |
660 |
- mv "${D}/usr/share/doc/xapian-bindings" "${D}/usr/share/doc/${PF}" || die |
661 |
- fi |
662 |
- |
663 |
- dodoc AUTHORS HACKING NEWS TODO README |
664 |
-} |
665 |
|
666 |
diff --git a/dev-libs/xapian-bindings/xapian-bindings-1.4.12.ebuild b/dev-libs/xapian-bindings/xapian-bindings-1.4.12.ebuild |
667 |
deleted file mode 100644 |
668 |
index c17baaa699c..00000000000 |
669 |
--- a/dev-libs/xapian-bindings/xapian-bindings-1.4.12.ebuild |
670 |
+++ /dev/null |
671 |
@@ -1,306 +0,0 @@ |
672 |
-# Copyright 1999-2020 Gentoo Authors |
673 |
-# Distributed under the terms of the GNU General Public License v2 |
674 |
- |
675 |
-EAPI="6" |
676 |
- |
677 |
-PYTHON_COMPAT=( python{2_7,3_6} ) |
678 |
-PYTHON_REQ_USE="threads(+)" |
679 |
- |
680 |
-USE_PHP="php7-1 php7-2 php7-3" |
681 |
- |
682 |
-PHP_EXT_NAME="xapian" |
683 |
-PHP_EXT_INI="yes" |
684 |
-PHP_EXT_OPTIONAL_USE="php" |
685 |
- |
686 |
-USE_RUBY="ruby24 ruby25 ruby26" |
687 |
-RUBY_OPTIONAL="yes" |
688 |
- |
689 |
-inherit java-pkg-opt-2 mono-env multibuild php-ext-source-r3 python-r1 ruby-ng toolchain-funcs |
690 |
- |
691 |
-DESCRIPTION="SWIG and JNI bindings for Xapian" |
692 |
-HOMEPAGE="https://www.xapian.org/" |
693 |
-SRC_URI="https://oligarchy.co.uk/xapian/${PV}/${P}.tar.xz" |
694 |
- |
695 |
-LICENSE="GPL-2" |
696 |
-SLOT="0" |
697 |
-KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
698 |
-IUSE="java lua mono perl php python ruby tcl" |
699 |
-REQUIRED_USE="|| ( java lua mono perl php python ruby tcl ) |
700 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
701 |
- ruby? ( || ( $(ruby_get_use_targets) ) )" |
702 |
- |
703 |
-COMMONDEPEND=">=dev-libs/xapian-1.4.9:0/30 |
704 |
- lua? ( dev-lang/lua:= ) |
705 |
- perl? ( dev-lang/perl:= ) |
706 |
- php? ( dev-lang/php:=[-threads] ) |
707 |
- python? ( |
708 |
- dev-python/sphinx[${PYTHON_USEDEP}] |
709 |
- ${PYTHON_DEPS} |
710 |
- ) |
711 |
- ruby? ( $(ruby_implementations_depend) ) |
712 |
- tcl? ( dev-lang/tcl:= ) |
713 |
- mono? ( dev-lang/mono )" |
714 |
-DEPEND="${COMMONDEPEND} |
715 |
- virtual/pkgconfig |
716 |
- java? ( >=virtual/jdk-1.6 )" |
717 |
-RDEPEND="${COMMONDEPEND} |
718 |
- java? ( >=virtual/jre-1.6 )" |
719 |
- |
720 |
-S="${WORKDIR}/${P}" |
721 |
- |
722 |
-has_basic_bindings() { |
723 |
- # Update this list if new bindings are added that are not built |
724 |
- # multiple times for multiple versions like php, python and ruby are |
725 |
- return $(use mono || use java || use lua || use perl || use tcl) |
726 |
-} |
727 |
- |
728 |
-php_copy_sources() { |
729 |
- local MULTIBUILD_VARIANTS=($(php_get_slots)) |
730 |
- multibuild_copy_sources |
731 |
-} |
732 |
- |
733 |
-php_foreach_impl() { |
734 |
- local MULTIBUILD_VARIANTS=($(php_get_slots)) |
735 |
- multibuild_foreach_variant "$@" |
736 |
-} |
737 |
- |
738 |
-ruby_copy_sources() { |
739 |
- local MULTIBUILD_VARIANTS=($(ruby_get_use_implementations)) |
740 |
- multibuild_copy_sources |
741 |
-} |
742 |
- |
743 |
-ruby_foreach_impl() { |
744 |
- local MULTIBUILD_VARIANTS=($(ruby_get_use_implementations)) |
745 |
- multibuild_foreach_variant "$@" |
746 |
-} |
747 |
- |
748 |
-pkg_setup() { |
749 |
- use mono && mono-env_pkg_setup |
750 |
- use java && java-pkg-opt-2_pkg_setup |
751 |
-} |
752 |
- |
753 |
-src_unpack() { |
754 |
- default |
755 |
- |
756 |
- if use php; then |
757 |
- local php_slot |
758 |
- for php_slot in $(php_get_slots); do |
759 |
- # Unfortunately required for php-ext-source-r3_createinifiles(). |
760 |
- mkdir "${WORKDIR}/${php_slot}" |
761 |
- done |
762 |
- fi |
763 |
-} |
764 |
- |
765 |
-src_prepare() { |
766 |
- use java && java-pkg-opt-2_src_prepare |
767 |
- |
768 |
- # https://trac.xapian.org/ticket/702 |
769 |
- export XAPIAN_CONFIG="/usr/bin/xapian-config" |
770 |
- |
771 |
- if use php; then |
772 |
- php_copy_sources |
773 |
- fi |
774 |
- |
775 |
- if use python; then |
776 |
- python_copy_sources |
777 |
- fi |
778 |
- |
779 |
- if use ruby; then |
780 |
- ruby_copy_sources |
781 |
- fi |
782 |
- |
783 |
- eapply_user |
784 |
-} |
785 |
- |
786 |
-src_configure() { |
787 |
- if has_basic_bindings ; then |
788 |
- local conf=( |
789 |
- --disable-documentation |
790 |
- $(use_with mono csharp) |
791 |
- $(use_with java) |
792 |
- $(use_with lua) |
793 |
- $(use_with perl) |
794 |
- $(use_with tcl) |
795 |
- --without-php |
796 |
- --without-php7 |
797 |
- --without-python |
798 |
- --without-python3 |
799 |
- --without-ruby |
800 |
- ) |
801 |
- |
802 |
- if use java; then |
803 |
- local -x CXXFLAGS="${CXXFLAGS} $(java-pkg_get-jni-cflags)" |
804 |
- fi |
805 |
- |
806 |
- if use perl; then |
807 |
- local -x PERL_ARCH="$(perl -MConfig -e 'print $Config{installvendorarch}')" |
808 |
- local -x PERL_LIB="$(perl -MConfig -e 'print $Config{installvendorlib}')" |
809 |
- fi |
810 |
- |
811 |
- if use lua; then |
812 |
- local -x LUA_INC="$("$(tc-getPKG_CONFIG)" --variable=INSTALL_INC lua)" |
813 |
- local -x LUA_LIB="$("$(tc-getPKG_CONFIG)" --variable=INSTALL_CMOD lua)" |
814 |
- fi |
815 |
- |
816 |
- econf "${conf[@]}" |
817 |
- fi |
818 |
- |
819 |
- php_configure() { |
820 |
- local myconf=( |
821 |
- --disable-documentation |
822 |
- --without-java |
823 |
- --without-lua |
824 |
- --without-csharp |
825 |
- --without-perl |
826 |
- --without-python |
827 |
- --without-python3 |
828 |
- --without-ruby |
829 |
- --without-tcl |
830 |
- ) |
831 |
- if [[ ${MULTIBUILD_VARIANT} == php5.* ]]; then |
832 |
- myconf+=( |
833 |
- --with-php |
834 |
- --without-php7 |
835 |
- ) |
836 |
- local -x PHP_CONFIG="${EPREFIX}/usr/$(get_libdir)/${MULTIBUILD_VARIANT/-/.}/bin/php-config" |
837 |
- elif [[ ${MULTIBUILD_VARIANT} == php7.* ]]; then |
838 |
- myconf+=( |
839 |
- --without-php |
840 |
- --with-php7 |
841 |
- ) |
842 |
- local -x PHP_CONFIG7="${EPREFIX}/usr/$(get_libdir)/${MULTIBUILD_VARIANT/-/.}/bin/php-config" |
843 |
- fi |
844 |
- |
845 |
- econf "${myconf[@]}" |
846 |
- } |
847 |
- |
848 |
- if use php; then |
849 |
- addpredict /usr/share/snmp/mibs/.index |
850 |
- addpredict /var/lib/net-snmp/mib_indexes |
851 |
- |
852 |
- php_foreach_impl run_in_build_dir php_configure |
853 |
- fi |
854 |
- |
855 |
- python_configure() { |
856 |
- local myconf=( |
857 |
- --disable-documentation |
858 |
- --without-java |
859 |
- --without-lua |
860 |
- --without-csharp |
861 |
- --without-perl |
862 |
- --without-php |
863 |
- --without-php7 |
864 |
- --without-ruby |
865 |
- --without-tcl |
866 |
- ) |
867 |
- if python_is_python3; then |
868 |
- myconf+=( --with-python3 ) |
869 |
- else |
870 |
- myconf+=( --with-python ) |
871 |
- fi |
872 |
- |
873 |
- # Avoid sandbox failures when compiling modules |
874 |
- addpredict "$(python_get_sitedir)" |
875 |
- |
876 |
- econf "${myconf[@]}" |
877 |
- } |
878 |
- |
879 |
- if use python; then |
880 |
- python_foreach_impl run_in_build_dir python_configure |
881 |
- fi |
882 |
- |
883 |
- ruby_configure() { |
884 |
- local myconf=( |
885 |
- --disable-documentation |
886 |
- --without-java |
887 |
- --without-lua |
888 |
- --without-csharp |
889 |
- --without-perl |
890 |
- --without-php |
891 |
- --without-php7 |
892 |
- --without-python |
893 |
- --without-python3 |
894 |
- --with-ruby |
895 |
- --without-tcl |
896 |
- ) |
897 |
- local -x RUBY="${EPREFIX}/usr/bin/${MULTIBUILD_VARIANT}" |
898 |
- |
899 |
- econf "${myconf[@]}" |
900 |
- } |
901 |
- |
902 |
- if use ruby; then |
903 |
- ruby_foreach_impl run_in_build_dir ruby_configure |
904 |
- fi |
905 |
-} |
906 |
- |
907 |
-src_compile() { |
908 |
- if has_basic_bindings ; then |
909 |
- default |
910 |
- fi |
911 |
- |
912 |
- if use php; then |
913 |
- php_foreach_impl run_in_build_dir emake |
914 |
- fi |
915 |
- |
916 |
- if use python; then |
917 |
- unset PYTHONDONTWRITEBYTECODE |
918 |
- python_foreach_impl run_in_build_dir emake |
919 |
- fi |
920 |
- |
921 |
- if use ruby; then |
922 |
- ruby_foreach_impl run_in_build_dir emake |
923 |
- fi |
924 |
-} |
925 |
- |
926 |
-src_test() { |
927 |
- if has_basic_bindings ; then |
928 |
- default |
929 |
- fi |
930 |
- |
931 |
- if use php; then |
932 |
- php_foreach_impl run_in_build_dir emake check |
933 |
- fi |
934 |
- |
935 |
- if use python; then |
936 |
- python_foreach_impl run_in_build_dir emake check |
937 |
- fi |
938 |
- |
939 |
- if use ruby; then |
940 |
- ruby_foreach_impl run_in_build_dir emake check |
941 |
- fi |
942 |
-} |
943 |
- |
944 |
-src_install() { |
945 |
- if has_basic_bindings ; then |
946 |
- emake DESTDIR="${D}" install |
947 |
- fi |
948 |
- |
949 |
- if use java; then |
950 |
- java-pkg_dojar java/built/xapian.jar |
951 |
- # TODO: make the build system not install this... |
952 |
- java-pkg_doso java/.libs/libxapian_jni.so |
953 |
- rm -rf "${D}var" || die "could not remove java cruft!" |
954 |
- fi |
955 |
- |
956 |
- if use php; then |
957 |
- php_foreach_impl run_in_build_dir emake DESTDIR="${D}" install |
958 |
- php-ext-source-r3_createinifiles |
959 |
- # php-ext-source-r3_createinifiles() changes current directory. |
960 |
- cd "${S}" |
961 |
- fi |
962 |
- |
963 |
- if use python; then |
964 |
- python_foreach_impl run_in_build_dir emake DESTDIR="${D}" install |
965 |
- fi |
966 |
- |
967 |
- if use ruby; then |
968 |
- ruby_foreach_impl run_in_build_dir emake DESTDIR="${D}" install |
969 |
- fi |
970 |
- |
971 |
- # For some USE combinations this directory is not created |
972 |
- if [[ -d "${D}/usr/share/doc/xapian-bindings" ]]; then |
973 |
- mv "${D}/usr/share/doc/xapian-bindings" "${D}/usr/share/doc/${PF}" || die |
974 |
- fi |
975 |
- |
976 |
- dodoc AUTHORS HACKING NEWS TODO README |
977 |
-} |
978 |
|
979 |
diff --git a/dev-libs/xapian-bindings/xapian-bindings-1.4.13.ebuild b/dev-libs/xapian-bindings/xapian-bindings-1.4.13.ebuild |
980 |
deleted file mode 100644 |
981 |
index c17baaa699c..00000000000 |
982 |
--- a/dev-libs/xapian-bindings/xapian-bindings-1.4.13.ebuild |
983 |
+++ /dev/null |
984 |
@@ -1,306 +0,0 @@ |
985 |
-# Copyright 1999-2020 Gentoo Authors |
986 |
-# Distributed under the terms of the GNU General Public License v2 |
987 |
- |
988 |
-EAPI="6" |
989 |
- |
990 |
-PYTHON_COMPAT=( python{2_7,3_6} ) |
991 |
-PYTHON_REQ_USE="threads(+)" |
992 |
- |
993 |
-USE_PHP="php7-1 php7-2 php7-3" |
994 |
- |
995 |
-PHP_EXT_NAME="xapian" |
996 |
-PHP_EXT_INI="yes" |
997 |
-PHP_EXT_OPTIONAL_USE="php" |
998 |
- |
999 |
-USE_RUBY="ruby24 ruby25 ruby26" |
1000 |
-RUBY_OPTIONAL="yes" |
1001 |
- |
1002 |
-inherit java-pkg-opt-2 mono-env multibuild php-ext-source-r3 python-r1 ruby-ng toolchain-funcs |
1003 |
- |
1004 |
-DESCRIPTION="SWIG and JNI bindings for Xapian" |
1005 |
-HOMEPAGE="https://www.xapian.org/" |
1006 |
-SRC_URI="https://oligarchy.co.uk/xapian/${PV}/${P}.tar.xz" |
1007 |
- |
1008 |
-LICENSE="GPL-2" |
1009 |
-SLOT="0" |
1010 |
-KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
1011 |
-IUSE="java lua mono perl php python ruby tcl" |
1012 |
-REQUIRED_USE="|| ( java lua mono perl php python ruby tcl ) |
1013 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
1014 |
- ruby? ( || ( $(ruby_get_use_targets) ) )" |
1015 |
- |
1016 |
-COMMONDEPEND=">=dev-libs/xapian-1.4.9:0/30 |
1017 |
- lua? ( dev-lang/lua:= ) |
1018 |
- perl? ( dev-lang/perl:= ) |
1019 |
- php? ( dev-lang/php:=[-threads] ) |
1020 |
- python? ( |
1021 |
- dev-python/sphinx[${PYTHON_USEDEP}] |
1022 |
- ${PYTHON_DEPS} |
1023 |
- ) |
1024 |
- ruby? ( $(ruby_implementations_depend) ) |
1025 |
- tcl? ( dev-lang/tcl:= ) |
1026 |
- mono? ( dev-lang/mono )" |
1027 |
-DEPEND="${COMMONDEPEND} |
1028 |
- virtual/pkgconfig |
1029 |
- java? ( >=virtual/jdk-1.6 )" |
1030 |
-RDEPEND="${COMMONDEPEND} |
1031 |
- java? ( >=virtual/jre-1.6 )" |
1032 |
- |
1033 |
-S="${WORKDIR}/${P}" |
1034 |
- |
1035 |
-has_basic_bindings() { |
1036 |
- # Update this list if new bindings are added that are not built |
1037 |
- # multiple times for multiple versions like php, python and ruby are |
1038 |
- return $(use mono || use java || use lua || use perl || use tcl) |
1039 |
-} |
1040 |
- |
1041 |
-php_copy_sources() { |
1042 |
- local MULTIBUILD_VARIANTS=($(php_get_slots)) |
1043 |
- multibuild_copy_sources |
1044 |
-} |
1045 |
- |
1046 |
-php_foreach_impl() { |
1047 |
- local MULTIBUILD_VARIANTS=($(php_get_slots)) |
1048 |
- multibuild_foreach_variant "$@" |
1049 |
-} |
1050 |
- |
1051 |
-ruby_copy_sources() { |
1052 |
- local MULTIBUILD_VARIANTS=($(ruby_get_use_implementations)) |
1053 |
- multibuild_copy_sources |
1054 |
-} |
1055 |
- |
1056 |
-ruby_foreach_impl() { |
1057 |
- local MULTIBUILD_VARIANTS=($(ruby_get_use_implementations)) |
1058 |
- multibuild_foreach_variant "$@" |
1059 |
-} |
1060 |
- |
1061 |
-pkg_setup() { |
1062 |
- use mono && mono-env_pkg_setup |
1063 |
- use java && java-pkg-opt-2_pkg_setup |
1064 |
-} |
1065 |
- |
1066 |
-src_unpack() { |
1067 |
- default |
1068 |
- |
1069 |
- if use php; then |
1070 |
- local php_slot |
1071 |
- for php_slot in $(php_get_slots); do |
1072 |
- # Unfortunately required for php-ext-source-r3_createinifiles(). |
1073 |
- mkdir "${WORKDIR}/${php_slot}" |
1074 |
- done |
1075 |
- fi |
1076 |
-} |
1077 |
- |
1078 |
-src_prepare() { |
1079 |
- use java && java-pkg-opt-2_src_prepare |
1080 |
- |
1081 |
- # https://trac.xapian.org/ticket/702 |
1082 |
- export XAPIAN_CONFIG="/usr/bin/xapian-config" |
1083 |
- |
1084 |
- if use php; then |
1085 |
- php_copy_sources |
1086 |
- fi |
1087 |
- |
1088 |
- if use python; then |
1089 |
- python_copy_sources |
1090 |
- fi |
1091 |
- |
1092 |
- if use ruby; then |
1093 |
- ruby_copy_sources |
1094 |
- fi |
1095 |
- |
1096 |
- eapply_user |
1097 |
-} |
1098 |
- |
1099 |
-src_configure() { |
1100 |
- if has_basic_bindings ; then |
1101 |
- local conf=( |
1102 |
- --disable-documentation |
1103 |
- $(use_with mono csharp) |
1104 |
- $(use_with java) |
1105 |
- $(use_with lua) |
1106 |
- $(use_with perl) |
1107 |
- $(use_with tcl) |
1108 |
- --without-php |
1109 |
- --without-php7 |
1110 |
- --without-python |
1111 |
- --without-python3 |
1112 |
- --without-ruby |
1113 |
- ) |
1114 |
- |
1115 |
- if use java; then |
1116 |
- local -x CXXFLAGS="${CXXFLAGS} $(java-pkg_get-jni-cflags)" |
1117 |
- fi |
1118 |
- |
1119 |
- if use perl; then |
1120 |
- local -x PERL_ARCH="$(perl -MConfig -e 'print $Config{installvendorarch}')" |
1121 |
- local -x PERL_LIB="$(perl -MConfig -e 'print $Config{installvendorlib}')" |
1122 |
- fi |
1123 |
- |
1124 |
- if use lua; then |
1125 |
- local -x LUA_INC="$("$(tc-getPKG_CONFIG)" --variable=INSTALL_INC lua)" |
1126 |
- local -x LUA_LIB="$("$(tc-getPKG_CONFIG)" --variable=INSTALL_CMOD lua)" |
1127 |
- fi |
1128 |
- |
1129 |
- econf "${conf[@]}" |
1130 |
- fi |
1131 |
- |
1132 |
- php_configure() { |
1133 |
- local myconf=( |
1134 |
- --disable-documentation |
1135 |
- --without-java |
1136 |
- --without-lua |
1137 |
- --without-csharp |
1138 |
- --without-perl |
1139 |
- --without-python |
1140 |
- --without-python3 |
1141 |
- --without-ruby |
1142 |
- --without-tcl |
1143 |
- ) |
1144 |
- if [[ ${MULTIBUILD_VARIANT} == php5.* ]]; then |
1145 |
- myconf+=( |
1146 |
- --with-php |
1147 |
- --without-php7 |
1148 |
- ) |
1149 |
- local -x PHP_CONFIG="${EPREFIX}/usr/$(get_libdir)/${MULTIBUILD_VARIANT/-/.}/bin/php-config" |
1150 |
- elif [[ ${MULTIBUILD_VARIANT} == php7.* ]]; then |
1151 |
- myconf+=( |
1152 |
- --without-php |
1153 |
- --with-php7 |
1154 |
- ) |
1155 |
- local -x PHP_CONFIG7="${EPREFIX}/usr/$(get_libdir)/${MULTIBUILD_VARIANT/-/.}/bin/php-config" |
1156 |
- fi |
1157 |
- |
1158 |
- econf "${myconf[@]}" |
1159 |
- } |
1160 |
- |
1161 |
- if use php; then |
1162 |
- addpredict /usr/share/snmp/mibs/.index |
1163 |
- addpredict /var/lib/net-snmp/mib_indexes |
1164 |
- |
1165 |
- php_foreach_impl run_in_build_dir php_configure |
1166 |
- fi |
1167 |
- |
1168 |
- python_configure() { |
1169 |
- local myconf=( |
1170 |
- --disable-documentation |
1171 |
- --without-java |
1172 |
- --without-lua |
1173 |
- --without-csharp |
1174 |
- --without-perl |
1175 |
- --without-php |
1176 |
- --without-php7 |
1177 |
- --without-ruby |
1178 |
- --without-tcl |
1179 |
- ) |
1180 |
- if python_is_python3; then |
1181 |
- myconf+=( --with-python3 ) |
1182 |
- else |
1183 |
- myconf+=( --with-python ) |
1184 |
- fi |
1185 |
- |
1186 |
- # Avoid sandbox failures when compiling modules |
1187 |
- addpredict "$(python_get_sitedir)" |
1188 |
- |
1189 |
- econf "${myconf[@]}" |
1190 |
- } |
1191 |
- |
1192 |
- if use python; then |
1193 |
- python_foreach_impl run_in_build_dir python_configure |
1194 |
- fi |
1195 |
- |
1196 |
- ruby_configure() { |
1197 |
- local myconf=( |
1198 |
- --disable-documentation |
1199 |
- --without-java |
1200 |
- --without-lua |
1201 |
- --without-csharp |
1202 |
- --without-perl |
1203 |
- --without-php |
1204 |
- --without-php7 |
1205 |
- --without-python |
1206 |
- --without-python3 |
1207 |
- --with-ruby |
1208 |
- --without-tcl |
1209 |
- ) |
1210 |
- local -x RUBY="${EPREFIX}/usr/bin/${MULTIBUILD_VARIANT}" |
1211 |
- |
1212 |
- econf "${myconf[@]}" |
1213 |
- } |
1214 |
- |
1215 |
- if use ruby; then |
1216 |
- ruby_foreach_impl run_in_build_dir ruby_configure |
1217 |
- fi |
1218 |
-} |
1219 |
- |
1220 |
-src_compile() { |
1221 |
- if has_basic_bindings ; then |
1222 |
- default |
1223 |
- fi |
1224 |
- |
1225 |
- if use php; then |
1226 |
- php_foreach_impl run_in_build_dir emake |
1227 |
- fi |
1228 |
- |
1229 |
- if use python; then |
1230 |
- unset PYTHONDONTWRITEBYTECODE |
1231 |
- python_foreach_impl run_in_build_dir emake |
1232 |
- fi |
1233 |
- |
1234 |
- if use ruby; then |
1235 |
- ruby_foreach_impl run_in_build_dir emake |
1236 |
- fi |
1237 |
-} |
1238 |
- |
1239 |
-src_test() { |
1240 |
- if has_basic_bindings ; then |
1241 |
- default |
1242 |
- fi |
1243 |
- |
1244 |
- if use php; then |
1245 |
- php_foreach_impl run_in_build_dir emake check |
1246 |
- fi |
1247 |
- |
1248 |
- if use python; then |
1249 |
- python_foreach_impl run_in_build_dir emake check |
1250 |
- fi |
1251 |
- |
1252 |
- if use ruby; then |
1253 |
- ruby_foreach_impl run_in_build_dir emake check |
1254 |
- fi |
1255 |
-} |
1256 |
- |
1257 |
-src_install() { |
1258 |
- if has_basic_bindings ; then |
1259 |
- emake DESTDIR="${D}" install |
1260 |
- fi |
1261 |
- |
1262 |
- if use java; then |
1263 |
- java-pkg_dojar java/built/xapian.jar |
1264 |
- # TODO: make the build system not install this... |
1265 |
- java-pkg_doso java/.libs/libxapian_jni.so |
1266 |
- rm -rf "${D}var" || die "could not remove java cruft!" |
1267 |
- fi |
1268 |
- |
1269 |
- if use php; then |
1270 |
- php_foreach_impl run_in_build_dir emake DESTDIR="${D}" install |
1271 |
- php-ext-source-r3_createinifiles |
1272 |
- # php-ext-source-r3_createinifiles() changes current directory. |
1273 |
- cd "${S}" |
1274 |
- fi |
1275 |
- |
1276 |
- if use python; then |
1277 |
- python_foreach_impl run_in_build_dir emake DESTDIR="${D}" install |
1278 |
- fi |
1279 |
- |
1280 |
- if use ruby; then |
1281 |
- ruby_foreach_impl run_in_build_dir emake DESTDIR="${D}" install |
1282 |
- fi |
1283 |
- |
1284 |
- # For some USE combinations this directory is not created |
1285 |
- if [[ -d "${D}/usr/share/doc/xapian-bindings" ]]; then |
1286 |
- mv "${D}/usr/share/doc/xapian-bindings" "${D}/usr/share/doc/${PF}" || die |
1287 |
- fi |
1288 |
- |
1289 |
- dodoc AUTHORS HACKING NEWS TODO README |
1290 |
-} |
1291 |
|
1292 |
diff --git a/dev-libs/xapian-bindings/xapian-bindings-1.4.5.ebuild b/dev-libs/xapian-bindings/xapian-bindings-1.4.5.ebuild |
1293 |
deleted file mode 100644 |
1294 |
index 0e8ab744927..00000000000 |
1295 |
--- a/dev-libs/xapian-bindings/xapian-bindings-1.4.5.ebuild |
1296 |
+++ /dev/null |
1297 |
@@ -1,305 +0,0 @@ |
1298 |
-# Copyright 1999-2020 Gentoo Authors |
1299 |
-# Distributed under the terms of the GNU General Public License v2 |
1300 |
- |
1301 |
-EAPI="6" |
1302 |
- |
1303 |
-PYTHON_COMPAT=( python{2_7,3_6} ) |
1304 |
-PYTHON_REQ_USE="threads(+)" |
1305 |
- |
1306 |
-USE_PHP="php5-6 php7-1 php7-2" |
1307 |
- |
1308 |
-PHP_EXT_NAME="xapian" |
1309 |
-PHP_EXT_INI="yes" |
1310 |
-PHP_EXT_OPTIONAL_USE="php" |
1311 |
- |
1312 |
-USE_RUBY="ruby22 ruby23 ruby24" |
1313 |
-RUBY_OPTIONAL="yes" |
1314 |
- |
1315 |
-inherit java-pkg-opt-2 mono-env multibuild php-ext-source-r3 python-r1 ruby-ng toolchain-funcs |
1316 |
- |
1317 |
-DESCRIPTION="SWIG and JNI bindings for Xapian" |
1318 |
-HOMEPAGE="https://www.xapian.org/" |
1319 |
-SRC_URI="https://oligarchy.co.uk/xapian/${PV}/${P}.tar.xz" |
1320 |
- |
1321 |
-LICENSE="GPL-2" |
1322 |
-SLOT="0" |
1323 |
-KEYWORDS="~alpha amd64 arm ia64 ~mips ppc ppc64 ~sparc x86" |
1324 |
-IUSE="java lua mono perl php python ruby tcl" |
1325 |
-REQUIRED_USE="|| ( java lua mono perl php python ruby tcl ) |
1326 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
1327 |
- ruby? ( || ( $(ruby_get_use_targets) ) )" |
1328 |
- |
1329 |
-COMMONDEPEND=">=dev-libs/xapian-1.4.5:0/30 |
1330 |
- lua? ( dev-lang/lua:= ) |
1331 |
- perl? ( dev-lang/perl:= ) |
1332 |
- python? ( |
1333 |
- dev-python/sphinx[${PYTHON_USEDEP}] |
1334 |
- ${PYTHON_DEPS} |
1335 |
- ) |
1336 |
- ruby? ( $(ruby_implementations_depend) ) |
1337 |
- tcl? ( dev-lang/tcl:= ) |
1338 |
- mono? ( dev-lang/mono )" |
1339 |
-DEPEND="${COMMONDEPEND} |
1340 |
- virtual/pkgconfig |
1341 |
- java? ( >=virtual/jdk-1.6 )" |
1342 |
-RDEPEND="${COMMONDEPEND} |
1343 |
- java? ( >=virtual/jre-1.6 )" |
1344 |
- |
1345 |
-S="${WORKDIR}/${P}" |
1346 |
- |
1347 |
-has_basic_bindings() { |
1348 |
- # Update this list if new bindings are added that are not built |
1349 |
- # multiple times for multiple versions like php, python and ruby are |
1350 |
- return $(use mono || use java || use lua || use perl || use tcl) |
1351 |
-} |
1352 |
- |
1353 |
-php_copy_sources() { |
1354 |
- local MULTIBUILD_VARIANTS=($(php_get_slots)) |
1355 |
- multibuild_copy_sources |
1356 |
-} |
1357 |
- |
1358 |
-php_foreach_impl() { |
1359 |
- local MULTIBUILD_VARIANTS=($(php_get_slots)) |
1360 |
- multibuild_foreach_variant "$@" |
1361 |
-} |
1362 |
- |
1363 |
-ruby_copy_sources() { |
1364 |
- local MULTIBUILD_VARIANTS=($(ruby_get_use_implementations)) |
1365 |
- multibuild_copy_sources |
1366 |
-} |
1367 |
- |
1368 |
-ruby_foreach_impl() { |
1369 |
- local MULTIBUILD_VARIANTS=($(ruby_get_use_implementations)) |
1370 |
- multibuild_foreach_variant "$@" |
1371 |
-} |
1372 |
- |
1373 |
-pkg_setup() { |
1374 |
- use mono && mono-env_pkg_setup |
1375 |
- use java && java-pkg-opt-2_pkg_setup |
1376 |
-} |
1377 |
- |
1378 |
-src_unpack() { |
1379 |
- default |
1380 |
- |
1381 |
- if use php; then |
1382 |
- local php_slot |
1383 |
- for php_slot in $(php_get_slots); do |
1384 |
- # Unfortunately required for php-ext-source-r3_createinifiles(). |
1385 |
- mkdir "${WORKDIR}/${php_slot}" |
1386 |
- done |
1387 |
- fi |
1388 |
-} |
1389 |
- |
1390 |
-src_prepare() { |
1391 |
- use java && java-pkg-opt-2_src_prepare |
1392 |
- |
1393 |
- # https://trac.xapian.org/ticket/702 |
1394 |
- export XAPIAN_CONFIG="/usr/bin/xapian-config" |
1395 |
- |
1396 |
- if use php; then |
1397 |
- php_copy_sources |
1398 |
- fi |
1399 |
- |
1400 |
- if use python; then |
1401 |
- python_copy_sources |
1402 |
- fi |
1403 |
- |
1404 |
- if use ruby; then |
1405 |
- ruby_copy_sources |
1406 |
- fi |
1407 |
- |
1408 |
- eapply_user |
1409 |
-} |
1410 |
- |
1411 |
-src_configure() { |
1412 |
- if has_basic_bindings ; then |
1413 |
- local conf=( |
1414 |
- --disable-documentation |
1415 |
- $(use_with mono csharp) |
1416 |
- $(use_with java) |
1417 |
- $(use_with lua) |
1418 |
- $(use_with perl) |
1419 |
- $(use_with tcl) |
1420 |
- --without-php |
1421 |
- --without-php7 |
1422 |
- --without-python |
1423 |
- --without-python3 |
1424 |
- --without-ruby |
1425 |
- ) |
1426 |
- |
1427 |
- if use java; then |
1428 |
- local -x CXXFLAGS="${CXXFLAGS} $(java-pkg_get-jni-cflags)" |
1429 |
- fi |
1430 |
- |
1431 |
- if use perl; then |
1432 |
- local -x PERL_ARCH="$(perl -MConfig -e 'print $Config{installvendorarch}')" |
1433 |
- local -x PERL_LIB="$(perl -MConfig -e 'print $Config{installvendorlib}')" |
1434 |
- fi |
1435 |
- |
1436 |
- if use lua; then |
1437 |
- local -x LUA_INC="$("$(tc-getPKG_CONFIG)" --variable=INSTALL_INC lua)" |
1438 |
- local -x LUA_LIB="$("$(tc-getPKG_CONFIG)" --variable=INSTALL_CMOD lua)" |
1439 |
- fi |
1440 |
- |
1441 |
- econf "${conf[@]}" |
1442 |
- fi |
1443 |
- |
1444 |
- php_configure() { |
1445 |
- local myconf=( |
1446 |
- --disable-documentation |
1447 |
- --without-java |
1448 |
- --without-lua |
1449 |
- --without-csharp |
1450 |
- --without-perl |
1451 |
- --without-python |
1452 |
- --without-python3 |
1453 |
- --without-ruby |
1454 |
- --without-tcl |
1455 |
- ) |
1456 |
- if [[ ${MULTIBUILD_VARIANT} == php5.* ]]; then |
1457 |
- myconf+=( |
1458 |
- --with-php |
1459 |
- --without-php7 |
1460 |
- ) |
1461 |
- local -x PHP_CONFIG="${EPREFIX}/usr/$(get_libdir)/${MULTIBUILD_VARIANT/-/.}/bin/php-config" |
1462 |
- elif [[ ${MULTIBUILD_VARIANT} == php7.* ]]; then |
1463 |
- myconf+=( |
1464 |
- --without-php |
1465 |
- --with-php7 |
1466 |
- ) |
1467 |
- local -x PHP_CONFIG7="${EPREFIX}/usr/$(get_libdir)/${MULTIBUILD_VARIANT/-/.}/bin/php-config" |
1468 |
- fi |
1469 |
- |
1470 |
- econf "${myconf[@]}" |
1471 |
- } |
1472 |
- |
1473 |
- if use php; then |
1474 |
- addpredict /usr/share/snmp/mibs/.index |
1475 |
- addpredict /var/lib/net-snmp/mib_indexes |
1476 |
- |
1477 |
- php_foreach_impl run_in_build_dir php_configure |
1478 |
- fi |
1479 |
- |
1480 |
- python_configure() { |
1481 |
- local myconf=( |
1482 |
- --disable-documentation |
1483 |
- --without-java |
1484 |
- --without-lua |
1485 |
- --without-csharp |
1486 |
- --without-perl |
1487 |
- --without-php |
1488 |
- --without-php7 |
1489 |
- --without-ruby |
1490 |
- --without-tcl |
1491 |
- ) |
1492 |
- if python_is_python3; then |
1493 |
- myconf+=( --with-python3 ) |
1494 |
- else |
1495 |
- myconf+=( --with-python ) |
1496 |
- fi |
1497 |
- |
1498 |
- # Avoid sandbox failures when compiling modules |
1499 |
- addpredict "$(python_get_sitedir)" |
1500 |
- |
1501 |
- econf "${myconf[@]}" |
1502 |
- } |
1503 |
- |
1504 |
- if use python; then |
1505 |
- python_foreach_impl run_in_build_dir python_configure |
1506 |
- fi |
1507 |
- |
1508 |
- ruby_configure() { |
1509 |
- local myconf=( |
1510 |
- --disable-documentation |
1511 |
- --without-java |
1512 |
- --without-lua |
1513 |
- --without-csharp |
1514 |
- --without-perl |
1515 |
- --without-php |
1516 |
- --without-php7 |
1517 |
- --without-python |
1518 |
- --without-python3 |
1519 |
- --with-ruby |
1520 |
- --without-tcl |
1521 |
- ) |
1522 |
- local -x RUBY="${EPREFIX}/usr/bin/${MULTIBUILD_VARIANT}" |
1523 |
- |
1524 |
- econf "${myconf[@]}" |
1525 |
- } |
1526 |
- |
1527 |
- if use ruby; then |
1528 |
- ruby_foreach_impl run_in_build_dir ruby_configure |
1529 |
- fi |
1530 |
-} |
1531 |
- |
1532 |
-src_compile() { |
1533 |
- if has_basic_bindings ; then |
1534 |
- default |
1535 |
- fi |
1536 |
- |
1537 |
- if use php; then |
1538 |
- php_foreach_impl run_in_build_dir emake |
1539 |
- fi |
1540 |
- |
1541 |
- if use python; then |
1542 |
- unset PYTHONDONTWRITEBYTECODE |
1543 |
- python_foreach_impl run_in_build_dir emake |
1544 |
- fi |
1545 |
- |
1546 |
- if use ruby; then |
1547 |
- ruby_foreach_impl run_in_build_dir emake |
1548 |
- fi |
1549 |
-} |
1550 |
- |
1551 |
-src_test() { |
1552 |
- if has_basic_bindings ; then |
1553 |
- default |
1554 |
- fi |
1555 |
- |
1556 |
- if use php; then |
1557 |
- php_foreach_impl run_in_build_dir emake check |
1558 |
- fi |
1559 |
- |
1560 |
- if use python; then |
1561 |
- python_foreach_impl run_in_build_dir emake check |
1562 |
- fi |
1563 |
- |
1564 |
- if use ruby; then |
1565 |
- ruby_foreach_impl run_in_build_dir emake check |
1566 |
- fi |
1567 |
-} |
1568 |
- |
1569 |
-src_install() { |
1570 |
- if has_basic_bindings ; then |
1571 |
- emake DESTDIR="${D}" install |
1572 |
- fi |
1573 |
- |
1574 |
- if use java; then |
1575 |
- java-pkg_dojar java/built/xapian.jar |
1576 |
- # TODO: make the build system not install this... |
1577 |
- java-pkg_doso java/.libs/libxapian_jni.so |
1578 |
- rm -rf "${D}var" || die "could not remove java cruft!" |
1579 |
- fi |
1580 |
- |
1581 |
- if use php; then |
1582 |
- php_foreach_impl run_in_build_dir emake DESTDIR="${D}" install |
1583 |
- php-ext-source-r3_createinifiles |
1584 |
- # php-ext-source-r3_createinifiles() changes current directory. |
1585 |
- cd "${S}" |
1586 |
- fi |
1587 |
- |
1588 |
- if use python; then |
1589 |
- python_foreach_impl run_in_build_dir emake DESTDIR="${D}" install |
1590 |
- fi |
1591 |
- |
1592 |
- if use ruby; then |
1593 |
- ruby_foreach_impl run_in_build_dir emake DESTDIR="${D}" install |
1594 |
- fi |
1595 |
- |
1596 |
- # For some USE combinations this directory is not created |
1597 |
- if [[ -d "${D}/usr/share/doc/xapian-bindings" ]]; then |
1598 |
- mv "${D}/usr/share/doc/xapian-bindings" "${D}/usr/share/doc/${PF}" || die |
1599 |
- fi |
1600 |
- |
1601 |
- dodoc AUTHORS HACKING NEWS TODO README |
1602 |
-} |
1603 |
|
1604 |
diff --git a/dev-libs/xapian-bindings/xapian-bindings-1.4.8.ebuild b/dev-libs/xapian-bindings/xapian-bindings-1.4.8.ebuild |
1605 |
deleted file mode 100644 |
1606 |
index 906a9b8e1fd..00000000000 |
1607 |
--- a/dev-libs/xapian-bindings/xapian-bindings-1.4.8.ebuild |
1608 |
+++ /dev/null |
1609 |
@@ -1,305 +0,0 @@ |
1610 |
-# Copyright 1999-2020 Gentoo Authors |
1611 |
-# Distributed under the terms of the GNU General Public License v2 |
1612 |
- |
1613 |
-EAPI="6" |
1614 |
- |
1615 |
-PYTHON_COMPAT=( python{2_7,3_6} ) |
1616 |
-PYTHON_REQ_USE="threads(+)" |
1617 |
- |
1618 |
-USE_PHP="php5-6 php7-1 php7-2" |
1619 |
- |
1620 |
-PHP_EXT_NAME="xapian" |
1621 |
-PHP_EXT_INI="yes" |
1622 |
-PHP_EXT_OPTIONAL_USE="php" |
1623 |
- |
1624 |
-USE_RUBY="ruby22 ruby23 ruby24" |
1625 |
-RUBY_OPTIONAL="yes" |
1626 |
- |
1627 |
-inherit java-pkg-opt-2 mono-env multibuild php-ext-source-r3 python-r1 ruby-ng toolchain-funcs |
1628 |
- |
1629 |
-DESCRIPTION="SWIG and JNI bindings for Xapian" |
1630 |
-HOMEPAGE="https://www.xapian.org/" |
1631 |
-SRC_URI="https://oligarchy.co.uk/xapian/${PV}/${P}.tar.xz" |
1632 |
- |
1633 |
-LICENSE="GPL-2" |
1634 |
-SLOT="0" |
1635 |
-KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
1636 |
-IUSE="java lua mono perl php python ruby tcl" |
1637 |
-REQUIRED_USE="|| ( java lua mono perl php python ruby tcl ) |
1638 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
1639 |
- ruby? ( || ( $(ruby_get_use_targets) ) )" |
1640 |
- |
1641 |
-COMMONDEPEND=">=dev-libs/xapian-1.4.8:0/30 |
1642 |
- lua? ( dev-lang/lua:= ) |
1643 |
- perl? ( dev-lang/perl:= ) |
1644 |
- python? ( |
1645 |
- dev-python/sphinx[${PYTHON_USEDEP}] |
1646 |
- ${PYTHON_DEPS} |
1647 |
- ) |
1648 |
- ruby? ( $(ruby_implementations_depend) ) |
1649 |
- tcl? ( dev-lang/tcl:= ) |
1650 |
- mono? ( dev-lang/mono )" |
1651 |
-DEPEND="${COMMONDEPEND} |
1652 |
- virtual/pkgconfig |
1653 |
- java? ( >=virtual/jdk-1.6 )" |
1654 |
-RDEPEND="${COMMONDEPEND} |
1655 |
- java? ( >=virtual/jre-1.6 )" |
1656 |
- |
1657 |
-S="${WORKDIR}/${P}" |
1658 |
- |
1659 |
-has_basic_bindings() { |
1660 |
- # Update this list if new bindings are added that are not built |
1661 |
- # multiple times for multiple versions like php, python and ruby are |
1662 |
- return $(use mono || use java || use lua || use perl || use tcl) |
1663 |
-} |
1664 |
- |
1665 |
-php_copy_sources() { |
1666 |
- local MULTIBUILD_VARIANTS=($(php_get_slots)) |
1667 |
- multibuild_copy_sources |
1668 |
-} |
1669 |
- |
1670 |
-php_foreach_impl() { |
1671 |
- local MULTIBUILD_VARIANTS=($(php_get_slots)) |
1672 |
- multibuild_foreach_variant "$@" |
1673 |
-} |
1674 |
- |
1675 |
-ruby_copy_sources() { |
1676 |
- local MULTIBUILD_VARIANTS=($(ruby_get_use_implementations)) |
1677 |
- multibuild_copy_sources |
1678 |
-} |
1679 |
- |
1680 |
-ruby_foreach_impl() { |
1681 |
- local MULTIBUILD_VARIANTS=($(ruby_get_use_implementations)) |
1682 |
- multibuild_foreach_variant "$@" |
1683 |
-} |
1684 |
- |
1685 |
-pkg_setup() { |
1686 |
- use mono && mono-env_pkg_setup |
1687 |
- use java && java-pkg-opt-2_pkg_setup |
1688 |
-} |
1689 |
- |
1690 |
-src_unpack() { |
1691 |
- default |
1692 |
- |
1693 |
- if use php; then |
1694 |
- local php_slot |
1695 |
- for php_slot in $(php_get_slots); do |
1696 |
- # Unfortunately required for php-ext-source-r3_createinifiles(). |
1697 |
- mkdir "${WORKDIR}/${php_slot}" |
1698 |
- done |
1699 |
- fi |
1700 |
-} |
1701 |
- |
1702 |
-src_prepare() { |
1703 |
- use java && java-pkg-opt-2_src_prepare |
1704 |
- |
1705 |
- # https://trac.xapian.org/ticket/702 |
1706 |
- export XAPIAN_CONFIG="/usr/bin/xapian-config" |
1707 |
- |
1708 |
- if use php; then |
1709 |
- php_copy_sources |
1710 |
- fi |
1711 |
- |
1712 |
- if use python; then |
1713 |
- python_copy_sources |
1714 |
- fi |
1715 |
- |
1716 |
- if use ruby; then |
1717 |
- ruby_copy_sources |
1718 |
- fi |
1719 |
- |
1720 |
- eapply_user |
1721 |
-} |
1722 |
- |
1723 |
-src_configure() { |
1724 |
- if has_basic_bindings ; then |
1725 |
- local conf=( |
1726 |
- --disable-documentation |
1727 |
- $(use_with mono csharp) |
1728 |
- $(use_with java) |
1729 |
- $(use_with lua) |
1730 |
- $(use_with perl) |
1731 |
- $(use_with tcl) |
1732 |
- --without-php |
1733 |
- --without-php7 |
1734 |
- --without-python |
1735 |
- --without-python3 |
1736 |
- --without-ruby |
1737 |
- ) |
1738 |
- |
1739 |
- if use java; then |
1740 |
- local -x CXXFLAGS="${CXXFLAGS} $(java-pkg_get-jni-cflags)" |
1741 |
- fi |
1742 |
- |
1743 |
- if use perl; then |
1744 |
- local -x PERL_ARCH="$(perl -MConfig -e 'print $Config{installvendorarch}')" |
1745 |
- local -x PERL_LIB="$(perl -MConfig -e 'print $Config{installvendorlib}')" |
1746 |
- fi |
1747 |
- |
1748 |
- if use lua; then |
1749 |
- local -x LUA_INC="$("$(tc-getPKG_CONFIG)" --variable=INSTALL_INC lua)" |
1750 |
- local -x LUA_LIB="$("$(tc-getPKG_CONFIG)" --variable=INSTALL_CMOD lua)" |
1751 |
- fi |
1752 |
- |
1753 |
- econf "${conf[@]}" |
1754 |
- fi |
1755 |
- |
1756 |
- php_configure() { |
1757 |
- local myconf=( |
1758 |
- --disable-documentation |
1759 |
- --without-java |
1760 |
- --without-lua |
1761 |
- --without-csharp |
1762 |
- --without-perl |
1763 |
- --without-python |
1764 |
- --without-python3 |
1765 |
- --without-ruby |
1766 |
- --without-tcl |
1767 |
- ) |
1768 |
- if [[ ${MULTIBUILD_VARIANT} == php5.* ]]; then |
1769 |
- myconf+=( |
1770 |
- --with-php |
1771 |
- --without-php7 |
1772 |
- ) |
1773 |
- local -x PHP_CONFIG="${EPREFIX}/usr/$(get_libdir)/${MULTIBUILD_VARIANT/-/.}/bin/php-config" |
1774 |
- elif [[ ${MULTIBUILD_VARIANT} == php7.* ]]; then |
1775 |
- myconf+=( |
1776 |
- --without-php |
1777 |
- --with-php7 |
1778 |
- ) |
1779 |
- local -x PHP_CONFIG7="${EPREFIX}/usr/$(get_libdir)/${MULTIBUILD_VARIANT/-/.}/bin/php-config" |
1780 |
- fi |
1781 |
- |
1782 |
- econf "${myconf[@]}" |
1783 |
- } |
1784 |
- |
1785 |
- if use php; then |
1786 |
- addpredict /usr/share/snmp/mibs/.index |
1787 |
- addpredict /var/lib/net-snmp/mib_indexes |
1788 |
- |
1789 |
- php_foreach_impl run_in_build_dir php_configure |
1790 |
- fi |
1791 |
- |
1792 |
- python_configure() { |
1793 |
- local myconf=( |
1794 |
- --disable-documentation |
1795 |
- --without-java |
1796 |
- --without-lua |
1797 |
- --without-csharp |
1798 |
- --without-perl |
1799 |
- --without-php |
1800 |
- --without-php7 |
1801 |
- --without-ruby |
1802 |
- --without-tcl |
1803 |
- ) |
1804 |
- if python_is_python3; then |
1805 |
- myconf+=( --with-python3 ) |
1806 |
- else |
1807 |
- myconf+=( --with-python ) |
1808 |
- fi |
1809 |
- |
1810 |
- # Avoid sandbox failures when compiling modules |
1811 |
- addpredict "$(python_get_sitedir)" |
1812 |
- |
1813 |
- econf "${myconf[@]}" |
1814 |
- } |
1815 |
- |
1816 |
- if use python; then |
1817 |
- python_foreach_impl run_in_build_dir python_configure |
1818 |
- fi |
1819 |
- |
1820 |
- ruby_configure() { |
1821 |
- local myconf=( |
1822 |
- --disable-documentation |
1823 |
- --without-java |
1824 |
- --without-lua |
1825 |
- --without-csharp |
1826 |
- --without-perl |
1827 |
- --without-php |
1828 |
- --without-php7 |
1829 |
- --without-python |
1830 |
- --without-python3 |
1831 |
- --with-ruby |
1832 |
- --without-tcl |
1833 |
- ) |
1834 |
- local -x RUBY="${EPREFIX}/usr/bin/${MULTIBUILD_VARIANT}" |
1835 |
- |
1836 |
- econf "${myconf[@]}" |
1837 |
- } |
1838 |
- |
1839 |
- if use ruby; then |
1840 |
- ruby_foreach_impl run_in_build_dir ruby_configure |
1841 |
- fi |
1842 |
-} |
1843 |
- |
1844 |
-src_compile() { |
1845 |
- if has_basic_bindings ; then |
1846 |
- default |
1847 |
- fi |
1848 |
- |
1849 |
- if use php; then |
1850 |
- php_foreach_impl run_in_build_dir emake |
1851 |
- fi |
1852 |
- |
1853 |
- if use python; then |
1854 |
- unset PYTHONDONTWRITEBYTECODE |
1855 |
- python_foreach_impl run_in_build_dir emake |
1856 |
- fi |
1857 |
- |
1858 |
- if use ruby; then |
1859 |
- ruby_foreach_impl run_in_build_dir emake |
1860 |
- fi |
1861 |
-} |
1862 |
- |
1863 |
-src_test() { |
1864 |
- if has_basic_bindings ; then |
1865 |
- default |
1866 |
- fi |
1867 |
- |
1868 |
- if use php; then |
1869 |
- php_foreach_impl run_in_build_dir emake check |
1870 |
- fi |
1871 |
- |
1872 |
- if use python; then |
1873 |
- python_foreach_impl run_in_build_dir emake check |
1874 |
- fi |
1875 |
- |
1876 |
- if use ruby; then |
1877 |
- ruby_foreach_impl run_in_build_dir emake check |
1878 |
- fi |
1879 |
-} |
1880 |
- |
1881 |
-src_install() { |
1882 |
- if has_basic_bindings ; then |
1883 |
- emake DESTDIR="${D}" install |
1884 |
- fi |
1885 |
- |
1886 |
- if use java; then |
1887 |
- java-pkg_dojar java/built/xapian.jar |
1888 |
- # TODO: make the build system not install this... |
1889 |
- java-pkg_doso java/.libs/libxapian_jni.so |
1890 |
- rm -rf "${D}var" || die "could not remove java cruft!" |
1891 |
- fi |
1892 |
- |
1893 |
- if use php; then |
1894 |
- php_foreach_impl run_in_build_dir emake DESTDIR="${D}" install |
1895 |
- php-ext-source-r3_createinifiles |
1896 |
- # php-ext-source-r3_createinifiles() changes current directory. |
1897 |
- cd "${S}" |
1898 |
- fi |
1899 |
- |
1900 |
- if use python; then |
1901 |
- python_foreach_impl run_in_build_dir emake DESTDIR="${D}" install |
1902 |
- fi |
1903 |
- |
1904 |
- if use ruby; then |
1905 |
- ruby_foreach_impl run_in_build_dir emake DESTDIR="${D}" install |
1906 |
- fi |
1907 |
- |
1908 |
- # For some USE combinations this directory is not created |
1909 |
- if [[ -d "${D}/usr/share/doc/xapian-bindings" ]]; then |
1910 |
- mv "${D}/usr/share/doc/xapian-bindings" "${D}/usr/share/doc/${PF}" || die |
1911 |
- fi |
1912 |
- |
1913 |
- dodoc AUTHORS HACKING NEWS TODO README |
1914 |
-} |
1915 |
|
1916 |
diff --git a/dev-libs/xapian-bindings/xapian-bindings-1.4.9.ebuild b/dev-libs/xapian-bindings/xapian-bindings-1.4.9.ebuild |
1917 |
deleted file mode 100644 |
1918 |
index 98e4a9ee896..00000000000 |
1919 |
--- a/dev-libs/xapian-bindings/xapian-bindings-1.4.9.ebuild |
1920 |
+++ /dev/null |
1921 |
@@ -1,305 +0,0 @@ |
1922 |
-# Copyright 1999-2020 Gentoo Authors |
1923 |
-# Distributed under the terms of the GNU General Public License v2 |
1924 |
- |
1925 |
-EAPI="6" |
1926 |
- |
1927 |
-PYTHON_COMPAT=( python{2_7,3_6} ) |
1928 |
-PYTHON_REQ_USE="threads(+)" |
1929 |
- |
1930 |
-USE_PHP="php5-6 php7-1 php7-2" |
1931 |
- |
1932 |
-PHP_EXT_NAME="xapian" |
1933 |
-PHP_EXT_INI="yes" |
1934 |
-PHP_EXT_OPTIONAL_USE="php" |
1935 |
- |
1936 |
-USE_RUBY="ruby22 ruby23 ruby24" |
1937 |
-RUBY_OPTIONAL="yes" |
1938 |
- |
1939 |
-inherit java-pkg-opt-2 mono-env multibuild php-ext-source-r3 python-r1 ruby-ng toolchain-funcs |
1940 |
- |
1941 |
-DESCRIPTION="SWIG and JNI bindings for Xapian" |
1942 |
-HOMEPAGE="https://www.xapian.org/" |
1943 |
-SRC_URI="https://oligarchy.co.uk/xapian/${PV}/${P}.tar.xz" |
1944 |
- |
1945 |
-LICENSE="GPL-2" |
1946 |
-SLOT="0" |
1947 |
-KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
1948 |
-IUSE="java lua mono perl php python ruby tcl" |
1949 |
-REQUIRED_USE="|| ( java lua mono perl php python ruby tcl ) |
1950 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
1951 |
- ruby? ( || ( $(ruby_get_use_targets) ) )" |
1952 |
- |
1953 |
-COMMONDEPEND=">=dev-libs/xapian-1.4.9:0/30 |
1954 |
- lua? ( dev-lang/lua:= ) |
1955 |
- perl? ( dev-lang/perl:= ) |
1956 |
- python? ( |
1957 |
- dev-python/sphinx[${PYTHON_USEDEP}] |
1958 |
- ${PYTHON_DEPS} |
1959 |
- ) |
1960 |
- ruby? ( $(ruby_implementations_depend) ) |
1961 |
- tcl? ( dev-lang/tcl:= ) |
1962 |
- mono? ( dev-lang/mono )" |
1963 |
-DEPEND="${COMMONDEPEND} |
1964 |
- virtual/pkgconfig |
1965 |
- java? ( >=virtual/jdk-1.6 )" |
1966 |
-RDEPEND="${COMMONDEPEND} |
1967 |
- java? ( >=virtual/jre-1.6 )" |
1968 |
- |
1969 |
-S="${WORKDIR}/${P}" |
1970 |
- |
1971 |
-has_basic_bindings() { |
1972 |
- # Update this list if new bindings are added that are not built |
1973 |
- # multiple times for multiple versions like php, python and ruby are |
1974 |
- return $(use mono || use java || use lua || use perl || use tcl) |
1975 |
-} |
1976 |
- |
1977 |
-php_copy_sources() { |
1978 |
- local MULTIBUILD_VARIANTS=($(php_get_slots)) |
1979 |
- multibuild_copy_sources |
1980 |
-} |
1981 |
- |
1982 |
-php_foreach_impl() { |
1983 |
- local MULTIBUILD_VARIANTS=($(php_get_slots)) |
1984 |
- multibuild_foreach_variant "$@" |
1985 |
-} |
1986 |
- |
1987 |
-ruby_copy_sources() { |
1988 |
- local MULTIBUILD_VARIANTS=($(ruby_get_use_implementations)) |
1989 |
- multibuild_copy_sources |
1990 |
-} |
1991 |
- |
1992 |
-ruby_foreach_impl() { |
1993 |
- local MULTIBUILD_VARIANTS=($(ruby_get_use_implementations)) |
1994 |
- multibuild_foreach_variant "$@" |
1995 |
-} |
1996 |
- |
1997 |
-pkg_setup() { |
1998 |
- use mono && mono-env_pkg_setup |
1999 |
- use java && java-pkg-opt-2_pkg_setup |
2000 |
-} |
2001 |
- |
2002 |
-src_unpack() { |
2003 |
- default |
2004 |
- |
2005 |
- if use php; then |
2006 |
- local php_slot |
2007 |
- for php_slot in $(php_get_slots); do |
2008 |
- # Unfortunately required for php-ext-source-r3_createinifiles(). |
2009 |
- mkdir "${WORKDIR}/${php_slot}" |
2010 |
- done |
2011 |
- fi |
2012 |
-} |
2013 |
- |
2014 |
-src_prepare() { |
2015 |
- use java && java-pkg-opt-2_src_prepare |
2016 |
- |
2017 |
- # https://trac.xapian.org/ticket/702 |
2018 |
- export XAPIAN_CONFIG="/usr/bin/xapian-config" |
2019 |
- |
2020 |
- if use php; then |
2021 |
- php_copy_sources |
2022 |
- fi |
2023 |
- |
2024 |
- if use python; then |
2025 |
- python_copy_sources |
2026 |
- fi |
2027 |
- |
2028 |
- if use ruby; then |
2029 |
- ruby_copy_sources |
2030 |
- fi |
2031 |
- |
2032 |
- eapply_user |
2033 |
-} |
2034 |
- |
2035 |
-src_configure() { |
2036 |
- if has_basic_bindings ; then |
2037 |
- local conf=( |
2038 |
- --disable-documentation |
2039 |
- $(use_with mono csharp) |
2040 |
- $(use_with java) |
2041 |
- $(use_with lua) |
2042 |
- $(use_with perl) |
2043 |
- $(use_with tcl) |
2044 |
- --without-php |
2045 |
- --without-php7 |
2046 |
- --without-python |
2047 |
- --without-python3 |
2048 |
- --without-ruby |
2049 |
- ) |
2050 |
- |
2051 |
- if use java; then |
2052 |
- local -x CXXFLAGS="${CXXFLAGS} $(java-pkg_get-jni-cflags)" |
2053 |
- fi |
2054 |
- |
2055 |
- if use perl; then |
2056 |
- local -x PERL_ARCH="$(perl -MConfig -e 'print $Config{installvendorarch}')" |
2057 |
- local -x PERL_LIB="$(perl -MConfig -e 'print $Config{installvendorlib}')" |
2058 |
- fi |
2059 |
- |
2060 |
- if use lua; then |
2061 |
- local -x LUA_INC="$("$(tc-getPKG_CONFIG)" --variable=INSTALL_INC lua)" |
2062 |
- local -x LUA_LIB="$("$(tc-getPKG_CONFIG)" --variable=INSTALL_CMOD lua)" |
2063 |
- fi |
2064 |
- |
2065 |
- econf "${conf[@]}" |
2066 |
- fi |
2067 |
- |
2068 |
- php_configure() { |
2069 |
- local myconf=( |
2070 |
- --disable-documentation |
2071 |
- --without-java |
2072 |
- --without-lua |
2073 |
- --without-csharp |
2074 |
- --without-perl |
2075 |
- --without-python |
2076 |
- --without-python3 |
2077 |
- --without-ruby |
2078 |
- --without-tcl |
2079 |
- ) |
2080 |
- if [[ ${MULTIBUILD_VARIANT} == php5.* ]]; then |
2081 |
- myconf+=( |
2082 |
- --with-php |
2083 |
- --without-php7 |
2084 |
- ) |
2085 |
- local -x PHP_CONFIG="${EPREFIX}/usr/$(get_libdir)/${MULTIBUILD_VARIANT/-/.}/bin/php-config" |
2086 |
- elif [[ ${MULTIBUILD_VARIANT} == php7.* ]]; then |
2087 |
- myconf+=( |
2088 |
- --without-php |
2089 |
- --with-php7 |
2090 |
- ) |
2091 |
- local -x PHP_CONFIG7="${EPREFIX}/usr/$(get_libdir)/${MULTIBUILD_VARIANT/-/.}/bin/php-config" |
2092 |
- fi |
2093 |
- |
2094 |
- econf "${myconf[@]}" |
2095 |
- } |
2096 |
- |
2097 |
- if use php; then |
2098 |
- addpredict /usr/share/snmp/mibs/.index |
2099 |
- addpredict /var/lib/net-snmp/mib_indexes |
2100 |
- |
2101 |
- php_foreach_impl run_in_build_dir php_configure |
2102 |
- fi |
2103 |
- |
2104 |
- python_configure() { |
2105 |
- local myconf=( |
2106 |
- --disable-documentation |
2107 |
- --without-java |
2108 |
- --without-lua |
2109 |
- --without-csharp |
2110 |
- --without-perl |
2111 |
- --without-php |
2112 |
- --without-php7 |
2113 |
- --without-ruby |
2114 |
- --without-tcl |
2115 |
- ) |
2116 |
- if python_is_python3; then |
2117 |
- myconf+=( --with-python3 ) |
2118 |
- else |
2119 |
- myconf+=( --with-python ) |
2120 |
- fi |
2121 |
- |
2122 |
- # Avoid sandbox failures when compiling modules |
2123 |
- addpredict "$(python_get_sitedir)" |
2124 |
- |
2125 |
- econf "${myconf[@]}" |
2126 |
- } |
2127 |
- |
2128 |
- if use python; then |
2129 |
- python_foreach_impl run_in_build_dir python_configure |
2130 |
- fi |
2131 |
- |
2132 |
- ruby_configure() { |
2133 |
- local myconf=( |
2134 |
- --disable-documentation |
2135 |
- --without-java |
2136 |
- --without-lua |
2137 |
- --without-csharp |
2138 |
- --without-perl |
2139 |
- --without-php |
2140 |
- --without-php7 |
2141 |
- --without-python |
2142 |
- --without-python3 |
2143 |
- --with-ruby |
2144 |
- --without-tcl |
2145 |
- ) |
2146 |
- local -x RUBY="${EPREFIX}/usr/bin/${MULTIBUILD_VARIANT}" |
2147 |
- |
2148 |
- econf "${myconf[@]}" |
2149 |
- } |
2150 |
- |
2151 |
- if use ruby; then |
2152 |
- ruby_foreach_impl run_in_build_dir ruby_configure |
2153 |
- fi |
2154 |
-} |
2155 |
- |
2156 |
-src_compile() { |
2157 |
- if has_basic_bindings ; then |
2158 |
- default |
2159 |
- fi |
2160 |
- |
2161 |
- if use php; then |
2162 |
- php_foreach_impl run_in_build_dir emake |
2163 |
- fi |
2164 |
- |
2165 |
- if use python; then |
2166 |
- unset PYTHONDONTWRITEBYTECODE |
2167 |
- python_foreach_impl run_in_build_dir emake |
2168 |
- fi |
2169 |
- |
2170 |
- if use ruby; then |
2171 |
- ruby_foreach_impl run_in_build_dir emake |
2172 |
- fi |
2173 |
-} |
2174 |
- |
2175 |
-src_test() { |
2176 |
- if has_basic_bindings ; then |
2177 |
- default |
2178 |
- fi |
2179 |
- |
2180 |
- if use php; then |
2181 |
- php_foreach_impl run_in_build_dir emake check |
2182 |
- fi |
2183 |
- |
2184 |
- if use python; then |
2185 |
- python_foreach_impl run_in_build_dir emake check |
2186 |
- fi |
2187 |
- |
2188 |
- if use ruby; then |
2189 |
- ruby_foreach_impl run_in_build_dir emake check |
2190 |
- fi |
2191 |
-} |
2192 |
- |
2193 |
-src_install() { |
2194 |
- if has_basic_bindings ; then |
2195 |
- emake DESTDIR="${D}" install |
2196 |
- fi |
2197 |
- |
2198 |
- if use java; then |
2199 |
- java-pkg_dojar java/built/xapian.jar |
2200 |
- # TODO: make the build system not install this... |
2201 |
- java-pkg_doso java/.libs/libxapian_jni.so |
2202 |
- rm -rf "${D}var" || die "could not remove java cruft!" |
2203 |
- fi |
2204 |
- |
2205 |
- if use php; then |
2206 |
- php_foreach_impl run_in_build_dir emake DESTDIR="${D}" install |
2207 |
- php-ext-source-r3_createinifiles |
2208 |
- # php-ext-source-r3_createinifiles() changes current directory. |
2209 |
- cd "${S}" |
2210 |
- fi |
2211 |
- |
2212 |
- if use python; then |
2213 |
- python_foreach_impl run_in_build_dir emake DESTDIR="${D}" install |
2214 |
- fi |
2215 |
- |
2216 |
- if use ruby; then |
2217 |
- ruby_foreach_impl run_in_build_dir emake DESTDIR="${D}" install |
2218 |
- fi |
2219 |
- |
2220 |
- # For some USE combinations this directory is not created |
2221 |
- if [[ -d "${D}/usr/share/doc/xapian-bindings" ]]; then |
2222 |
- mv "${D}/usr/share/doc/xapian-bindings" "${D}/usr/share/doc/${PF}" || die |
2223 |
- fi |
2224 |
- |
2225 |
- dodoc AUTHORS HACKING NEWS TODO README |
2226 |
-} |