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