diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2015-01-09 12:39:15 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2015-01-09 13:05:50 +0000 |
commit | 74736b45eb429d0c51006430ad3bcb60f1ed8e92 (patch) | |
tree | d9b2bb943cea4be084ea45b092c897feff24c6fa /main/xapian-bindings | |
parent | b86dbc04a7247a9538c12f92088098f3d07d9d64 (diff) | |
download | aports-74736b45eb429d0c51006430ad3bcb60f1ed8e92.tar.bz2 aports-74736b45eb429d0c51006430ad3bcb60f1ed8e92.tar.xz |
testing/xapian-bindings: moved to main
Diffstat (limited to 'main/xapian-bindings')
-rw-r--r-- | main/xapian-bindings/APKBUILD | 118 |
1 files changed, 118 insertions, 0 deletions
diff --git a/main/xapian-bindings/APKBUILD b/main/xapian-bindings/APKBUILD new file mode 100644 index 0000000000..30385216a9 --- /dev/null +++ b/main/xapian-bindings/APKBUILD @@ -0,0 +1,118 @@ +# Contributor: Francesco Colista <francesco.colista@gmail.com> +# Maintainer: Francesco Colista <francesco.colista@gmail.com> +pkgname=xapian-bindings +pkgver=1.2.19 +pkgrel=5 +pkgdesc="Binding libraries for xapian" +url="http://www.xapian.org" +arch="all" +license="GPL2+" +depends="" +depends_dev="bash xapian-core-dev perl-dev lua5.2-dev + php-dev php-cli python-dev ruby-dev tcl-dev" +makedepends="$depends_dev automake autoconf libtool" +install="" +subpackages="$pkgname-perl $pkgname-lua $pkgname-php $pkgname-doc + $pkgname-python $pkgname-ruby $pkgname-tcl" +source="http://www.oligarchy.co.uk/xapian/$pkgver/$pkgname-$pkgver.tar.xz" + +_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 + autoreconf -fvi || return 1 +} + +build() { + cd "$_builddir" + export LUA=/usr/bin/lua5.2 + export LUA_INC=/usr/include/lua5.2 + export LUA_LIB=/usr/lib/lua/5.2 + export LUA_SO=.so + export PERL=/usr/bin/perl + export PERL_LIB=/usr/share/perl5/vendor_perl + export PERL_ARCH=/usr/share/perl5/vendor_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 TCLSH=/usr/bin/tclsh8.6 + export TCL_LIB=/usr/lib/tcl8.6/$pkgname-$pkgver + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --with-perl \ + --with-lua \ + --with-php \ + --with-python \ + --with-ruby \ + --with-tcl \ + XAPIAN_CONFIG=/usr/bin/xapian-config + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR=$pkgdir install || return 1 +} + +php() { + arch="all" + pkgdesc="PHP bindings for the Xapian search engine library" + install -d "$subpkgdir"/usr/share/php5 \ + "$subpkgdir"/usr/lib/php/modules \ + "$subpkgdir"/etc/php/conf.d || return 1 + echo ';extension=xapian.so' > "$subpkgdir/etc/php/conf.d/xapian.ini" \ + || return 1 + mv "$pkgdir"/usr/lib/php/modules/* "$subpkgdir"/usr/lib/php/modules/ + mv "$pkgdir"/usr/share/php5 "$subpkgdir"/usr/share/ +} + +perl() { + arch="all" + pkgdesc="Perl bindings for the Xapian search engine library" + install -d "$subpkgdir"/usr/share/perl5 + 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 + 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/tcl8.6 + mv "$pkgdir"/usr/lib/tcl8.6/$pkgname-$pkgver "$subpkgdir"/usr/lib/tcl8.6 +} + +md5sums="d473b5493567eb8363d96f1e20721c90 xapian-bindings-1.2.19.tar.xz" +sha256sums="3b9434c6144cc347783175c92829f304e86919bbbd44f51b7b4a7148960cde17 xapian-bindings-1.2.19.tar.xz" +sha512sums="ac72ec35ae3b767e04e848a9782b41d74e99b6b1f795d5096373911ff549b3bf2e602a91ed0e5f7dce2e43e1dd308af710719e5a80c6a179393aac4af316de30 xapian-bindings-1.2.19.tar.xz" |