# $Id$ PNAME="subversion" PVER="1.6.16" PBUILD="r1" PCATEGORIE="dev-util" STATE="unstable" DESCRIPTION="subversion - a version control system meant to replace cvs." HOMEPAGE="http://subversion.apache.org/" # common deps SDEPEND=">= virtual/glibc >= dev-libs/expat-2 >= dev-libs/libxml2-2.7 >= dev-libs/openssl-1.0.0 >= dev-libs/cyrus-sasl-2.1 >= net-misc/neon-0.29.6 >= sys-libs/zlib-1.2.5 >= dev-libs/apr-util-1.3 >= dev-db/db-5.1 >= dev-db/sqlite-3.7" # split/src deps only SDEPEND="${SDEPEND} >= dev-lang/swig-2 >= dev-lang/python-2.7 >= dev-lang/perl-5.12 >= dev-lang/ruby-1.9" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" SPLIT_PACKAGES="subversion subversion-perl subversion-python subversion-ruby" # include perl as last to have the right postinstall etc sminclude mtools python perl SRC_URI=( http://subversion.tigris.org/downloads/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-1.4.3-perl-vendor.patch mirror://${PNAME}/${PNAME}-1.4.5-apr-cppflags.patch mirror://${PNAME}/${PNAME}-1.6.13-db51.patch ) UP2DATE="updatecmd ${HOMEPAGE}/source-code.html | grep 'best.*version' | sed 's:.*\: \[.*\]\(.*.\):\1:'" split_info_subversion() { DESCRIPTION="subversion - a version control system meant to replace cvs." DEPEND=">= virtual/glibc >= dev-libs/expat-2 >= dev-libs/libxml2-2.7 >= dev-libs/openssl-1.0.0 >= dev-libs/cyrus-sasl-2.1 >= net-misc/neon-0.29.4 >= sys-libs/zlib-1.2.5 >= dev-libs/apr-util-1 >= dev-db/db-5.1 >= dev-db/sqlite-3.7" } split_info_subversion-perl() { DESCRIPTION="subversion bindings for perl." DEPEND="== dev-util/subversion-${PVER} >= dev-lang/perl-5.12" } split_info_subversion-python() { DESCRIPTION="subversion bindings for python." DEPEND="== dev-util/subversion-${PVER} >= dev-lang/python-2.7" } split_info_subversion-ruby() { DESCRIPTION="subversion bindings for ruby." DEPEND="== dev-util/subversion-${PVER} >= dev-lang/ruby-1.9" } src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # install perl modules to vendor dir mpatch ${PNAME}-1.4.3-perl-vendor.patch || die # fixes compilation with newer apr mpatch ${PNAME}-1.4.5-apr-cppflags.patch || die # support db-5.1 mpatch ${PNAME}-1.6.13-db51.patch || die # autoreconf --verbose --install --force || die # run autogen instead of autoreconf to copy newer libtool macros sh autogen.sh || die # fix libtool issues libtoolize --verbose --copy --install --force || die } src_compile() { cd ${SRCDIR} mconfigure \ --with-apr=/usr/bin/apr-1-config \ --with-apr-util=/usr/bin/apu-1-config \ --with-berkeley-db \ --enable-nls \ --disable-experimental-libtool \ --with-swig \ --with-neon \ --without-apxs \ --disable-mod-activation \ --disable-static \ --disable-neon-version-check \ || die ( mmake external-all && make LT_LDFLAGS="-L${BINDIR}/usr/$(mlibdir)" local-all ) || die # perl bindings mmake swig-pl || die # python bindings mmake swig-py || die # ruby bindings mmake swig-rb || die } src_install_subversion() { cd ${SRCDIR} mmake -j1 DESTDIR=${BINDIR} install || die # debian installs these as well minstallexec tools/backup/hot-backup.py /usr/bin/svn-hot-backup || die minstallexec contrib/client-side/svn_load_dirs/svn_load_dirs.pl /usr/bin/svn-load-dirs || die } src_instal_subversion-perl() { cd ${SRCDIR} # install perl bindings mmake DESTDIR=${BINDIR} install-swig-pl || die # install pods to /usr/share fixlocalpod || die } src_install_subversion-python() { cd ${SRCDIR} # get the right python dir PYTHON_DIR=/usr/$(mlibdir)/python$(get_python_version) # install python bindings mmake DESTDIR=${BINDIR} install-swig-py || die # move python-bindings to a proper place minstalldir ${PYTHON_DIR}/site-packages || die mv ${BINDIR}/usr/$(mlibdir)/svn-python/libsvn ${BINDIR}/${PYTHON_DIR}/site-packages || die mv ${BINDIR}/usr/$(mlibdir)/svn-python/svn ${BINDIR}/${PYTHON_DIR}/site-packages || die rm -rf ${BINDIR}/usr/$(mlibdir)/svn-python || die } src_install_subversion-ruby() { cd ${SRCDIR} # install ruby bindings mmake DESTDIR=${BINDIR} install-swig-rb || die }