summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/xapian-bindings')
-rw-r--r--dev-libs/xapian-bindings/ChangeLog8
-rw-r--r--dev-libs/xapian-bindings/Manifest22
-rw-r--r--dev-libs/xapian-bindings/xapian-bindings-1.2.7.ebuild155
3 files changed, 169 insertions, 16 deletions
diff --git a/dev-libs/xapian-bindings/ChangeLog b/dev-libs/xapian-bindings/ChangeLog
index a7d090c86818..caa83fa9b85c 100644
--- a/dev-libs/xapian-bindings/ChangeLog
+++ b/dev-libs/xapian-bindings/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-libs/xapian-bindings
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/xapian-bindings/ChangeLog,v 1.20 2011/07/01 21:27:01 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/xapian-bindings/ChangeLog,v 1.21 2011/09/15 12:13:07 blueness Exp $
+
+*xapian-bindings-1.2.7 (15 Sep 2011)
+
+ 15 Sep 2011; Anthony G. Basile <blueness@gentoo.org>
+ +xapian-bindings-1.2.7.ebuild:
+ Version bump, bug #383047
01 Jul 2011; Markos Chandras <hwoarang@gentoo.org>
-xapian-bindings-1.2.4.ebuild:
diff --git a/dev-libs/xapian-bindings/Manifest b/dev-libs/xapian-bindings/Manifest
index d182204a3d6b..1599d71088be 100644
--- a/dev-libs/xapian-bindings/Manifest
+++ b/dev-libs/xapian-bindings/Manifest
@@ -1,24 +1,16 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA512
+Hash: SHA256
DIST xapian-bindings-1.2.5.tar.gz 1334636 RMD160 e7de918437ee5ba88bf67a9b64da7f760b0c6580 SHA1 ff9528d094396b3b58bd32a263211c783af034f2 SHA256 0d723af62b8d633cd49fdf92058a4985061659454b390c0c08db05fa4f7fb09c
+DIST xapian-bindings-1.2.7.tar.gz 1447683 RMD160 f8b1d05a35a304f6e41246ee2c9ba7aab07bb321 SHA1 79e9f0b01f1af3440d10d00469dbe248784ffa1c SHA256 c9f63ad7a032c260f0617e029327d7b05dd986d91af401032268a9f7b2eabde8
EBUILD xapian-bindings-1.2.5.ebuild 3294 RMD160 5f758ddd3ffca158edccfbbb49ffc134602edfd0 SHA1 bea00745fdaf00c8f3d93060f63fb511737df5fe SHA256 955147fdd8cef9f30e775e80bfdd33b223ee9bea5f38f9f5cfc9b54447aa35f8
-MISC ChangeLog 4536 RMD160 c8210b671761fcfacf9c776dc2c9d1b7c2638774 SHA1 70fcb1d65281689e260c2b1f2236fb7c41d40e75 SHA256 b188d6e9af0a47352d9daffa69d9b5ac4364adb8735a681306c48c9a092e2a2a
+EBUILD xapian-bindings-1.2.7.ebuild 3915 RMD160 e323b7b7c5874423c03b0a471ed99fb3347e1ef8 SHA1 76ddf8d4c9f4f5ccee3d04ef7748fe0e378ed699 SHA256 20d3023a3f55f2661a724c43450fa31280ab21fc143544d96381fe6bb24b9d12
+MISC ChangeLog 4691 RMD160 642738912525560c0eecccc2cb504d2f290fd2d1 SHA1 641fc5d0649de3117d18eb490e9ce99c50b2db79 SHA256 0a66296bf8df9ee8dcb8cd02968da216697bc4639529a6c8e61e95189d3f60b0
MISC metadata.xml 160 RMD160 e730f96ab97c5be577a6d6d05f04990374a0dffb SHA1 2aa5e6be9c265c0e7bceb78ee9fd20df5f818e36 SHA256 6cd954a9de2307c57d32b25fa3599dee2908a4ddc6a98594f593d53577307a3a
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
-iQIcBAEBCgAGBQJODjuoAAoJEPqDWhW0r/LCJZsQAKh8xlXz+MO9ZfEZrHGoyLfV
-nC1xd+z9Dg2EDg88p3FFLnQ/ZpzoRvODRRUEq89ZKLA2pXSJ0hmmV88ms2NzEeZU
-5P7s3uqM2cqCSuOEJcHrnYXEEq7kRpVMp9K4LbEd7GWRI+T598I9rWTMULYVVFP8
-62U2w9d8Pm8eHfJ32JZWcWDQURn+JNEw/IxHFfBalyZptz7MHUopT7HLSTi7BPWE
-TEuxthVLT4SYwagJK5Q3PDO/DzpAMRiM5G0gwTcCDSsw434nyKRrK/YwqeCbZ+oK
-mizkBPNARduDe/1rJJ37RftIsdJhcWhzF/lrhtoCMs93x2TflGLFDlmMwoXLHKQL
-+g9dhMmkbKllhwOXxeu9NbjDu+G89PR8OYYTv2K2Rw2jiaq49vy/snmGsAa7vMGQ
-6eTkGfIZwRdmMZU5EF8TzwTro7/ozbrm4/LGRBBgx4SXsrQ59KdxER/VBNGFm+xt
-WPUltDMyMlqp1AJWCURnwfxp9p+tSUJmDyxSiAaZziHQXK66v/n/Swhr3MSkTlOM
-CukNs65WHyxFXMoGZDn1fcFtkB+4rPqK13jxPdC2fxg1dX9aJ9xfn6kNFh8zF49y
-0kUMOKAiIeVUiDo6szwUKsUjzn1+YiYJ7LWFhzCeDzMBEjJNWXw4vYHDpfr3ts9P
-T4SmQUHm+8jLdd7W12Up
-=Mngn
+iEYEAREIAAYFAk5x6+AACgkQl5yvQNBFVTU7MQCgmuUnWJFLstcgm33zgpeDmfv4
+B0MAn0TaDvgfjsIuOy7dqopSpnESJfrh
+=cIqe
-----END PGP SIGNATURE-----
diff --git a/dev-libs/xapian-bindings/xapian-bindings-1.2.7.ebuild b/dev-libs/xapian-bindings/xapian-bindings-1.2.7.ebuild
new file mode 100644
index 000000000000..ebdbd21881f7
--- /dev/null
+++ b/dev-libs/xapian-bindings/xapian-bindings-1.2.7.ebuild
@@ -0,0 +1,155 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/xapian-bindings/xapian-bindings-1.2.7.ebuild,v 1.1 2011/09/15 12:13:07 blueness Exp $
+
+EAPI="3"
+PYTHON_DEPEND="python? 2"
+PYTHON_USE_WITH="threads"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.* *-jython"
+
+PHP_EXT_NAME="xapian"
+PHP_EXT_INI="yes"
+
+inherit java-pkg-opt-2 mono php-ext-source-r2 python
+
+DESCRIPTION="SWIG and JNI bindings for Xapian"
+HOMEPAGE="http://www.xapian.org/"
+SRC_URI="http://oligarchy.co.uk/xapian/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="java lua mono perl php python ruby tcl"
+
+COMMONDEPEND="=dev-libs/xapian-${PV}*
+ lua? ( >=dev-lang/lua-5.1 )
+ mono? ( >=dev-lang/mono-1.0.8 )
+ perl? ( dev-lang/perl )
+ php? ( >=dev-lang/php-5 )
+ ruby? ( dev-lang/ruby )
+ tcl? ( >=dev-lang/tcl-8.1 )"
+DEPEND="${COMMONDEPEND}
+ python? ( >=dev-lang/swig-1.3.29-r1 )
+ java? ( >=virtual/jdk-1.3 )"
+RDEPEND="${COMMONDEPEND}
+ java? ( >=virtual/jre-1.3 )"
+
+pkg_setup() {
+ if use python; then
+ python_pkg_setup
+ fi
+}
+
+src_prepare() {
+ sed \
+ -e 's:\(^pkgpylib_DATA = xapian/__init__.py\).*:\1:' \
+ -e 's|\(^xapian/__init__.py: modern/xapian.py\)|\1 xapian/_xapian$(PYTHON_SO)|' \
+ -i python/Makefile.{am,in} || die "sed failed"
+}
+
+src_configure() {
+ if use java; then
+ CXXFLAGS="${CXXFLAGS} $(java-pkg_get-jni-cflags)"
+ fi
+
+ if use perl; then
+ export PERL_ARCH="$(perl -MConfig -e 'print $Config{installvendorarch}')"
+ export PERL_LIB="$(perl -MConfig -e 'print $Config{installvendorlib}')"
+ fi
+
+ econf \
+ $(use_with java) \
+ $(use_with lua) \
+ $(use_with mono csharp) \
+ $(use_with perl) \
+ $(use_with php) \
+ $(use_with python) \
+ $(use_with ruby) \
+ $(use_with tcl)
+}
+
+src_compile() {
+ default
+
+ if use python; then
+ python_copy_sources python
+ building() {
+ emake \
+ PYTHON="$(PYTHON)" \
+ PYTHON_INC="$(python_get_includedir)" \
+ PYTHON_LIB="$(python_get_libdir)" \
+ PYTHON_SO="$("$(PYTHON)" -c 'import distutils.sysconfig; print(distutils.sysconfig.get_config_vars("SO")[0])')" \
+ pkgpylibdir="$(python_get_sitedir)/xapian"
+ }
+ python_execute_function -s --source-dir python building
+ fi
+}
+
+src_test() {
+ default
+
+ if use python; then
+ testing() {
+ emake \
+ PYTHON="$(PYTHON)" \
+ PYTHON_INC="$(python_get_includedir)" \
+ PYTHON_LIB="$(python_get_libdir)" \
+ PYTHON_SO="$("$(PYTHON)" -c 'import distutils.sysconfig; print(distutils.sysconfig.get_config_vars("SO")[0])')" \
+ pkgpylibdir="$(python_get_sitedir)/xapian" \
+ VERBOSE="1" \
+ check
+ }
+ python_execute_function -s --source-dir python testing
+ fi
+}
+
+src_install () {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ if use java; then
+ java-pkg_dojar java/built/xapian_jni.jar
+ # TODO: make the build system not install this...
+ java-pkg_doso "${D}/${S}/java/built/libxapian_jni.so"
+ rm "${D}/${S}/java/built/libxapian_jni.so"
+ rmdir -p "${D}/${S}/java/built"
+ rmdir -p "${D}/${S}/java/native"
+ fi
+
+ if use python; then
+ installation() {
+ emake \
+ DESTDIR="${D}" \
+ PYTHON="$(PYTHON)" \
+ PYTHON_INC="$(python_get_includedir)" \
+ PYTHON_LIB="$(python_get_libdir)" \
+ PYTHON_SO="$("$(PYTHON)" -c 'import distutils.sysconfig; print(distutils.sysconfig.get_config_vars("SO")[0])')" \
+ pkgpylibdir="$(python_get_sitedir)/xapian" \
+ install
+ }
+ python_execute_function -s --source-dir python installation
+ fi
+
+ if use php; then
+ php-ext-source-r2_createinifiles
+ fi
+
+ # For some USE combinations this directory is not created
+ if [[ -d "${D}/usr/share/doc/xapian-bindings" ]]; then
+ mv "${D}/usr/share/doc/xapian-bindings" "${D}/usr/share/doc/${PF}"
+ fi
+
+ dodoc AUTHORS HACKING NEWS TODO README || die "dodoc failed"
+}
+
+pkg_postinst() {
+ if use python; then
+ python_mod_optimize xapian
+ fi
+}
+
+pkg_postrm() {
+ if use python; then
+ python_mod_cleanup xapian
+ fi
+}