aboutsummaryrefslogtreecommitdiffstats
path: root/testing/xapian-bindings/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2012-10-25 08:11:52 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2012-10-25 08:11:52 +0000
commit26689a8255c2429aa344b3c0c94ea9a9333eb0e4 (patch)
treea5fee03d5848a35a38f333fd71e67235fb082a5c /testing/xapian-bindings/APKBUILD
parentbec67689472c95b34027fe08cec3e34faf044ba3 (diff)
downloadaports-26689a8255c2429aa344b3c0c94ea9a9333eb0e4.tar.gz
aports-26689a8255c2429aa344b3c0c94ea9a9333eb0e4.tar.bz2
aports-26689a8255c2429aa344b3c0c94ea9a9333eb0e4.tar.xz
testing/xapian-bindings: added support for python,ruby and tcl
Diffstat (limited to 'testing/xapian-bindings/APKBUILD')
-rw-r--r--testing/xapian-bindings/APKBUILD54
1 files changed, 44 insertions, 10 deletions
diff --git a/testing/xapian-bindings/APKBUILD b/testing/xapian-bindings/APKBUILD
index c545d8b0fb..fbf416f519 100644
--- a/testing/xapian-bindings/APKBUILD
+++ b/testing/xapian-bindings/APKBUILD
@@ -2,17 +2,19 @@
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=xapian-bindings
pkgver=1.2.12
-pkgrel=0
+pkgrel=1
pkgdesc="Binding libraries for xapian"
url="http://www.xapian.org"
arch="noarch"
license="GPL"
depends=""
depends_dev="libtool automake autoconf bash \
- xapian-core-dev perl-dev lua-dev php-dev"
+ xapian-core-dev perl-dev lua-dev php-dev \
+ python-dev ruby-dev tcl-dev"
makedepends="$depends_dev"
install=""
-subpackages="$pkgname-lua $pkgname-perl $pkgname-php $pkgname-doc"
+subpackages="$pkgname-perl $pkgname-lua $pkgname-php \
+ $pkgname-python $pkgname-ruby $pkgname-tcl $pkgname-doc"
source="http://www.oligarchy.co.uk/xapian/$pkgver/$pkgname-$pkgver.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
@@ -36,14 +38,20 @@ build() {
export PERL_LIB=/usr/lib/perl5/site_perl
export PERL_ARCH=/usr/lib/perl5/site_perl
export PHP=/usr/bin/php
-
+ export PYTHON=/usr/bin/python
+ export PYTHON_LIB=/usr/lib/python2.7/site-packages
+ export RUBY=/usr/bin/ruby
+ export RUBY_LIB=/usr/lib/site_ruby
+ export RUBY_LIB_ARCH=/usr/lib/site_ruby
+ export TCL=/usr/bin/tcl
+ export TCL_LIB=/usr/lib/xapian-bindings1.2.12
sh ./configure --prefix=/usr \
--with-perl \
--with-lua \
--with-php \
- --without-python \
- --without-ruby \
- --without-tcl \
+ --with-python \
+ --with-ruby \
+ --with-tcl \
XAPIAN_CONFIG=/usr/bin/xapian-config
make || return 1
}
@@ -57,9 +65,10 @@ php() {
arch="all"
pkgdesc="PHP bindings for the Xapian search engine library"
install -d "$subpkgdir"/usr/share/php5
+ install -d "$subpkgdir"/usr/lib/php/20090626
echo ';extension=xapian.so' >xapian.ini
install -Dm644 xapian.ini "$subpkgdir/etc/php/conf.d/xapian.ini"
- mv "$pkgdir"/usr/lib/php "$subpkgdir"/usr/lib/
+ mv "$pkgdir"/usr/lib/php/20090626/* "$subpkgdir"/usr/lib/php/20090626/
mv "$pkgdir"/usr/share/php5 "$subpkgdir"/usr/share/
}
@@ -74,7 +83,32 @@ perl() {
lua() {
arch="all"
pkgdesc="Lua bindings for the Xapian search engine library"
- install -d "$subpkgdir"/usr/lib/lua
- mv "$pkgdir"/usr/lib/lua "$subpkgdir"/usr/lib/
+ install -d "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/lua "$subpkgdir"/usr/lib
}
+
+python() {
+ arch="all"
+ pkgdesc="Python bindings for the Xapian search engine library"
+ install -d "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/python2.7 "$subpkgdir"/usr/lib
+}
+
+ruby() {
+ arch="all"
+ pkgdesc="Ruby bindings for the Xapian search engine library"
+ install -d "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/site_ruby "$subpkgdir"/usr/lib
+}
+
+tcl() {
+ arch="all"
+ pkgdesc="Tcl bindings for the Xapian search engine library"
+ install -d "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/$pkgname$pkgver "$subpkgdir"/usr/lib
+}
+
+
+
+
md5sums="9331d7885a68470184ba3d3e8c2b57d5 xapian-bindings-1.2.12.tar.gz"