blob: a63221bd164ef8ff3dd563e28ab3c4ede3155163 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=xapian-bindings
pkgver=1.2.15
pkgrel=1
pkgdesc="Binding libraries for xapian"
url="http://www.xapian.org"
arch="all"
license="GPL"
depends=""
depends_dev="libtool automake autoconf bash \
xapian-core-dev perl-dev lua-dev php-dev \
python-dev ruby-dev tcl-dev"
makedepends="$depends_dev"
install=""
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() {
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/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
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-bindings$pkgver
sh ./configure --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
}
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/20090626/* "$subpkgdir"/usr/lib/php/20090626/
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
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="03833f106b5f681daa73a2bbaadec458 xapian-bindings-1.2.15.tar.gz"
sha256sums="89d30cbd38dcfb9d9e0fccc8e4ba7d6452ffad45afb3f1e9614a3be0a3a33e77 xapian-bindings-1.2.15.tar.gz"
sha512sums="b3733308f0446fa041dcae677b3d3316bd8e775fcd1a1770ca2fab5b60e40463bbbce210cb1161161f6e9f1ff5e5473d38c2dab922b7f4f2705ac165d991c0ec xapian-bindings-1.2.15.tar.gz"
|