Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/xapian-bindings: xapian-bindings-1.3.3.ebuild ChangeLog
Date: Wed, 03 Jun 2015 11:45:30
Message-Id: 20150603114525.4B32CA23@oystercatcher.gentoo.org
1 blueness 15/06/03 11:45:25
2
3 Modified: ChangeLog
4 Added: xapian-bindings-1.3.3.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
9
10 Revision Changes Path
11 1.104 dev-libs/xapian-bindings/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/xapian-bindings/ChangeLog?rev=1.104&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/xapian-bindings/ChangeLog?rev=1.104&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/xapian-bindings/ChangeLog?r1=1.103&r2=1.104
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/xapian-bindings/ChangeLog,v
20 retrieving revision 1.103
21 retrieving revision 1.104
22 diff -u -r1.103 -r1.104
23 --- ChangeLog 23 May 2015 15:05:34 -0000 1.103
24 +++ ChangeLog 3 Jun 2015 11:45:25 -0000 1.104
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-libs/xapian-bindings
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/xapian-bindings/ChangeLog,v 1.103 2015/05/23 15:05:34 blueness Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/xapian-bindings/ChangeLog,v 1.104 2015/06/03 11:45:25 blueness Exp $
30 +
31 +*xapian-bindings-1.3.3 (03 Jun 2015)
32 +
33 + 03 Jun 2015; Anthony G. Basile <blueness@g.o>
34 + +xapian-bindings-1.3.3.ebuild:
35 + Version bump
36
37 *xapian-bindings-1.2.21 (23 May 2015)
38
39
40
41
42 1.1 dev-libs/xapian-bindings/xapian-bindings-1.3.3.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/xapian-bindings/xapian-bindings-1.3.3.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/xapian-bindings/xapian-bindings-1.3.3.ebuild?rev=1.1&content-type=text/plain
46
47 Index: xapian-bindings-1.3.3.ebuild
48 ===================================================================
49 # Copyright 1999-2015 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-libs/xapian-bindings/xapian-bindings-1.3.3.ebuild,v 1.1 2015/06/03 11:45:25 blueness Exp $
52
53 EAPI="5"
54
55 PYTHON_DEPEND="python? 2"
56 PYTHON_USE_WITH="threads"
57 SUPPORT_PYTHON_ABIS="1"
58 RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
59
60 USE_PHP="php5-4"
61
62 PHP_EXT_NAME="xapian"
63 PHP_EXT_INI="yes"
64 PHP_EXT_OPTIONAL_USE="php"
65
66 inherit java-pkg-opt-2 mono-env php-ext-source-r2 python
67
68 DESCRIPTION="SWIG and JNI bindings for Xapian"
69 HOMEPAGE="http://www.xapian.org/"
70 SRC_URI="http://oligarchy.co.uk/xapian/${PV}/${P}.tar.xz"
71
72 LICENSE="GPL-2"
73 SLOT="0"
74 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
75 IUSE="java lua mono perl php python ruby tcl"
76 REQUIRED_USE="|| ( java lua mono perl php python ruby tcl )"
77
78 COMMONDEPEND="=dev-libs/xapian-${PV}*
79 lua? ( dev-lang/lua:= )
80 mono? ( >=dev-lang/mono-1.0.8 )
81 perl? ( dev-lang/perl:= )
82 ruby? ( dev-lang/ruby:= )
83 tcl? ( >=dev-lang/tcl-8.1:0= )"
84 DEPEND="${COMMONDEPEND}
85 java? ( >=virtual/jdk-1.3 )"
86 RDEPEND="${COMMONDEPEND}
87 java? ( >=virtual/jre-1.3 )"
88
89 pkg_setup() {
90 mono-env_pkg_setup
91 java-pkg-opt-2_pkg_setup
92
93 if use python; then
94 python_pkg_setup
95 fi
96 }
97
98 src_prepare() {
99 java-pkg-opt-2_src_prepare
100
101 if use python; then
102 sed \
103 -e 's|\(^pkgpylib_DATA = xapian/__init__.py\).*|\1|' \
104 -e '/\s\sxapian\/__init__.pyc/d' \
105 -e '/\s\sxapian\/__init__.pyo/d' \
106 -e 's|\(^xapian/__init__.py: modern/xapian.py\)|\1 xapian/_xapian$(PYTHON_SO)|' \
107 -i python/Makefile.in || die "sed failed"
108 fi
109 }
110
111 src_configure() {
112 if use java; then
113 CXXFLAGS="${CXXFLAGS} $(java-pkg_get-jni-cflags)"
114 fi
115
116 if use perl; then
117 export PERL_ARCH="$(perl -MConfig -e 'print $Config{installvendorarch}')"
118 export PERL_LIB="$(perl -MConfig -e 'print $Config{installvendorlib}')"
119 fi
120
121 if use lua; then
122 export LUA_LIB="$(pkg-config --variable=INSTALL_CMOD lua)"
123 fi
124
125 econf \
126 $(use_with java) \
127 $(use_with lua) \
128 $(use_with mono csharp) \
129 $(use_with perl) \
130 $(use_with php) \
131 $(use_with python) \
132 $(use_with ruby) \
133 $(use_with tcl)
134
135 # Python bindings are built/tested/installed manually.
136 sed -e "/SUBDIRS =/s/ python//" -i Makefile || die "sed Makefile"
137 }
138
139 src_compile() {
140 default
141
142 if use python; then
143 python_copy_sources python
144 building() {
145 emake \
146 PYTHON="$(PYTHON)" \
147 PYTHON_INC="$(python_get_includedir)" \
148 PYTHON_LIB="$(python_get_libdir)" \
149 PYTHON_SO="$("$(PYTHON)" -c 'import distutils.sysconfig; print(distutils.sysconfig.get_config_vars("SO")[0])')" \
150 pkgpylibdir="$(python_get_sitedir)/xapian"
151 }
152 python_execute_function -s --source-dir python building
153 fi
154 }
155
156 src_test() {
157 default
158
159 if use python; then
160 testing() {
161 emake \
162 PYTHON="$(PYTHON)" \
163 PYTHON_INC="$(python_get_includedir)" \
164 PYTHON_LIB="$(python_get_libdir)" \
165 PYTHON_SO="$("$(PYTHON)" -c 'import distutils.sysconfig; print(distutils.sysconfig.get_config_vars("SO")[0])')" \
166 pkgpylibdir="$(python_get_sitedir)/xapian" \
167 VERBOSE="1" \
168 check
169 }
170 python_execute_function -s --source-dir python testing
171 fi
172 }
173
174 src_install () {
175 emake DESTDIR="${D}" install || die "emake install failed"
176
177 if use java; then
178 java-pkg_dojar java/built/xapian_jni.jar
179 # TODO: make the build system not install this...
180 java-pkg_doso "${D}/${S}/java/built/libxapian_jni.so"
181 rm "${D}/${S}/java/built/libxapian_jni.so"
182 rmdir -p "${D}/${S}/java/built"
183 rmdir -p "${D}/${S}/java/native"
184 fi
185
186 if use python; then
187 installation() {
188 emake \
189 DESTDIR="${D}" \
190 PYTHON="$(PYTHON)" \
191 PYTHON_INC="$(python_get_includedir)" \
192 PYTHON_LIB="$(python_get_libdir)" \
193 PYTHON_SO="$("$(PYTHON)" -c 'import distutils.sysconfig; print(distutils.sysconfig.get_config_vars("SO")[0])')" \
194 pkgpylibdir="$(python_get_sitedir)/xapian" \
195 install
196 }
197 python_execute_function -s --source-dir python installation
198 fi
199
200 if use php; then
201 php-ext-source-r2_createinifiles
202 fi
203
204 # For some USE combinations this directory is not created
205 if [[ -d "${D}/usr/share/doc/xapian-bindings" ]]; then
206 mv "${D}/usr/share/doc/xapian-bindings" "${D}/usr/share/doc/${PF}"
207 fi
208
209 dodoc AUTHORS HACKING NEWS TODO README || die "dodoc failed"
210 }
211
212 pkg_postinst() {
213 if use python; then
214 python_mod_optimize xapian
215 fi
216
217 if use php_targets_php5-4; then
218 ewarn "Note: subclassing Xapian classes in PHP currently doesn't work with PHP 5.4"
219 fi
220 }
221
222 pkg_postrm() {
223 if use python; then
224 python_mod_cleanup xapian
225 fi
226 }