summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2014-01-31 13:18:54 +0000
committerAnthony G. Basile <blueness@gentoo.org>2014-01-31 13:18:54 +0000
commitc0fb6d5554858d71dd850f55f89140eb04dc3b91 (patch)
tree0a18215b97a943bcee738c22e0b96d1d54a3c0d0 /dev-libs/xapian-bindings
parentOnly build followupreminderagent and sendlateragent here, rest must go into k... (diff)
downloadhistorical-c0fb6d5554858d71dd850f55f89140eb04dc3b91.tar.gz
historical-c0fb6d5554858d71dd850f55f89140eb04dc3b91.tar.bz2
historical-c0fb6d5554858d71dd850f55f89140eb04dc3b91.zip
Version bump
Package-Manager: portage-2.2.7/cvs/Linux x86_64 Manifest-Sign-Key: 0xF52D4BBA
Diffstat (limited to 'dev-libs/xapian-bindings')
-rw-r--r--dev-libs/xapian-bindings/ChangeLog11
-rw-r--r--dev-libs/xapian-bindings/Manifest34
-rw-r--r--dev-libs/xapian-bindings/xapian-bindings-1.2.16.ebuild64
-rw-r--r--dev-libs/xapian-bindings/xapian-bindings-1.2.17.ebuild170
-rw-r--r--dev-libs/xapian-bindings/xapian-bindings-1.3.1.ebuild7
5 files changed, 226 insertions, 60 deletions
diff --git a/dev-libs/xapian-bindings/ChangeLog b/dev-libs/xapian-bindings/ChangeLog
index ac82482645f6..da24383ebbf7 100644
--- a/dev-libs/xapian-bindings/ChangeLog
+++ b/dev-libs/xapian-bindings/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-libs/xapian-bindings
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/xapian-bindings/ChangeLog,v 1.74 2013/12/05 19:54:43 blueness Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/xapian-bindings/ChangeLog,v 1.75 2014/01/31 13:15:44 blueness Exp $
+
+*xapian-bindings-1.2.17 (31 Jan 2014)
+
+ 31 Jan 2014; Anthony G. Basile <blueness@gentoo.org>
+ +xapian-bindings-1.2.17.ebuild, xapian-bindings-1.2.16.ebuild,
+ xapian-bindings-1.3.1.ebuild:
+ Version bump
*xapian-bindings-1.2.15 (05 Dec 2013)
*xapian-bindings-1.2.16 (05 Dec 2013)
diff --git a/dev-libs/xapian-bindings/Manifest b/dev-libs/xapian-bindings/Manifest
index 431e09f7b9a9..b8f29a4ac2ce 100644
--- a/dev-libs/xapian-bindings/Manifest
+++ b/dev-libs/xapian-bindings/Manifest
@@ -5,28 +5,30 @@ DIST xapian-bindings-1.2.13.tar.gz 1481645 SHA256 bfef8a18303a67f6fb29b09393c2f0
DIST xapian-bindings-1.2.14.tar.gz 1483276 SHA256 a55815ddff0bd5f79814b5964cc94299ecf8f7ebafea11523aa0787f6082e3d7 SHA512 943a99ed19cb0f14435321de25b28ace5c7ad60be819f54fdf86bf161f92b2d2153d92506873b2af5b514403a4b98815db7f6c14a14b37fbd60c765460eb48f0 WHIRLPOOL 845b4f60f0787eaaf039c4f583ab233fd5ac0e1ba8b2cbcdc5bc20c11038f871717da9e8abf381c5bf9b472cbbb7451d08fb74bebf6e8d4999003c020202e6e9
DIST xapian-bindings-1.2.15.tar.gz 1484058 SHA256 89d30cbd38dcfb9d9e0fccc8e4ba7d6452ffad45afb3f1e9614a3be0a3a33e77 SHA512 b3733308f0446fa041dcae677b3d3316bd8e775fcd1a1770ca2fab5b60e40463bbbce210cb1161161f6e9f1ff5e5473d38c2dab922b7f4f2705ac165d991c0ec WHIRLPOOL fdc4a07a487c339faa1d8837ea19c37f9f298b90657312b135f727b9fcf3984b149341cbf96c2ea16f54839b93b7677becb65452619b79e71a5204dcb660265d
DIST xapian-bindings-1.2.16.tar.xz 825868 SHA256 e87ddcd70a5044565e631fb334155f7d66a3b7b491a94a22aa1db2aa0d26af6c SHA512 2c92986d7f678cc17c0608a29ee893bdd3c6a1b00aed12394df32c46311663f8851e7c82685cf43ff7071869dd46f129b47f16f21ce0fae992d07e5780b93286 WHIRLPOOL ccb4ce580188e2a73e2810fdeb125d15aff8feee8cb57a73a00f1f4ff54273496b11dd1add1cddd445dc65179e60b96aae0e3b5e2a0d29626dbc897b3669b48f
+DIST xapian-bindings-1.2.17.tar.xz 827160 SHA256 54ad5d818fa7d6558acbf517a04c78db9fb4c90103eda0a0f9fe9a864683f80a SHA512 4c8348ece62b57c4442e8cb16282b7da2a8ebecaf99eefbb263795c1451f1395c2073ea311df0159e74a4d52029682034926526b17554627cf8e286f328f36a7 WHIRLPOOL dac2c3ff137cb778a2942009f45013cc5eff8d8564b1ed582f4ac6d6e596550853fe5e9362e75dfcf5acda61f71879d9ebfd0f787fd761cb1e065b86e48232a7
DIST xapian-bindings-1.3.1.tar.gz 1562988 SHA256 5c18ce77b08d2fcc738dadbf85448239d714aad27a0833436e32a82c2ff622c4 SHA512 e295ab93fe61e038bb5f95786f80ff36bc9cbc486c4d03e457fabc6efa97e7119411afa3aafd29786ab9237505b03c27fdb5d524fdb43db2c2f3550cd41c7396 WHIRLPOOL f76dcced799116569f5d4f6ba9245045a5fb3c8f7d64672997408fe0c11b72ef7d7ed24a1901d96777ac763d910be6bd378859dd952290bbbcae9dbe6452a2dd
EBUILD xapian-bindings-1.2.13.ebuild 4574 SHA256 21226044f90466082102c2cd08ed8ecab3dfbff2b64121b4cbbba3de9985386a SHA512 cb77629ac668c8e2a6ff1e0a87cb732cc235525253e7249b262474848b202a9cc90950ec55e28e731c7873af67fe7d4221626a3b1c73d837338694ccf1b0764e WHIRLPOOL 1a2d3b3dc559dd7edaa1dc95423e973e66e479b8143ac7a874a713a4728841a3869b9e1eb9159f700a42b9693f696c965d3c7237569f1af2a96208504591a655
EBUILD xapian-bindings-1.2.14.ebuild 4571 SHA256 328fcf61b59b6ffef6d776819c74d5969bc4265561ef061bc80ed2baecc652fc SHA512 ef31bcdf30347dd7ee1917a666967602dc1b3a98f1a42c8e5e0e9ec015c8dfa2ded8f114f7e1e54f8557ea64c8dd198c2fd382874c0e7a16b0d5486fc08d0459 WHIRLPOOL 5ce309104f0375a3060f93a22068fc1e0e4a6626241f437fd33648228fd829ab8a2861d7706eef4f02bfd9d9963ef2922d5a5fd1a6ce37b86b34b118beac32a5
EBUILD xapian-bindings-1.2.15.ebuild 4797 SHA256 ff4459aafd8630122e2e3af0a940865933087889d728cbdc6c46427fc0aae7f0 SHA512 02915ade14f86af3332c19b00d72cab40fa148d03df50c68bb7c77ea883eaba029e7326c743e74b4deb7006ef0fa130362d1c6615310da1a342f962e5727469f WHIRLPOOL ef29878e0cf0805cb58af68d7a8dee7062af8e86ee90c26e94db40f558395f9fd6e544b4858c69c86f32004a5d5f37a1d1415396faac7206e4aa9c1a8c76e83b
-EBUILD xapian-bindings-1.2.16.ebuild 4797 SHA256 a082a2879727dfe9575f69189fd448e9c1964ba1dce9c5a51d9a23fe5ebd016e SHA512 ad23521d95b8edd9b4da07219a8965ea0d8c9cb1d632f6f75cd69daf93d08f2c67d1aa9e3dab44cf78046409f8f7c59010199ab7a2622dcc09ab1006c4f9a81a WHIRLPOOL 487b59e7fd4eac775e382b963cd0707c0a4860370791fdbd42211ead5cbb9a64435bfc5f1d9e243a4286a7dd0857d37a9cd5633617c536bf0ee481102116707c
-EBUILD xapian-bindings-1.3.1.ebuild 4429 SHA256 9519d9d3b23f8735a683ae099966536dc753f48fcab471a75b75ca9263af3c6e SHA512 26c79acd92c006103b48ca32d06ada29372a22112c7529272ef1f8081b30e2d9512a1899f3c4f9fbb6e04422317e02cd94abbe25fe3b5f13d5b165cebae4ec14 WHIRLPOOL 477fd5d049dbf393f7bec363eace4886553017b3c4936a7d78d9ff6be37e6517b6ea260def2ad684c564f54cdefcfaba7e54714d5e7886bbb4b5561e40e26285
-MISC ChangeLog 11863 SHA256 720984427892169816ff5e3d8a1e1184e97bc4d540729dbb8283f21fc17f63e4 SHA512 e44ac2703ed41e817461bb582f7d13277e09de508d75863cc687290f9be2f80e8c8c579fa6ca9a8aefe2f54c4d175eda2bb3754165d1c58242c1e424c8955cd6 WHIRLPOOL adcb527eee5c924b54efa74f31bfe30f77724a709ff9a0da8ac1d210969245ecd280daf4b2ee4e6f67fc9b7889dce6e939a7923b20b63215f940b013573d3acd
+EBUILD xapian-bindings-1.2.16.ebuild 4334 SHA256 19c4c400df8e229e235d11ee441ab40a64d9d7c3a451529d21cad630e0a5cd73 SHA512 bfed63c7fb41dfb7f8f1afbc160372926d137ff6b32377d218ae193036692d524150ee5d003eb0098668f059a47c6be3baa32f0baf81c0982259ed2614edb11f WHIRLPOOL fbfad9b8673e6252be926f1c3f8bf1a5e0c9d6688fe78c8221ea689593a245020eb4b880562581df9e7d98e8b305cb4c5e17c647ae72dd3979fcfc6cd18a6931
+EBUILD xapian-bindings-1.2.17.ebuild 4334 SHA256 1126139d40b692a5c058968686871186df9626ac9bf3c187abd00633757fabd6 SHA512 bc0554529d755c0e92ec28d1d596349348c9ad59ed9349ccd8b9f16286141564454f9bba75afa9e915fbc7ba6005f24f1ccc026b671ed860f98e9bca8f1b73c6 WHIRLPOOL 8dbb50ff50a4930e9681636488ca07d6c3f8bdce5645a043541365cccccba4b4c7acdab9613ec93f329762c3b637c01ad98960c40392a548f7a4de076a5938cb
+EBUILD xapian-bindings-1.3.1.ebuild 4453 SHA256 ba1fc91b22052ae3039b0b0ed2cfbb15d5e62eeb8e71929ea23a6b3bcc97205b SHA512 a2ea58cacb8937c15f31d6cee8e53396cbb68a9bb72b0c2462107a82c9135f3ed434a0c308d21a9752f8fd5e29969e1967e4d11639c974494576c8e31d84cf09 WHIRLPOOL a701e8ca07583e3a6f31018b538395e3b7d3faa14dd009ff8eb2d861619bb8956b7fe32b38a8f4c7909b613e0b598eaf896e4821e4f68386cc2744465e21c2ad
+MISC ChangeLog 12070 SHA256 9f45bcc050fb0c4008812901f97ac0522bd2a2be3242ecff33a70c4e087e9a7a SHA512 f3ba70aeb54416e0a36a99227466bea3ac56de2c25d4d37de2310bd3dd509a2c91695dacae60e0fd6932ff93f096ab0e470f76c2ab5a97d415bfc150eccde552 WHIRLPOOL b29bdd7424ad986c32a62e17802ef8a8d346687a9a1658fc282f849ffc75b411fbab91a58d762a018432648fe742732ca95eacdbe9b04e0ac0411a1d5209bf42
MISC metadata.xml 367 SHA256 e757cf120c1188c0010caaf7449e89deee52d8aa275f4f0c3b9cc0c097d28596 SHA512 e562b4dfbdcf62a3f860cd185dcd5fb2cf4067cb9b6c11c94669027c9cbae94bc437fa63e68b3b982a6bdda624087a60b24a269031fae2f3f975efb3d8e85d44 WHIRLPOOL 1314776082f07f5fdf74d15ad6b5093276b58f47e4dce35c0377e6a7baef0941bf567e43047e4ff80a726e2078d506c9029cd033cba8aeba9110b75cbbffa036
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iQIcBAEBCAAGBQJSoNpaAAoJEJOE+m71LUu6MCwP/A0XY1FHgd3fCkzJPtDvHuxV
-OIyKpYiGASiysagmFzTlgJL1gsvFg84FeKXfKsibkBXbZaQowJpNu7yRgE4jzFqs
-Vrq8QYOOuEoY3xiDv1PCjE0G4DvnbhssMFXXWavDyIQC5Y+YfRsldnRoZrkp8WUK
-jOsWW8l3gHxs9PCZDAGYVh+7vg9oYkYJTHfNIUEbcR95VYqTsTM9tqnlaGj6+IrX
-7Z9bfZYPrqOgWOo0HwqMJmU/tzfwPk77mv9mUdhVOUjGDagnnT8EqItamK/ZPaOq
-WwAtQ427ox8U7xPynTj3qOe5FWE3SwHWZGPIiia13ssu1bN7Pw365CjFnTUdF6Je
-6uTzFdxRW2jn/ZeDAEpAkSIaYZ7kwTchBLZOVAbgh/lvOFAurE/ttDJF8vik0ydQ
-sURJjsAg10k0imv4K2tKGaIO2UDMMK+E0uIrtMGejO9+gvZt3+yOu/0lDoMQBWSP
-iGEXVzaMknybr5QQ1MVQf/KEbPa68xHnLirxCG7yBnnRG14MECDilXxjP4FH0/rb
-p6NzZAKeNjX91Bshm1yfaYwluDp2JogowVX+sGvVhurwcDMHlWymuwBsFgkBznPX
-LKMfMVp8r2uSASzwE9rWr9Ewc1NjB69uH5dTh5TKCW9j02mKiWzjxhCidlOJk6KK
-tp6VXVbozyKcDIbSs2xj
-=e9je
+iQIcBAEBCAAGBQJS66LYAAoJEJOE+m71LUu6bqsQAJG0bGxpoe+Dq+rX6wFaNQBx
+YWqwLvEpcW+SDiEPTpIOFgWHqABqtTl13MO5pHSvRGcLGfkoMnr07eUCenb0Uenx
+uRpKi7uwKTVe8YvPuOD0C7xhERZt6/eWWM6BsUqPluZrJ4uZYKywYkflcMhVooPz
+ZdaIaMDbaxNbRpoxqFli1roYAo8vLrqW+hD6kfJ4ZyXgSzT9ZEJroFJak0kzsU5K
+GSaQXtq3lEaMAicTxIloeF711sQCNC/hoIr8pgkuaef15F54Pf1j0cdRdecJ+KDx
+FdvFzPiDPYjhT3FFXPwsotSyA8yAp8d/rJDEKIUI1LLyndkXTtThRgpLK/0eHf/j
+S9iurUEsoWN2tSaq+kvrKterCt1dKTqJA00dgMx7jZ23wCu/HzfBkh1MSdBCkQxg
+4RSVxKKqRzLIoV51De5ObW2zhyvZk5mtluq7JJrBlFCvSIx0IRQli4jyDScxf7Hp
+2F/BE+lWiKTeCdMtRZ9VJxOo4Tr4bxjjr7FsKlc7+KYCm4lZkbXzggYKRWMfIuFp
+cgJUv82MsEW4/hvnnGzmxsQKO4W6PHXearksEufA87LAeUW8j3wEiWcM67hLbsrQ
+xjUo0VfEqu2kk+GQw9/IFKo5Qwv5CrkHviDoXgdgGdeyozZ0xwdrRUR6XsFewF/v
+RU/bGBIN8B7CCf8CzcKY
+=gJqC
-----END PGP SIGNATURE-----
diff --git a/dev-libs/xapian-bindings/xapian-bindings-1.2.16.ebuild b/dev-libs/xapian-bindings/xapian-bindings-1.2.16.ebuild
index 58f88cdf9a7f..8cc62f64fbd7 100644
--- a/dev-libs/xapian-bindings/xapian-bindings-1.2.16.ebuild
+++ b/dev-libs/xapian-bindings/xapian-bindings-1.2.16.ebuild
@@ -1,13 +1,12 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2014 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.16.ebuild,v 1.1 2013/12/05 19:54:43 blueness Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/xapian-bindings/xapian-bindings-1.2.16.ebuild,v 1.2 2014/01/31 13:15:44 blueness Exp $
EAPI="5"
-PYTHON_DEPEND="python? 2"
-PYTHON_USE_WITH="threads"
-SUPPORT_PYTHON_ABIS="1"
-RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
+PYTHON_COMPAT=( python{2_6,2_7,3_2} )
+PYTHON_REQ_USE="threads"
+USE_PYTHON='2.6 2.7'
USE_PHP="php5-3 php5-4"
@@ -16,8 +15,8 @@ PHP_EXT_INI="yes"
PHP_EXT_OPTIONAL_USE="php"
#mono violates sandbox, we disable it until we figure this out
-#inherit java-pkg-opt-2 mono php-ext-source-r2 python
-inherit java-pkg-opt-2 php-ext-source-r2 python
+#inherit java-pkg-opt-2 mono-env php-ext-source-r2 python
+inherit java-pkg-opt-2 php-ext-source-r2 python-r1
DESCRIPTION="SWIG and JNI bindings for Xapian"
HOMEPAGE="http://www.xapian.org/"
@@ -44,10 +43,6 @@ RDEPEND="${COMMONDEPEND}
pkg_setup() {
java-pkg-opt-2_pkg_setup
-
- if use python; then
- python_pkg_setup
- fi
}
src_prepare() {
@@ -61,7 +56,7 @@ src_prepare() {
if use python; then
sed \
-e 's:\(^pkgpylib_DATA = xapian/__init__.py\).*:\1:' \
- -e 's|\(^xapian/__init__.py: modern/xapian.py\)|\1 xapian/_xapian$(PYTHON_SO)|' \
+ -e 's|\(^xapian/__init__.py: modern/xapian.py\)|\1 xapian/_xapian.so|' \
-i python/Makefile.in || die "sed failed"
fi
}
@@ -98,16 +93,22 @@ src_compile() {
default
if use python; then
- python_copy_sources python
+ python_copy_sources
+# building() {
+# emake -C python \
+# 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"
+# }
building() {
- emake \
- PYTHON="$(PYTHON)" \
+ emake -C 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"
}
- python_execute_function -s --source-dir python building
+ python_foreach_impl building
fi
}
@@ -116,16 +117,13 @@ src_test() {
if use python; then
testing() {
- emake \
- PYTHON="$(PYTHON)" \
+ emake -C 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
+ python_foreach_impl testing
fi
}
@@ -143,16 +141,14 @@ src_install () {
if use python; then
installation() {
- emake \
+ emake -C python \
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" \
+ VERBOSE="1" \
install
}
- python_execute_function -s --source-dir python installation
+ python_foreach_impl installation
fi
if use php; then
@@ -168,17 +164,7 @@ src_install () {
}
pkg_postinst() {
- if use python; then
- python_mod_optimize xapian
- fi
-
if use php_targets_php5-4; then
ewarn "Note: subclassing Xapian classes in PHP currently doesn't work with PHP 5.4"
fi
}
-
-pkg_postrm() {
- if use python; then
- python_mod_cleanup xapian
- fi
-}
diff --git a/dev-libs/xapian-bindings/xapian-bindings-1.2.17.ebuild b/dev-libs/xapian-bindings/xapian-bindings-1.2.17.ebuild
new file mode 100644
index 000000000000..8456a5e4649e
--- /dev/null
+++ b/dev-libs/xapian-bindings/xapian-bindings-1.2.17.ebuild
@@ -0,0 +1,170 @@
+# Copyright 1999-2014 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.17.ebuild,v 1.1 2014/01/31 13:15:44 blueness Exp $
+
+EAPI="5"
+
+PYTHON_COMPAT=( python{2_6,2_7,3_2} )
+PYTHON_REQ_USE="threads"
+USE_PYTHON='2.6 2.7'
+
+USE_PHP="php5-3 php5-4"
+
+PHP_EXT_NAME="xapian"
+PHP_EXT_INI="yes"
+PHP_EXT_OPTIONAL_USE="php"
+
+#mono violates sandbox, we disable it until we figure this out
+#inherit java-pkg-opt-2 mono-env php-ext-source-r2 python
+inherit java-pkg-opt-2 php-ext-source-r2 python-r1
+
+DESCRIPTION="SWIG and JNI bindings for Xapian"
+HOMEPAGE="http://www.xapian.org/"
+SRC_URI="http://oligarchy.co.uk/xapian/${PV}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+#IUSE="java lua mono perl php python ruby tcl"
+#REQUIRED_USE="|| ( java lua mono perl php python ruby tcl )"
+IUSE="java lua perl php python ruby tcl"
+REQUIRED_USE="|| ( java lua perl php python ruby tcl )"
+
+COMMONDEPEND="=dev-libs/xapian-${PV}*
+ lua? ( >=dev-lang/lua-5.1 )
+ perl? ( dev-lang/perl )
+ ruby? ( dev-lang/ruby )
+ tcl? ( >=dev-lang/tcl-8.1 )"
+# mono? ( >=dev-lang/mono-1.0.8 )
+DEPEND="${COMMONDEPEND}
+ java? ( >=virtual/jdk-1.3 )"
+RDEPEND="${COMMONDEPEND}
+ java? ( >=virtual/jre-1.3 )"
+
+pkg_setup() {
+ java-pkg-opt-2_pkg_setup
+}
+
+src_prepare() {
+ java-pkg-opt-2_src_prepare
+ if use java; then
+ sed \
+ -e 's/$(JAVAC)/$(JAVAC) $(JAVACFLAGS)/' \
+ -i java{/,/org/xapian/errors/,/org/xapian/}Makefile.in || die "sed failed"
+ fi
+
+ if use python; then
+ sed \
+ -e 's:\(^pkgpylib_DATA = xapian/__init__.py\).*:\1:' \
+ -e 's|\(^xapian/__init__.py: modern/xapian.py\)|\1 xapian/_xapian.so|' \
+ -i python/Makefile.in || die "sed failed"
+ fi
+}
+
+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
+
+ if use lua; then
+ export LUA_LIB="$(pkg-config --variable=INSTALL_CMOD lua)"
+ fi
+
+ econf \
+ $(use_with java) \
+ $(use_with lua) \
+ $(use_with perl) \
+ $(use_with php) \
+ $(use_with python) \
+ $(use_with ruby) \
+ $(use_with tcl)
+# $(use_with mono csharp) \
+
+ # Python bindings are built/tested/installed manually.
+ sed -e "/SUBDIRS =/s/ python//" -i Makefile || die "sed Makefile"
+}
+
+src_compile() {
+ default
+
+ if use python; then
+ python_copy_sources
+# building() {
+# emake -C python \
+# 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"
+# }
+ building() {
+ emake -C python \
+ PYTHON_INC="$(python_get_includedir)" \
+ pkgpylibdir="$(python_get_sitedir)/xapian"
+ VERBOSE="1"
+ }
+ python_foreach_impl building
+ fi
+}
+
+src_test() {
+ default
+
+ if use python; then
+ testing() {
+ emake -C python \
+ PYTHON_INC="$(python_get_includedir)" \
+ pkgpylibdir="$(python_get_sitedir)/xapian" \
+ VERBOSE="1" \
+ check
+ }
+ python_foreach_impl 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 -C python \
+ DESTDIR="${D}" \
+ PYTHON_INC="$(python_get_includedir)" \
+ pkgpylibdir="$(python_get_sitedir)/xapian" \
+ VERBOSE="1" \
+ install
+ }
+ python_foreach_impl 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 php_targets_php5-4; then
+ ewarn "Note: subclassing Xapian classes in PHP currently doesn't work with PHP 5.4"
+ fi
+}
diff --git a/dev-libs/xapian-bindings/xapian-bindings-1.3.1.ebuild b/dev-libs/xapian-bindings/xapian-bindings-1.3.1.ebuild
index feb71766bf0d..52f5d826d090 100644
--- a/dev-libs/xapian-bindings/xapian-bindings-1.3.1.ebuild
+++ b/dev-libs/xapian-bindings/xapian-bindings-1.3.1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2014 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.3.1.ebuild,v 1.2 2013/08/11 00:58:20 blueness Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/xapian-bindings/xapian-bindings-1.3.1.ebuild,v 1.3 2014/01/31 13:15:44 blueness Exp $
EAPI="5"
@@ -15,7 +15,7 @@ PHP_EXT_NAME="xapian"
PHP_EXT_INI="yes"
PHP_EXT_OPTIONAL_USE="php"
-inherit java-pkg-opt-2 mono php-ext-source-r2 python
+inherit java-pkg-opt-2 mono-env php-ext-source-r2 python
DESCRIPTION="SWIG and JNI bindings for Xapian"
HOMEPAGE="http://www.xapian.org/"
@@ -39,6 +39,7 @@ RDEPEND="${COMMONDEPEND}
java? ( >=virtual/jre-1.3 )"
pkg_setup() {
+ mono-env_pkg_setup
java-pkg-opt-2_pkg_setup
if use python; then