### this file is sourced not run
PKGVER=1.9.3
PKGBUILD=1
PKGARCH=x86_64

# source: post BLFS 7.8 2016-01-06
TARBALL=subversion-$PKGVER.tar.bz2
MD5SUM=243036eb28b50ce517fc228eb3250add
SRC_URL=http://archive.apache.org/dist/subversion/$TARBALL
BUNDLE=

SLACKREQ='libapr-util sqlite3 libserf openssl' # swig build-time only
SLACKDESC="subversion: subversion $PKGVER (Version control system)  
subversion:  
subversion: Subversion is a version control system that is designed to be a 
subversion: compelling replacement for CVS in the open source community. It 
subversion: extends and enhances CVS feature set, while maintaining a similar 
subversion: interface for those already familiar with CVS. These instructions 
subversion: install the client and server software used to manipulate a 
subversion: Subversion repository. Creation of a repository is covered at 
subversion: Running a Subversion Server.  
subversion: 
subversion:
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/subversion*
	
	CONFFLAGS="$CONFFLAGS --disable-static --with-apache-libexecdir --with-serf=/usr"
	pkg_build_autoconf &&
	
	# perl bindings - disable if swig not installed
	make swig-pl && 
	make install-swig-pl && 
		
	# python bindings - disable if swig not installed
	# james note: this doesn't work, gives up its ghost when trying to make install-swig-py
	#make swig-py \
	#	swig_pydir=/usr/$LIBDIR/python2.7/site-packages/libsvn \
	#	swig_pydir_extra=/usr/$LIBDIR/python2.7/site-packages/svn && 
	#make install-swig-py && 
		
	#doxygen doc/doxygen.conf &&
	install -v -m755 -d /usr/share/doc/subversion-$PKGVER &&
	cp      -v -R       doc/* \
						/usr/share/doc/subversion-$PKGVER &&
	pkg_build_slackdesc
}
