aboutsummaryrefslogtreecommitdiffstats
path: root/community/xapian-bindings
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-07-12 12:51:25 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-07-12 12:51:25 +0000
commitafc1f73bb8eb322322687be55baeb1211e52a85b (patch)
tree0898fd847b5d4919b4921aa6035e31a29ae721ab /community/xapian-bindings
parent41b8f3500cf4282490948d859f3f1dd47e596370 (diff)
downloadaports-afc1f73bb8eb322322687be55baeb1211e52a85b.tar.bz2
aports-afc1f73bb8eb322322687be55baeb1211e52a85b.tar.xz
community/xapian-bindings: moved from main
Diffstat (limited to 'community/xapian-bindings')
-rw-r--r--community/xapian-bindings/APKBUILD124
1 files changed, 124 insertions, 0 deletions
diff --git a/community/xapian-bindings/APKBUILD b/community/xapian-bindings/APKBUILD
new file mode 100644
index 0000000000..3f711f40ef
--- /dev/null
+++ b/community/xapian-bindings/APKBUILD
@@ -0,0 +1,124 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+_php="php5"
+pkgname=xapian-bindings
+pkgver=1.4.0
+pkgrel=0
+pkgdesc="Binding libraries for xapian"
+url="http://www.xapian.org"
+arch="all"
+license="GPL2+"
+depends=""
+makedepends="automake autoconf libtool bash
+ xapian-core-dev
+ perl-dev
+ lua5.2-dev
+ ${_php}-dev ${_php}-cli
+ python-dev py-sphinx-autobuild
+ ruby-dev ruby ruby-rdoc ruby-irb
+ tcl-dev"
+subpackages="$pkgname-perl $pkgname-lua $pkgname-doc
+ $pkgname-php $pkgname-python $pkgname-ruby $pkgname-tcl"
+install=""
+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_INC=/usr/include/ruby-2.3.0
+ export RUBY_LIB=/usr/lib/ruby
+ export RUBY_LIB_ARCH=/usr/lib/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/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="0fdb09b6976da3546fef50d4ccbb75f8 xapian-bindings-1.4.0.tar.xz"
+sha256sums="3aec7a009d0bf0b95968420bf68683176c05d63140eaf1cf265d39afe8fa6253 xapian-bindings-1.4.0.tar.xz"
+sha512sums="16523be4f2cd576819771e387d469c91cd03b27522808eebc9275ac3281e55c5d40a5c620ad37f96c2dbc89cc2b13808579e29d737eb63584b8c209597b0f7ce xapian-bindings-1.4.0.tar.xz"