# $Id$ PNAME="subversion" PVER="1.8.11" PBUILD="r2" PCAT="dev-util" DESCRIPTION="subversion - a version control system meant to replace cvs." HOMEPAGE="http://subversion.apache.org/" SUBVERSION_DEPEND=">= virtual/glibc >= dev-libs/expat-2 >= dev-libs/libxml2-2.9 >= dev-libs/openssl-1.0.1k >= dev-libs/cyrus-sasl-2.1.26 >= net-misc/neon-0.30 >= sys-libs/zlib-1.2.8 >= dev-libs/apr-util-1.5 >= dev-db/db-6.0 >= dev-db/sqlite-3.8" SUBVERSION_PERL_DEPEND=">= dev-lang/perl-5.20.1" SUBVERSION_PYTHON_DEPEND=">= dev-lang/python-2.7" SUBVERSION_RUBY_DEPEND=">= dev-lang/ruby-2.0" SDEPEND="${SUBVERSION_DEPEND} ${SUBVERSION_PERL_DEPEND} ${SUBVERSION_PYTHON_DEPEND} ${SUBVERSION_RUBY_DEPEND} >= dev-lang/swig-2" 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 rpath python perl SRC_URI=( http://apache.org/dist/${PNAME}/${SRCFILE} http://archive.apache.org/dist/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-1.4.3-perl-vendor.patch mirror://${PNAME}/${PNAME}-1.4.5-apr-cppflags.patch ) UP2DATE="updatecmd 'http://apache.org/dist/subversion/?C=N;O=A' | highesttarball" split_info_subversion() { DESCRIPTION="subversion - a version control system meant to replace cvs." DEPEND="${SUBVERSION_DEPEND}" } split_info_subversion-perl() { DESCRIPTION="subversion bindings for perl." DEPEND="== dev-util/subversion-${PVER} ${SUBVERSION_PERL_DEPEND}" } split_info_subversion-python() { DESCRIPTION="subversion bindings for python." DEPEND="== dev-util/subversion-${PVER} ${SUBVERSION_PYTHON_DEPEND}" } split_info_subversion-ruby() { DESCRIPTION="subversion bindings for ruby." DEPEND="== dev-util/subversion-${PVER} ${SUBVERSION_RUBY_DEPEND}" } 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 # fix libtool issues mlibtoolize || die # run autogen instead of mautoreconf to copy newer libtool macros sh autogen.sh || 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-bdb6 \ --enable-nls \ --with-swig \ --without-apxs \ --disable-mod-activation \ --disable-static \ --without-gnome-keyring \ --without-kwallet \ || die # no external all target in >= 1.8 #( mmake external-all && make LT_LDFLAGS="-L${BINDIR}/usr/$(mlibdir)" local-all ) || die 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_install_subversion-perl() { cd ${SRCDIR} # install perl bindings mmake DESTDIR=${BINDIR} install-swig-pl || die # install pods to /usr/share fixlocalpod || die # remove insecure rpath mdeleterpath || die } src_install_subversion-python() { cd ${SRCDIR} # install python bindings mmake DESTDIR=${BINDIR} install-swig-py || die # move python-bindings to a proper place minstalldir $(mget-python-libdir) || die mv ${BINDIR}/usr/$(mlibdir)/svn-python/libsvn ${BINDIR}/$(mget-python-libdir) || die mv ${BINDIR}/usr/$(mlibdir)/svn-python/svn ${BINDIR}/$(mget-python-libdir) || 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 }