1 |
commit: d3ec6f5f79c48ea0c1d9d66ce52c070072c8a69a |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 29 18:52:14 2016 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 29 18:52:14 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3ec6f5f |
7 |
|
8 |
dev-libs/xapian-bindings: version bump to 1.2.24 |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
dev-libs/xapian-bindings/Manifest | 1 + |
13 |
.../xapian-bindings/xapian-bindings-1.2.24.ebuild | 203 +++++++++++++++++++++ |
14 |
2 files changed, 204 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/xapian-bindings/Manifest b/dev-libs/xapian-bindings/Manifest |
17 |
index 32941a0..3a54de9 100644 |
18 |
--- a/dev-libs/xapian-bindings/Manifest |
19 |
+++ b/dev-libs/xapian-bindings/Manifest |
20 |
@@ -1,4 +1,5 @@ |
21 |
DIST xapian-bindings-1.2.22.tar.xz 844040 SHA256 b15ca7984980a1d2aedd3378648ef5f3889cb39a047bac1522a8e5d04f0a8557 SHA512 0eec204ebb92f1230b9dbd080ad2b56ea5fa8e6170eb4354556e5790c7a7da7ba4c8475aaf86fb8f10f102a461d91590184271220626315f55c0631e73e122e0 WHIRLPOOL 05ac5b31d73f9de0c101da832ef289f6a505baa68216eba6fa0cf80df1709feef7e42c7b8f4cf9af35f775e8514c6d4b944c2acebffff10bc558a83305a637ce |
22 |
DIST xapian-bindings-1.2.23.tar.xz 885888 SHA256 19b4b56c74863c51733d8c2567272ef7f004b898cf44016711ae25bc524b2215 SHA512 4be9d103a4073a08d2481e9ddc347156d4028a1517f313861ad3664e6103e052dc1a0d07a992da3ca02599505c002d09d77c4fd886c144918aab72977e69994c WHIRLPOOL 1323e51dcd8f18f573f9338d9a013bfd370870c1fd2c0b0e3ff9d1f6b3b9154a0512d7442d7c7b1b00a70757faa218e8894a0f4fe56da88bca12ba2259cd35de |
23 |
+DIST xapian-bindings-1.2.24.tar.xz 886148 SHA256 0c2a0df0a4616e2bd8e578d372c9bb4684780573abebbd1ac515502177229965 SHA512 aaedac02ec9fb192ef8b45b07bef5584bc60aff7068c2e3fa0008430ed8296a653780cad04176431d81fe014802df333a3090469dce63204923eead15e6bbaef WHIRLPOOL 996b960727a79dbe669ae8139863c3896c6efdbe781177098d00960982b86a43739433c69db32e62b6660dd4751736d859f5d950d26d6b635c310c35d75a8a0f |
24 |
DIST xapian-bindings-1.3.7.tar.xz 1021176 SHA256 f014bb0281fdaa08fd9293ee187af0c2165f4fd2de91a67b76d9327b64677717 SHA512 3dc7eac68c4f3010e5cb831b4baad7bea4d47e0a8dc492ac16f2437057da351caad008aa7bcf3f2bbdaffda7d2524e8b5a945b651dc02deadeb110073ef06ad8 WHIRLPOOL f68a81a37b9c298ad6b061f597806b0823ba01ee02c0921e90988c984ac2f60ec0cb09dba8bdecb43c412517eebd72490196923db474e5362d17c47af4b4fdd2 |
25 |
DIST xapian-bindings-1.4.0.tar.xz 1021244 SHA256 3aec7a009d0bf0b95968420bf68683176c05d63140eaf1cf265d39afe8fa6253 SHA512 16523be4f2cd576819771e387d469c91cd03b27522808eebc9275ac3281e55c5d40a5c620ad37f96c2dbc89cc2b13808579e29d737eb63584b8c209597b0f7ce WHIRLPOOL 26a31b8a2ca8bd08a45e79fb5f926e917db8e65d8ee1f07c9291c573b8efa647c9ff7bc1c6c3130ae69538ffa1789a0ad60d940f00b758066e55f4835ec20433 |
26 |
|
27 |
diff --git a/dev-libs/xapian-bindings/xapian-bindings-1.2.24.ebuild b/dev-libs/xapian-bindings/xapian-bindings-1.2.24.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000..bf94b16 |
30 |
--- /dev/null |
31 |
+++ b/dev-libs/xapian-bindings/xapian-bindings-1.2.24.ebuild |
32 |
@@ -0,0 +1,203 @@ |
33 |
+# Copyright 1999-2016 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+# $Id$ |
36 |
+ |
37 |
+EAPI="5" |
38 |
+ |
39 |
+PYTHON_COMPAT=( python2_7 ) |
40 |
+PYTHON_REQ_USE="threads" |
41 |
+ |
42 |
+USE_PHP="php5-5 php5-6" |
43 |
+ |
44 |
+PHP_EXT_NAME="xapian" |
45 |
+PHP_EXT_INI="yes" |
46 |
+PHP_EXT_OPTIONAL_USE="php" |
47 |
+ |
48 |
+#mono violates sandbox, we disable it until we figure this out |
49 |
+#inherit java-pkg-opt-2 mono-env php-ext-source-r2 python |
50 |
+inherit java-pkg-opt-2 php-ext-source-r2 python-r1 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 |
+IUSE="java lua perl php python ruby tcl" |
62 |
+REQUIRED_USE="|| ( java lua perl php python ruby tcl )" |
63 |
+ |
64 |
+COMMONDEPEND="dev-libs/xapian:0/1.2.22 |
65 |
+ lua? ( dev-lang/lua:0 ) |
66 |
+ perl? ( dev-lang/perl:= ) |
67 |
+ ruby? ( dev-lang/ruby:= ) |
68 |
+ tcl? ( >=dev-lang/tcl-8.1:0= )" |
69 |
+# mono? ( >=dev-lang/mono-1.0.8 ) |
70 |
+DEPEND="${COMMONDEPEND} |
71 |
+ virtual/pkgconfig |
72 |
+ java? ( >=virtual/jdk-1.3 )" |
73 |
+RDEPEND="${COMMONDEPEND} |
74 |
+ java? ( >=virtual/jre-1.3 )" |
75 |
+ |
76 |
+pkg_setup() { |
77 |
+ java-pkg-opt-2_pkg_setup |
78 |
+} |
79 |
+ |
80 |
+src_unpack() { |
81 |
+ default |
82 |
+} |
83 |
+ |
84 |
+src_prepare() { |
85 |
+ java-pkg-opt-2_src_prepare |
86 |
+ if use java; then |
87 |
+ sed \ |
88 |
+ -e 's/$(JAVAC)/$(JAVAC) $(JAVACFLAGS)/' \ |
89 |
+ -i java{/,/org/xapian/errors/,/org/xapian/}Makefile.in || die "sed failed" |
90 |
+ fi |
91 |
+ |
92 |
+ if use python; then |
93 |
+ sed \ |
94 |
+ -e 's:\(^pkgpylib_DATA = xapian/__init__.py\).*:\1:' \ |
95 |
+ -e 's|\(^xapian/__init__.py: modern/xapian.py\)|\1 xapian/_xapian.so|' \ |
96 |
+ -i python/Makefile.in || die "sed failed" |
97 |
+ fi |
98 |
+} |
99 |
+ |
100 |
+src_configure() { |
101 |
+ if use java; then |
102 |
+ CXXFLAGS="${CXXFLAGS} $(java-pkg_get-jni-cflags)" |
103 |
+ fi |
104 |
+ |
105 |
+ if use perl; then |
106 |
+ export PERL_ARCH="$(perl -MConfig -e 'print $Config{installvendorarch}')" |
107 |
+ export PERL_LIB="$(perl -MConfig -e 'print $Config{installvendorlib}')" |
108 |
+ fi |
109 |
+ |
110 |
+ if use lua; then |
111 |
+ export LUA_LIB="$($(tc-getPKG_CONFIG) --variable=INSTALL_CMOD lua)" |
112 |
+ fi |
113 |
+ |
114 |
+ econf \ |
115 |
+ $(use_with java) \ |
116 |
+ $(use_with lua) \ |
117 |
+ $(use_with perl) \ |
118 |
+ $(use_with php) \ |
119 |
+ $(use_with python) \ |
120 |
+ $(use_with ruby) \ |
121 |
+ $(use_with tcl) |
122 |
+# $(use_with mono csharp) \ |
123 |
+ |
124 |
+ # PHP and Python bindings are built/tested/installed manually. |
125 |
+ sed -e "/SUBDIRS =/s/ php//" -i Makefile || die "sed Makefile" |
126 |
+ sed -e "/SUBDIRS =/s/ python//" -i Makefile || die "sed Makefile" |
127 |
+} |
128 |
+ |
129 |
+src_compile() { |
130 |
+ default |
131 |
+ |
132 |
+ if use php; then |
133 |
+ local php_slot |
134 |
+ for php_slot in $(php_get_slots); do |
135 |
+ cp -r php php-${php_slot} |
136 |
+ emake -C php-${php_slot} \ |
137 |
+ PHP="${EPREFIX}/usr/$(get_libdir)/${php_slot}/bin/php" \ |
138 |
+ PHP_CONFIG="${EPREFIX}/usr/$(get_libdir)/${php_slot}/bin/php-config" \ |
139 |
+ PHP_EXTENSION_DIR="$("${EPREFIX}/usr/$(get_libdir)/${php_slot}/bin/php-config" --extension-dir)" \ |
140 |
+ PHP_INC="$("${EPREFIX}/usr/$(get_libdir)/${php_slot}/bin/php-config" --includes)" |
141 |
+ done |
142 |
+ fi |
143 |
+ |
144 |
+ if use python; then |
145 |
+ python_copy_sources |
146 |
+# building() { |
147 |
+# emake -C python \ |
148 |
+# PYTHON="$(PYTHON)" \ |
149 |
+# PYTHON_INC="$(python_get_includedir)" \ |
150 |
+# PYTHON_LIB="$(python_get_libdir)" \ |
151 |
+# PYTHON_SO="$("$(PYTHON)" -c 'import distutils.sysconfig; print(distutils.sysconfig.get_config_vars("SO")[0])')" \ |
152 |
+# pkgpylibdir="$(python_get_sitedir)/xapian" |
153 |
+# } |
154 |
+ building() { |
155 |
+ emake -C python \ |
156 |
+ PYTHON_INC="$(python_get_includedir)" \ |
157 |
+ pkgpylibdir="$(python_get_sitedir)/xapian" |
158 |
+ VERBOSE="1" |
159 |
+ } |
160 |
+ python_foreach_impl building |
161 |
+ fi |
162 |
+} |
163 |
+ |
164 |
+src_test() { |
165 |
+ default |
166 |
+ |
167 |
+ if use php; then |
168 |
+ local php_slot |
169 |
+ for php_slot in $(php_get_slots); do |
170 |
+ emake -C php-${php_slot} \ |
171 |
+ PHP="${EPREFIX}/usr/$(get_libdir)/${php_slot}/bin/php" \ |
172 |
+ PHP_CONFIG="${EPREFIX}/usr/$(get_libdir)/${php_slot}/bin/php-config" \ |
173 |
+ PHP_EXTENSION_DIR="$("${EPREFIX}/usr/$(get_libdir)/${php_slot}/bin/php-config" --extension-dir)" \ |
174 |
+ PHP_INC="$("${EPREFIX}/usr/$(get_libdir)/${php_slot}/bin/php-config" --includes)" \ |
175 |
+ check |
176 |
+ done |
177 |
+ fi |
178 |
+ |
179 |
+ if use python; then |
180 |
+ testing() { |
181 |
+ emake -C python \ |
182 |
+ PYTHON_INC="$(python_get_includedir)" \ |
183 |
+ pkgpylibdir="$(python_get_sitedir)/xapian" \ |
184 |
+ VERBOSE="1" \ |
185 |
+ check |
186 |
+ } |
187 |
+ python_foreach_impl testing |
188 |
+ fi |
189 |
+} |
190 |
+ |
191 |
+src_install () { |
192 |
+ emake DESTDIR="${D}" install |
193 |
+ |
194 |
+ if use java; then |
195 |
+ java-pkg_dojar java/built/xapian_jni.jar |
196 |
+ # TODO: make the build system not install this... |
197 |
+ java-pkg_doso "${D}/${S}/java/built/libxapian_jni.so" |
198 |
+ rm "${D}/${S}/java/built/libxapian_jni.so" |
199 |
+ rmdir -p "${D}/${S}/java/built" |
200 |
+ rmdir -p "${D}/${S}/java/native" |
201 |
+ fi |
202 |
+ |
203 |
+ if use php; then |
204 |
+ local php_slot |
205 |
+ for php_slot in $(php_get_slots); do |
206 |
+ emake DESTDIR="${D}" -C php-${php_slot} \ |
207 |
+ PHP="${EPREFIX}/usr/$(get_libdir)/${php_slot}/bin/php" \ |
208 |
+ PHP_CONFIG="${EPREFIX}/usr/$(get_libdir)/${php_slot}/bin/php-config" \ |
209 |
+ PHP_EXTENSION_DIR="$("${EPREFIX}/usr/$(get_libdir)/${php_slot}/bin/php-config" --extension-dir)" \ |
210 |
+ PHP_INC="$("${EPREFIX}/usr/$(get_libdir)/${php_slot}/bin/php-config" --includes)" \ |
211 |
+ install |
212 |
+ done |
213 |
+ |
214 |
+ php-ext-source-r2_createinifiles |
215 |
+ fi |
216 |
+ |
217 |
+ if use python; then |
218 |
+ installation() { |
219 |
+ emake -C python \ |
220 |
+ DESTDIR="${D}" \ |
221 |
+ PYTHON_INC="$(python_get_includedir)" \ |
222 |
+ pkgpylibdir="$(python_get_sitedir)/xapian" \ |
223 |
+ VERBOSE="1" \ |
224 |
+ install |
225 |
+ } |
226 |
+ python_foreach_impl installation |
227 |
+ fi |
228 |
+ |
229 |
+ # For some USE combinations this directory is not created |
230 |
+ if [[ -d "${D}/usr/share/doc/xapian-bindings" ]]; then |
231 |
+ mv "${D}/usr/share/doc/xapian-bindings" "${D}/usr/share/doc/${PF}" |
232 |
+ fi |
233 |
+ |
234 |
+ dodoc AUTHORS HACKING NEWS TODO README |
235 |
+} |