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