1 |
commit: 7b69c0d68c861f067185f39a485c4a31677ccc21 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 7 15:38:17 2020 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 7 15:50:07 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b69c0d6 |
7 |
|
8 |
dev-libs/xapian-bindings: version bump to 1.4.15 |
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 | 1 + |
14 |
.../xapian-bindings/xapian-bindings-1.4.15.ebuild | 306 +++++++++++++++++++++ |
15 |
2 files changed, 307 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/xapian-bindings/Manifest b/dev-libs/xapian-bindings/Manifest |
18 |
index de2ef20e074..7864d8f58ab 100644 |
19 |
--- a/dev-libs/xapian-bindings/Manifest |
20 |
+++ b/dev-libs/xapian-bindings/Manifest |
21 |
@@ -4,6 +4,7 @@ DIST xapian-bindings-1.4.11.tar.xz 1125716 BLAKE2B 0fd4204b4d18c04e017385f5eb116 |
22 |
DIST xapian-bindings-1.4.12.tar.xz 1132048 BLAKE2B 56ab098a4d2da4de7e8be2a07581f57957d03cb84b31878c5f449d267060aa620a887f79c968f0ec28cb3a2c9f1f77f8e9e8d29e052c228109b71b0c137d7b71 SHA512 08190a70fe2548be50d82192f94158fd5d6839534b5ba7e0fdbcec7e99df29f0be6517603e7a66a474dffef94ea6bd2e6b7a3315717056687c6a205c25908b45 |
23 |
DIST xapian-bindings-1.4.13.tar.xz 1132592 BLAKE2B f9498f67da907fba6f58209000bd8056c6654ea53d79806a53d8b17bfedbcb2afb1b91da189feab2bdfd39a3749d4ac20a21ed17c09b99345f575e705f125968 SHA512 20f5f8842e401ba1c1407f336d1a03fa8bc6faa1fcc9533bad1772644ad3ae878a51f10c2f7810f89e3f14683a73c0c089601af548cdf3fbe7feeead4d2d21d9 |
24 |
DIST xapian-bindings-1.4.14.tar.xz 1132008 BLAKE2B 3057f8f98cfd11e82555df4b554ad1ffed793ea92bf0f077ef4a495d09250da47116d76ded0deb07621f3b14ddd7f653aa0bb19add01d88fe077e637bee21ec4 SHA512 6d35c6c011c6d841254934f4dd59f4a2b842fe826af108e526cde9acbccec67b43517974331b21cbee5e828d0743aa5b9b973a96e1940065fbcfc342b8f23ead |
25 |
+DIST xapian-bindings-1.4.15.tar.xz 1132248 BLAKE2B ba9f60263881ca558f9d3deab09bd07271e6f54e06a13d09bcb59bfaf9a637e959b3a62a9e9db0724ae2262e605fc3fd2160559d53702b2af5012f47177ea66a SHA512 dec8a0431c9070fc70d79b67bddc2e0adb10ef5366c4b9d7a135365ea6c6680d2e7682dbfd60c29eca51da48eaa0715509e30b13d5482d5a38bfd0d0156c43f9 |
26 |
DIST xapian-bindings-1.4.5.tar.xz 1118884 BLAKE2B 507b06f0121e5a56224250bfe7b19795eb9fd2fba977d12022d054e7b832fd70af70085ad576dab41efcde261f9ecd48179646f1ea67aaa266fb6272358eb69a SHA512 e39ece495e25077990db3d06554306567c52c6f45ad55a65005cb97e18086ee18947e41d0d612157b891b61e015881385bcb082a03aa0c6452565e90d09e8275 |
27 |
DIST xapian-bindings-1.4.7.tar.xz 1121700 BLAKE2B f8492113b76aba322c975aa2b957a627a32e5209d8b79f435dc85c899cf14619af6165265e624e2ba8806f3c91dd35d71d98c4a47f5d6f4fba1b7fb83700c0d0 SHA512 c904cd3abf19d68495b0487ea77265fdc92a3cd8b1c2437b89034efd349ce41198bbc4abca49f259f71a1ba0fd269b2cf9b6dd4c1607678a73cbed4de9c5a1d5 |
28 |
DIST xapian-bindings-1.4.8.tar.xz 1123812 BLAKE2B 5aa496ff3cfe06a40fa8db6a04cdc9041f4a0d9f12c7a61565f10c7d360490a7c8a7c745d91c9eda45b9d9bc58bd6a2bbae02aa9dd7ff1949ac59f7e09b090df SHA512 f979c32b096ecdc7a71b2bd032c6d0e7131f3d304e47e44005989ca79ea1f940c39626c60a8e52ff3cdb2cb380aa5ddf82a99bae08e06629c0bd47d8e0bfa7cc |
29 |
|
30 |
diff --git a/dev-libs/xapian-bindings/xapian-bindings-1.4.15.ebuild b/dev-libs/xapian-bindings/xapian-bindings-1.4.15.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..261fa82b733 |
33 |
--- /dev/null |
34 |
+++ b/dev-libs/xapian-bindings/xapian-bindings-1.4.15.ebuild |
35 |
@@ -0,0 +1,306 @@ |
36 |
+# Copyright 1999-2020 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI="7" |
40 |
+ |
41 |
+PYTHON_COMPAT=( python{2_7,3_6} ) |
42 |
+PYTHON_REQ_USE="threads(+)" |
43 |
+ |
44 |
+USE_PHP="php7-1 php7-2 php7-3 php7-4" |
45 |
+ |
46 |
+PHP_EXT_NAME="xapian" |
47 |
+PHP_EXT_INI="yes" |
48 |
+PHP_EXT_OPTIONAL_USE="php" |
49 |
+ |
50 |
+USE_RUBY="ruby24 ruby25 ruby26" |
51 |
+RUBY_OPTIONAL="yes" |
52 |
+ |
53 |
+inherit java-pkg-opt-2 mono-env multibuild php-ext-source-r3 python-r1 ruby-ng toolchain-funcs |
54 |
+ |
55 |
+DESCRIPTION="SWIG and JNI bindings for Xapian" |
56 |
+HOMEPAGE="https://www.xapian.org/" |
57 |
+SRC_URI="https://oligarchy.co.uk/xapian/${PV}/${P}.tar.xz" |
58 |
+ |
59 |
+LICENSE="GPL-2" |
60 |
+SLOT="0" |
61 |
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
62 |
+IUSE="java lua mono perl php python ruby tcl" |
63 |
+REQUIRED_USE="|| ( java lua mono perl php python ruby tcl ) |
64 |
+ python? ( ${PYTHON_REQUIRED_USE} ) |
65 |
+ ruby? ( || ( $(ruby_get_use_targets) ) )" |
66 |
+ |
67 |
+COMMONDEPEND=">=dev-libs/xapian-1.4.15 |
68 |
+ lua? ( dev-lang/lua:= ) |
69 |
+ perl? ( dev-lang/perl:= ) |
70 |
+ php? ( dev-lang/php:=[-threads] ) |
71 |
+ python? ( |
72 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
73 |
+ ${PYTHON_DEPS} |
74 |
+ ) |
75 |
+ ruby? ( $(ruby_implementations_depend) ) |
76 |
+ tcl? ( dev-lang/tcl:= ) |
77 |
+ mono? ( dev-lang/mono )" |
78 |
+DEPEND="${COMMONDEPEND} |
79 |
+ virtual/pkgconfig |
80 |
+ java? ( >=virtual/jdk-1.6 )" |
81 |
+RDEPEND="${COMMONDEPEND} |
82 |
+ java? ( >=virtual/jre-1.6 )" |
83 |
+ |
84 |
+S="${WORKDIR}/${P}" |
85 |
+ |
86 |
+has_basic_bindings() { |
87 |
+ # Update this list if new bindings are added that are not built |
88 |
+ # multiple times for multiple versions like php, python and ruby are |
89 |
+ return $(use mono || use java || use lua || use perl || use tcl) |
90 |
+} |
91 |
+ |
92 |
+php_copy_sources() { |
93 |
+ local MULTIBUILD_VARIANTS=($(php_get_slots)) |
94 |
+ multibuild_copy_sources |
95 |
+} |
96 |
+ |
97 |
+php_foreach_impl() { |
98 |
+ local MULTIBUILD_VARIANTS=($(php_get_slots)) |
99 |
+ multibuild_foreach_variant "$@" |
100 |
+} |
101 |
+ |
102 |
+ruby_copy_sources() { |
103 |
+ local MULTIBUILD_VARIANTS=($(ruby_get_use_implementations)) |
104 |
+ multibuild_copy_sources |
105 |
+} |
106 |
+ |
107 |
+ruby_foreach_impl() { |
108 |
+ local MULTIBUILD_VARIANTS=($(ruby_get_use_implementations)) |
109 |
+ multibuild_foreach_variant "$@" |
110 |
+} |
111 |
+ |
112 |
+pkg_setup() { |
113 |
+ use mono && mono-env_pkg_setup |
114 |
+ use java && java-pkg-opt-2_pkg_setup |
115 |
+} |
116 |
+ |
117 |
+src_unpack() { |
118 |
+ default |
119 |
+ |
120 |
+ if use php; then |
121 |
+ local php_slot |
122 |
+ for php_slot in $(php_get_slots); do |
123 |
+ # Unfortunately required for php-ext-source-r3_createinifiles(). |
124 |
+ mkdir "${WORKDIR}/${php_slot}" |
125 |
+ done |
126 |
+ fi |
127 |
+} |
128 |
+ |
129 |
+src_prepare() { |
130 |
+ use java && java-pkg-opt-2_src_prepare |
131 |
+ |
132 |
+ # https://trac.xapian.org/ticket/702 |
133 |
+ export XAPIAN_CONFIG="/usr/bin/xapian-config" |
134 |
+ |
135 |
+ if use php; then |
136 |
+ php_copy_sources |
137 |
+ fi |
138 |
+ |
139 |
+ if use python; then |
140 |
+ python_copy_sources |
141 |
+ fi |
142 |
+ |
143 |
+ if use ruby; then |
144 |
+ ruby_copy_sources |
145 |
+ fi |
146 |
+ |
147 |
+ eapply_user |
148 |
+} |
149 |
+ |
150 |
+src_configure() { |
151 |
+ if has_basic_bindings ; then |
152 |
+ local conf=( |
153 |
+ --disable-documentation |
154 |
+ $(use_with mono csharp) |
155 |
+ $(use_with java) |
156 |
+ $(use_with lua) |
157 |
+ $(use_with perl) |
158 |
+ $(use_with tcl) |
159 |
+ --without-php |
160 |
+ --without-php7 |
161 |
+ --without-python |
162 |
+ --without-python3 |
163 |
+ --without-ruby |
164 |
+ ) |
165 |
+ |
166 |
+ if use java; then |
167 |
+ local -x CXXFLAGS="${CXXFLAGS} $(java-pkg_get-jni-cflags)" |
168 |
+ fi |
169 |
+ |
170 |
+ if use perl; then |
171 |
+ local -x PERL_ARCH="$(perl -MConfig -e 'print $Config{installvendorarch}')" |
172 |
+ local -x PERL_LIB="$(perl -MConfig -e 'print $Config{installvendorlib}')" |
173 |
+ fi |
174 |
+ |
175 |
+ if use lua; then |
176 |
+ local -x LUA_INC="$("$(tc-getPKG_CONFIG)" --variable=INSTALL_INC lua)" |
177 |
+ local -x LUA_LIB="$("$(tc-getPKG_CONFIG)" --variable=INSTALL_CMOD lua)" |
178 |
+ fi |
179 |
+ |
180 |
+ econf "${conf[@]}" |
181 |
+ fi |
182 |
+ |
183 |
+ php_configure() { |
184 |
+ local myconf=( |
185 |
+ --disable-documentation |
186 |
+ --without-java |
187 |
+ --without-lua |
188 |
+ --without-csharp |
189 |
+ --without-perl |
190 |
+ --without-python |
191 |
+ --without-python3 |
192 |
+ --without-ruby |
193 |
+ --without-tcl |
194 |
+ ) |
195 |
+ if [[ ${MULTIBUILD_VARIANT} == php5.* ]]; then |
196 |
+ myconf+=( |
197 |
+ --with-php |
198 |
+ --without-php7 |
199 |
+ ) |
200 |
+ local -x PHP_CONFIG="${EPREFIX}/usr/$(get_libdir)/${MULTIBUILD_VARIANT/-/.}/bin/php-config" |
201 |
+ elif [[ ${MULTIBUILD_VARIANT} == php7.* ]]; then |
202 |
+ myconf+=( |
203 |
+ --without-php |
204 |
+ --with-php7 |
205 |
+ ) |
206 |
+ local -x PHP_CONFIG7="${EPREFIX}/usr/$(get_libdir)/${MULTIBUILD_VARIANT/-/.}/bin/php-config" |
207 |
+ fi |
208 |
+ |
209 |
+ econf "${myconf[@]}" |
210 |
+ } |
211 |
+ |
212 |
+ if use php; then |
213 |
+ addpredict /usr/share/snmp/mibs/.index |
214 |
+ addpredict /var/lib/net-snmp/mib_indexes |
215 |
+ |
216 |
+ php_foreach_impl run_in_build_dir php_configure |
217 |
+ fi |
218 |
+ |
219 |
+ python_configure() { |
220 |
+ local myconf=( |
221 |
+ --disable-documentation |
222 |
+ --without-java |
223 |
+ --without-lua |
224 |
+ --without-csharp |
225 |
+ --without-perl |
226 |
+ --without-php |
227 |
+ --without-php7 |
228 |
+ --without-ruby |
229 |
+ --without-tcl |
230 |
+ ) |
231 |
+ if python_is_python3; then |
232 |
+ myconf+=( --with-python3 ) |
233 |
+ else |
234 |
+ myconf+=( --with-python ) |
235 |
+ fi |
236 |
+ |
237 |
+ # Avoid sandbox failures when compiling modules |
238 |
+ addpredict "$(python_get_sitedir)" |
239 |
+ |
240 |
+ econf "${myconf[@]}" |
241 |
+ } |
242 |
+ |
243 |
+ if use python; then |
244 |
+ python_foreach_impl run_in_build_dir python_configure |
245 |
+ fi |
246 |
+ |
247 |
+ ruby_configure() { |
248 |
+ local myconf=( |
249 |
+ --disable-documentation |
250 |
+ --without-java |
251 |
+ --without-lua |
252 |
+ --without-csharp |
253 |
+ --without-perl |
254 |
+ --without-php |
255 |
+ --without-php7 |
256 |
+ --without-python |
257 |
+ --without-python3 |
258 |
+ --with-ruby |
259 |
+ --without-tcl |
260 |
+ ) |
261 |
+ local -x RUBY="${EPREFIX}/usr/bin/${MULTIBUILD_VARIANT}" |
262 |
+ |
263 |
+ econf "${myconf[@]}" |
264 |
+ } |
265 |
+ |
266 |
+ if use ruby; then |
267 |
+ ruby_foreach_impl run_in_build_dir ruby_configure |
268 |
+ fi |
269 |
+} |
270 |
+ |
271 |
+src_compile() { |
272 |
+ if has_basic_bindings ; then |
273 |
+ default |
274 |
+ fi |
275 |
+ |
276 |
+ if use php; then |
277 |
+ php_foreach_impl run_in_build_dir emake |
278 |
+ fi |
279 |
+ |
280 |
+ if use python; then |
281 |
+ unset PYTHONDONTWRITEBYTECODE |
282 |
+ python_foreach_impl run_in_build_dir emake |
283 |
+ fi |
284 |
+ |
285 |
+ if use ruby; then |
286 |
+ ruby_foreach_impl run_in_build_dir emake |
287 |
+ fi |
288 |
+} |
289 |
+ |
290 |
+src_test() { |
291 |
+ if has_basic_bindings ; then |
292 |
+ default |
293 |
+ fi |
294 |
+ |
295 |
+ if use php; then |
296 |
+ php_foreach_impl run_in_build_dir emake check |
297 |
+ fi |
298 |
+ |
299 |
+ if use python; then |
300 |
+ python_foreach_impl run_in_build_dir emake check |
301 |
+ fi |
302 |
+ |
303 |
+ if use ruby; then |
304 |
+ ruby_foreach_impl run_in_build_dir emake check |
305 |
+ fi |
306 |
+} |
307 |
+ |
308 |
+src_install() { |
309 |
+ if has_basic_bindings ; then |
310 |
+ emake DESTDIR="${D}" install |
311 |
+ fi |
312 |
+ |
313 |
+ if use java; then |
314 |
+ java-pkg_dojar java/built/xapian.jar |
315 |
+ # TODO: make the build system not install this... |
316 |
+ java-pkg_doso java/.libs/libxapian_jni.so |
317 |
+ rm -rf "${D}var" || die "could not remove java cruft!" |
318 |
+ fi |
319 |
+ |
320 |
+ if use php; then |
321 |
+ php_foreach_impl run_in_build_dir emake DESTDIR="${D}" install |
322 |
+ php-ext-source-r3_createinifiles |
323 |
+ # php-ext-source-r3_createinifiles() changes current directory. |
324 |
+ cd "${S}" |
325 |
+ fi |
326 |
+ |
327 |
+ if use python; then |
328 |
+ python_foreach_impl run_in_build_dir emake DESTDIR="${D}" install |
329 |
+ fi |
330 |
+ |
331 |
+ if use ruby; then |
332 |
+ ruby_foreach_impl run_in_build_dir emake DESTDIR="${D}" install |
333 |
+ fi |
334 |
+ |
335 |
+ # For some USE combinations this directory is not created |
336 |
+ if [[ -d "${D}/usr/share/doc/xapian-bindings" ]]; then |
337 |
+ mv "${D}/usr/share/doc/xapian-bindings" "${D}/usr/share/doc/${PF}" || die |
338 |
+ fi |
339 |
+ |
340 |
+ dodoc AUTHORS HACKING NEWS TODO README |
341 |
+} |