Commit aeb65f08 authored by Francesco Colista's avatar Francesco Colista
Browse files

testing/xapian-bindings: new aport.Bindings for perl,lua,php.Fixes #1447

parent 0712f738
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=xapian-bindings
pkgver=1.2.12
pkgrel=0
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"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-lua $pkgname-perl $pkgname-php $pkgname-doc"
source="http://www.oligarchy.co.uk/xapian/$pkgver/$pkgname-$pkgver.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
aclocal && autoconf || return 1
libtoolize || return 1
}
build() {
cd "$_builddir"
export LUA=/usr/bin/lua
export LUA_INC=/usr/include
export LUA_LIB=/usr/lib/lua/5.1
export PERL=/usr/bin/perl
export PERL_LIB=/usr/lib/perl5/site_perl
export PERL_ARCH=/usr/lib/perl5/site_perl
export PHP=/usr/bin/php
sh ./configure --prefix=/usr \
--with-perl \
--with-lua \
--with-php \
--without-python \
--without-ruby \
--without-tcl \
XAPIAN_CONFIG=/usr/bin/xapian-config
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR=$pkgdir install
}
php() {
arch="all"
pkgdesc="PHP bindings for the Xapian search engine library"
install -d "$subpkgdir"/usr/share/php5
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/share/php5 "$subpkgdir"/usr/share/
}
perl() {
arch="all"
pkgdesc="Perl bindings for the Xapian search engine library"
install -d "$subpkgdir"/usr/lib/perl5
mv "$pkgdir"/usr/lib/perl5 "$subpkgdir"/usr/lib/
#mv "$pkgdir"/usr/share/perl5 "$subpkgdir"/usr/share/
}
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/
}
md5sums="9331d7885a68470184ba3d3e8c2b57d5 xapian-bindings-1.2.12.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment