contrib/subversion-python/Pkgfile

37 lines
1015 B
Plaintext
Raw Normal View History

2006-11-19 22:26:53 +01:00
# Description: Python bindings for subversion.
# URL: http://subversion.tigris.org
# Packager: Johannes Winkelmann <jw@tks6.net>
2007-01-20 03:21:06 +01:00
# Maintainer: James Mills, prologic at shortcircuit dot net dot au
2006-11-15 17:47:42 +01:00
#
2006-11-19 22:26:53 +01:00
# Depends on: subversion, swig
2006-11-14 00:01:22 +01:00
name=subversion-python
2007-03-24 08:41:55 +01:00
version=1.4.3
2006-11-14 00:01:22 +01:00
release=1
source=(http://subversion.tigris.org/tarballs/subversion-$version.tar.bz2)
2006-11-15 17:47:42 +01:00
PYTHONVERSION=`python -c "import sys; print \"%s.%s\" % (sys.version_info[0], sys.version_info[1]);"`
2006-11-14 00:01:22 +01:00
build() {
2006-11-19 22:26:53 +01:00
cd subversion-$version
LDFLAGS="-L$PKG/usr/lib" \
./configure \
--prefix=/usr \
--disable-nls \
--with-neon=/usr \
--disable-mod-activation \
--with-apr=/usr \
--with-apr-util=/usr
2006-11-14 00:01:22 +01:00
2006-11-19 22:26:53 +01:00
make && make DESTDIR=$PKG install-swig-py-lib install-swig-py
install -d $PKG/usr/lib/python$PYTHONVERSION/site-packages/
mv \
$PKG/usr/lib/svn-python/{svn,libsvn} \
$PKG/usr/lib/python$PYTHONVERSION/site-packages/
2006-11-14 00:01:22 +01:00
2006-11-19 22:26:53 +01:00
rm -r $PKG/usr/lib/svn-python
chown -R root:root $PKG
2006-11-14 00:01:22 +01:00
}