Gentoo Archives: gentoo-commits

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