1 |
commit: c2f164165b3f5e8269285fc62b4ef2949b744591 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 20 00:54:27 2019 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 20 00:54:27 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2f16416 |
7 |
|
8 |
dev-libs/xapian-bindings: version bump to 1.4.12 |
9 |
|
10 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
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.12.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 153a3e81420..b05403ef9f5 100644 |
19 |
--- a/dev-libs/xapian-bindings/Manifest |
20 |
+++ b/dev-libs/xapian-bindings/Manifest |
21 |
@@ -1,6 +1,7 @@ |
22 |
DIST xapian-bindings-1.2.25.tar.xz 1711860 BLAKE2B 66367dbc503333c4f59da8bb5bd4885fe9678aace45365573bac8e0e8e2c712795af2021ff52de9eeabb91f65a2f0447d1963424b1ae6558be95b737d1279e98 SHA512 5d27b2ae2722409ea99a1b9e6bf3f5c61ed9195b67121c090f1533340d3b11c546014985d0989a0725b60a07b392b9705bce054495f423bd3a7c99835aa336c7 |
23 |
DIST xapian-bindings-1.4.10.tar.xz 1125168 BLAKE2B cb864021362098243993560724a66964532cd4ff47ce7a746876f1102113d136676b0feb70fa6515a9c9b31627e5363c76f4d65d9928b21822f05fe41b92401c SHA512 e993c33820f7606e17ee6ff5a13bdcb91beceec6a8443298ff06a3160052e96caff3aca30908c68a8a695429ec51189a86404b69c5525e5770741637cc63bbc1 |
24 |
DIST xapian-bindings-1.4.11.tar.xz 1125716 BLAKE2B 0fd4204b4d18c04e017385f5eb116df68daa2f76f528f2b1770e61e5ab5062498aed6ccb57f51ac26ced58912d41c5f5a6f076e0f721a7eb1c3f83e01f2b9523 SHA512 326b08b9959143b92e6c10bd9b6b107ce2779e6ef1a3b5570abd07802a5988dd7df4e890d820f7da355f9f9e64df9a3ae08a0664d70d10ba6f876fca3dc44ecd |
25 |
+DIST xapian-bindings-1.4.12.tar.xz 1132048 BLAKE2B 56ab098a4d2da4de7e8be2a07581f57957d03cb84b31878c5f449d267060aa620a887f79c968f0ec28cb3a2c9f1f77f8e9e8d29e052c228109b71b0c137d7b71 SHA512 08190a70fe2548be50d82192f94158fd5d6839534b5ba7e0fdbcec7e99df29f0be6517603e7a66a474dffef94ea6bd2e6b7a3315717056687c6a205c25908b45 |
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.12.ebuild b/dev-libs/xapian-bindings/xapian-bindings-1.4.12.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..ec1fbcb8679 |
33 |
--- /dev/null |
34 |
+++ b/dev-libs/xapian-bindings/xapian-bindings-1.4.12.ebuild |
35 |
@@ -0,0 +1,306 @@ |
36 |
+# Copyright 1999-2019 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI="6" |
40 |
+ |
41 |
+PYTHON_COMPAT=( python{2_7,3_5,3_6} ) |
42 |
+PYTHON_REQ_USE="threads(+)" |
43 |
+ |
44 |
+USE_PHP="php7-1 php7-2 php7-3" |
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.9:0/30 |
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 |
+} |