1 |
commit: eae8802bc39c9b0c6db31a39a45cb5292604420e |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 20 20:55:27 2021 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 20 20:55:49 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eae8802b |
7 |
|
8 |
dev-libs/xapian-bindings: version bump to 1.4.18 |
9 |
|
10 |
Package-Manager: Portage-3.0.13, Repoman-3.0.2 |
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.18.ebuild | 296 +++++++++++++++++++++ |
15 |
2 files changed, 297 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/xapian-bindings/Manifest b/dev-libs/xapian-bindings/Manifest |
18 |
index 136a50b10fe..14676a58327 100644 |
19 |
--- a/dev-libs/xapian-bindings/Manifest |
20 |
+++ b/dev-libs/xapian-bindings/Manifest |
21 |
@@ -2,3 +2,4 @@ DIST xapian-bindings-1.4.14.tar.xz 1132008 BLAKE2B 3057f8f98cfd11e82555df4b554ad |
22 |
DIST xapian-bindings-1.4.15.tar.xz 1132248 BLAKE2B ba9f60263881ca558f9d3deab09bd07271e6f54e06a13d09bcb59bfaf9a637e959b3a62a9e9db0724ae2262e605fc3fd2160559d53702b2af5012f47177ea66a SHA512 dec8a0431c9070fc70d79b67bddc2e0adb10ef5366c4b9d7a135365ea6c6680d2e7682dbfd60c29eca51da48eaa0715509e30b13d5482d5a38bfd0d0156c43f9 |
23 |
DIST xapian-bindings-1.4.16.tar.xz 1133900 BLAKE2B cea310cea777f665feac3b0cac7189da66e596d245af0a3a6cc40d01e6b9862bae2b61d5b21e7d742c1e0eb1424603a47c44a4fab9d17125820ab793360a85f9 SHA512 afdc4379c8dc8381813eefcaf761ea560a23ba6718a54c61874c0d29786b9f49dd548ed3854fee38689c273acebb4637833b8cf5c75d0c2ed05df83384e59113 |
24 |
DIST xapian-bindings-1.4.17.tar.xz 1135100 BLAKE2B 8c45322725c341f6e6484e0aa8716798aa5b31e5bbc795d0f5c631022c69e96f472b3fd76609116a196431e5b069a710c3ebbfc989de8fb57d5e2d081008b89c SHA512 9cfd9809b8b13d47a7b50950c19b821d4ae902611eed3972d93cccda82d07d5858e37989bb9de31ede082c2574487e0bcd8c1e5f30f1479d47f4c28200ff76e7 |
25 |
+DIST xapian-bindings-1.4.18.tar.xz 1135644 BLAKE2B 7120c42d73794f8212bf15afb4566119e44cd39c711d50aab4fcc4320419babc440d4dd732af9e739c68397e740da192fa80cd08c5d2b59e1ae13af4444ff3d6 SHA512 e965384febaa83c28fd63b82192bfa4d5d34b4eb7cfacf1ddfc1201deada4f0498df8e50a191713dc95feb8edb0b1a4e9d6983a639c564f086ee305b8a05397e |
26 |
|
27 |
diff --git a/dev-libs/xapian-bindings/xapian-bindings-1.4.18.ebuild b/dev-libs/xapian-bindings/xapian-bindings-1.4.18.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..741f0f146da |
30 |
--- /dev/null |
31 |
+++ b/dev-libs/xapian-bindings/xapian-bindings-1.4.18.ebuild |
32 |
@@ -0,0 +1,296 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python{3_6,3_7,3_8} ) |
39 |
+PYTHON_REQ_USE="threads(+)" |
40 |
+ |
41 |
+USE_PHP="php7-2 php7-3 php7-4" |
42 |
+ |
43 |
+PHP_EXT_NAME="xapian" |
44 |
+PHP_EXT_INI="yes" |
45 |
+PHP_EXT_OPTIONAL_USE="php" |
46 |
+ |
47 |
+USE_RUBY="ruby24 ruby25 ruby26" |
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="https://www.xapian.org/" |
54 |
+SRC_URI="https://oligarchy.co.uk/xapian/${PV}/${P}.tar.xz" |
55 |
+ |
56 |
+LICENSE="GPL-2" |
57 |
+SLOT="0" |
58 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
59 |
+IUSE="java mono perl php python ruby tcl" |
60 |
+REQUIRED_USE="|| ( java 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.15 |
65 |
+ perl? ( dev-lang/perl:= ) |
66 |
+ php? ( dev-lang/php:=[-threads] ) |
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 lua, php, python and ruby are |
85 |
+ return $(use mono || use java || 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 |
+ # https://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 perl) |
153 |
+ $(use_with tcl) |
154 |
+ --without-lua |
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 |
+ econf "${conf[@]}" |
172 |
+ fi |
173 |
+ |
174 |
+ php_configure() { |
175 |
+ local myconf=( |
176 |
+ --disable-documentation |
177 |
+ --without-java |
178 |
+ --without-lua |
179 |
+ --without-csharp |
180 |
+ --without-perl |
181 |
+ --without-python |
182 |
+ --without-python3 |
183 |
+ --without-ruby |
184 |
+ --without-tcl |
185 |
+ ) |
186 |
+ if [[ ${MULTIBUILD_VARIANT} == php5.* ]]; then |
187 |
+ myconf+=( |
188 |
+ --with-php |
189 |
+ --without-php7 |
190 |
+ ) |
191 |
+ local -x PHP_CONFIG="${EPREFIX}/usr/$(get_libdir)/${MULTIBUILD_VARIANT/-/.}/bin/php-config" |
192 |
+ elif [[ ${MULTIBUILD_VARIANT} == php7.* ]]; then |
193 |
+ myconf+=( |
194 |
+ --without-php |
195 |
+ --with-php7 |
196 |
+ ) |
197 |
+ local -x PHP_CONFIG7="${EPREFIX}/usr/$(get_libdir)/${MULTIBUILD_VARIANT/-/.}/bin/php-config" |
198 |
+ fi |
199 |
+ |
200 |
+ econf "${myconf[@]}" |
201 |
+ } |
202 |
+ |
203 |
+ if use php; then |
204 |
+ addpredict /usr/share/snmp/mibs/.index |
205 |
+ addpredict /var/lib/net-snmp/mib_indexes |
206 |
+ |
207 |
+ php_foreach_impl run_in_build_dir php_configure |
208 |
+ fi |
209 |
+ |
210 |
+ python_configure() { |
211 |
+ local myconf=( |
212 |
+ --disable-documentation |
213 |
+ --without-java |
214 |
+ --without-lua |
215 |
+ --without-csharp |
216 |
+ --without-perl |
217 |
+ --without-php |
218 |
+ --without-php7 |
219 |
+ --without-ruby |
220 |
+ --without-tcl |
221 |
+ --with-python3 |
222 |
+ ) |
223 |
+ |
224 |
+ # Avoid sandbox failures when compiling modules |
225 |
+ addpredict "$(python_get_sitedir)" |
226 |
+ |
227 |
+ econf "${myconf[@]}" |
228 |
+ } |
229 |
+ |
230 |
+ if use python; then |
231 |
+ python_foreach_impl run_in_build_dir python_configure |
232 |
+ fi |
233 |
+ |
234 |
+ ruby_configure() { |
235 |
+ local myconf=( |
236 |
+ --disable-documentation |
237 |
+ --without-java |
238 |
+ --without-lua |
239 |
+ --without-csharp |
240 |
+ --without-perl |
241 |
+ --without-php |
242 |
+ --without-php7 |
243 |
+ --without-python |
244 |
+ --without-python3 |
245 |
+ --with-ruby |
246 |
+ --without-tcl |
247 |
+ ) |
248 |
+ local -x RUBY="${EPREFIX}/usr/bin/${MULTIBUILD_VARIANT}" |
249 |
+ |
250 |
+ econf "${myconf[@]}" |
251 |
+ } |
252 |
+ |
253 |
+ if use ruby; then |
254 |
+ ruby_foreach_impl run_in_build_dir ruby_configure |
255 |
+ fi |
256 |
+} |
257 |
+ |
258 |
+src_compile() { |
259 |
+ if has_basic_bindings ; then |
260 |
+ default |
261 |
+ fi |
262 |
+ |
263 |
+ if use php; then |
264 |
+ php_foreach_impl run_in_build_dir emake |
265 |
+ fi |
266 |
+ |
267 |
+ if use python; then |
268 |
+ unset PYTHONDONTWRITEBYTECODE |
269 |
+ python_foreach_impl run_in_build_dir emake |
270 |
+ fi |
271 |
+ |
272 |
+ if use ruby; then |
273 |
+ ruby_foreach_impl run_in_build_dir emake |
274 |
+ fi |
275 |
+} |
276 |
+ |
277 |
+src_test() { |
278 |
+ if has_basic_bindings ; then |
279 |
+ default |
280 |
+ fi |
281 |
+ |
282 |
+ if use php; then |
283 |
+ php_foreach_impl run_in_build_dir emake check |
284 |
+ fi |
285 |
+ |
286 |
+ if use python; then |
287 |
+ python_foreach_impl run_in_build_dir emake check |
288 |
+ fi |
289 |
+ |
290 |
+ if use ruby; then |
291 |
+ ruby_foreach_impl run_in_build_dir emake check |
292 |
+ fi |
293 |
+} |
294 |
+ |
295 |
+src_install() { |
296 |
+ if has_basic_bindings ; then |
297 |
+ emake DESTDIR="${D}" install |
298 |
+ fi |
299 |
+ |
300 |
+ if use java; then |
301 |
+ java-pkg_dojar java/built/xapian.jar |
302 |
+ # TODO: make the build system not install this... |
303 |
+ java-pkg_doso java/.libs/libxapian_jni.so |
304 |
+ rm -rf "${D}var" || die "could not remove java cruft!" |
305 |
+ fi |
306 |
+ |
307 |
+ if use php; then |
308 |
+ php_foreach_impl run_in_build_dir emake DESTDIR="${D}" install |
309 |
+ php-ext-source-r3_createinifiles |
310 |
+ # php-ext-source-r3_createinifiles() changes current directory. |
311 |
+ cd "${S}" |
312 |
+ fi |
313 |
+ |
314 |
+ if use python; then |
315 |
+ python_foreach_impl run_in_build_dir emake DESTDIR="${D}" install |
316 |
+ fi |
317 |
+ |
318 |
+ if use ruby; then |
319 |
+ ruby_foreach_impl run_in_build_dir emake DESTDIR="${D}" install |
320 |
+ fi |
321 |
+ |
322 |
+ # For some USE combinations this directory is not created |
323 |
+ if [[ -d "${D}/usr/share/doc/xapian-bindings" ]]; then |
324 |
+ mv "${D}/usr/share/doc/xapian-bindings" "${D}/usr/share/doc/${PF}" || die |
325 |
+ fi |
326 |
+ |
327 |
+ dodoc AUTHORS HACKING NEWS TODO README |
328 |
+} |