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.2.18.ebuild ChangeLog
Date: Mon, 23 Jun 2014 10:34:30
Message-Id: 20140623103424.C81042004E@flycatcher.gentoo.org
1 blueness 14/06/23 10:34:24
2
3 Modified: ChangeLog
4 Added: xapian-bindings-1.2.18.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
9
10 Revision Changes Path
11 1.76 dev-libs/xapian-bindings/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/xapian-bindings/ChangeLog?rev=1.76&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/xapian-bindings/ChangeLog?rev=1.76&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/xapian-bindings/ChangeLog?r1=1.75&r2=1.76
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/xapian-bindings/ChangeLog,v
20 retrieving revision 1.75
21 retrieving revision 1.76
22 diff -u -r1.75 -r1.76
23 --- ChangeLog 31 Jan 2014 13:15:44 -0000 1.75
24 +++ ChangeLog 23 Jun 2014 10:34:24 -0000 1.76
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-libs/xapian-bindings
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/xapian-bindings/ChangeLog,v 1.75 2014/01/31 13:15:44 blueness Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/xapian-bindings/ChangeLog,v 1.76 2014/06/23 10:34:24 blueness Exp $
30 +
31 +*xapian-bindings-1.2.18 (23 Jun 2014)
32 +
33 + 23 Jun 2014; Anthony G. Basile <blueness@g.o>
34 + +xapian-bindings-1.2.18.ebuild:
35 + Version bump
36
37 *xapian-bindings-1.2.17 (31 Jan 2014)
38
39
40
41
42 1.1 dev-libs/xapian-bindings/xapian-bindings-1.2.18.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/xapian-bindings/xapian-bindings-1.2.18.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/xapian-bindings/xapian-bindings-1.2.18.ebuild?rev=1.1&content-type=text/plain
46
47 Index: xapian-bindings-1.2.18.ebuild
48 ===================================================================
49 # Copyright 1999-2014 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.2.18.ebuild,v 1.1 2014/06/23 10:34:24 blueness Exp $
52
53 EAPI="5"
54
55 PYTHON_COMPAT=( python{2_6,2_7,3_2} )
56 PYTHON_REQ_USE="threads"
57 USE_PYTHON='2.6 2.7'
58
59 USE_PHP="php5-3 php5-4"
60
61 PHP_EXT_NAME="xapian"
62 PHP_EXT_INI="yes"
63 PHP_EXT_OPTIONAL_USE="php"
64
65 #mono violates sandbox, we disable it until we figure this out
66 #inherit java-pkg-opt-2 mono-env php-ext-source-r2 python
67 inherit java-pkg-opt-2 php-ext-source-r2 python-r1
68
69 DESCRIPTION="SWIG and JNI bindings for Xapian"
70 HOMEPAGE="http://www.xapian.org/"
71 SRC_URI="http://oligarchy.co.uk/xapian/${PV}/${P}.tar.xz"
72
73 LICENSE="GPL-2"
74 SLOT="0"
75 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
76 #IUSE="java lua mono perl php python ruby tcl"
77 #REQUIRED_USE="|| ( java lua mono perl php python ruby tcl )"
78 IUSE="java lua perl php python ruby tcl"
79 REQUIRED_USE="|| ( java lua perl php python ruby tcl )"
80
81 COMMONDEPEND="=dev-libs/xapian-${PV}*
82 lua? ( >=dev-lang/lua-5.1 )
83 perl? ( dev-lang/perl )
84 ruby? ( dev-lang/ruby )
85 tcl? ( >=dev-lang/tcl-8.1 )"
86 # mono? ( >=dev-lang/mono-1.0.8 )
87 DEPEND="${COMMONDEPEND}
88 java? ( >=virtual/jdk-1.3 )"
89 RDEPEND="${COMMONDEPEND}
90 java? ( >=virtual/jre-1.3 )"
91
92 pkg_setup() {
93 java-pkg-opt-2_pkg_setup
94 }
95
96 src_prepare() {
97 java-pkg-opt-2_src_prepare
98 if use java; then
99 sed \
100 -e 's/$(JAVAC)/$(JAVAC) $(JAVACFLAGS)/' \
101 -i java{/,/org/xapian/errors/,/org/xapian/}Makefile.in || die "sed failed"
102 fi
103
104 if use python; then
105 sed \
106 -e 's:\(^pkgpylib_DATA = xapian/__init__.py\).*:\1:' \
107 -e 's|\(^xapian/__init__.py: modern/xapian.py\)|\1 xapian/_xapian.so|' \
108 -i python/Makefile.in || die "sed failed"
109 fi
110 }
111
112 src_configure() {
113 if use java; then
114 CXXFLAGS="${CXXFLAGS} $(java-pkg_get-jni-cflags)"
115 fi
116
117 if use perl; then
118 export PERL_ARCH="$(perl -MConfig -e 'print $Config{installvendorarch}')"
119 export PERL_LIB="$(perl -MConfig -e 'print $Config{installvendorlib}')"
120 fi
121
122 if use lua; then
123 export LUA_LIB="$(pkg-config --variable=INSTALL_CMOD lua)"
124 fi
125
126 econf \
127 $(use_with java) \
128 $(use_with lua) \
129 $(use_with perl) \
130 $(use_with php) \
131 $(use_with python) \
132 $(use_with ruby) \
133 $(use_with tcl)
134 # $(use_with mono csharp) \
135
136 # Python bindings are built/tested/installed manually.
137 sed -e "/SUBDIRS =/s/ python//" -i Makefile || die "sed Makefile"
138 }
139
140 src_compile() {
141 default
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 python; then
167 testing() {
168 emake -C python \
169 PYTHON_INC="$(python_get_includedir)" \
170 pkgpylibdir="$(python_get_sitedir)/xapian" \
171 VERBOSE="1" \
172 check
173 }
174 python_foreach_impl testing
175 fi
176 }
177
178 src_install () {
179 emake DESTDIR="${D}" install || die "emake install failed"
180
181 if use java; then
182 java-pkg_dojar java/built/xapian_jni.jar
183 # TODO: make the build system not install this...
184 java-pkg_doso "${D}/${S}/java/built/libxapian_jni.so"
185 rm "${D}/${S}/java/built/libxapian_jni.so"
186 rmdir -p "${D}/${S}/java/built"
187 rmdir -p "${D}/${S}/java/native"
188 fi
189
190 if use python; then
191 installation() {
192 emake -C python \
193 DESTDIR="${D}" \
194 PYTHON_INC="$(python_get_includedir)" \
195 pkgpylibdir="$(python_get_sitedir)/xapian" \
196 VERBOSE="1" \
197 install
198 }
199 python_foreach_impl installation
200 fi
201
202 if use php; then
203 php-ext-source-r2_createinifiles
204 fi
205
206 # For some USE combinations this directory is not created
207 if [[ -d "${D}/usr/share/doc/xapian-bindings" ]]; then
208 mv "${D}/usr/share/doc/xapian-bindings" "${D}/usr/share/doc/${PF}"
209 fi
210
211 dodoc AUTHORS HACKING NEWS TODO README || die "dodoc failed"
212 }
213
214 pkg_postinst() {
215 if use php_targets_php5-4; then
216 ewarn "Note: subclassing Xapian classes in PHP currently doesn't work with PHP 5.4"
217 fi
218 }