# $Header: /magellan-cvs/smage/subversion/subversion-1.4.6-r2.smage2,v 1.1 2008/04/03 18:33:52 niro Exp $ PNAME="subversion" PVER="1.5.5" PBUILD="r1" PCATEGORIE="dev-util" STATE="unstable" DESCRIPTION="subversion - a version control system meant to replace cvs." HOMEPAGE="http://subversion.tigris.org/" DEPEND=">= virtual/glibc >= dev-libs/expat-2 >= dev-libs/libxml2-2.7 >= dev-libs/openssl-0.9.8 >= net-misc/neon-0.28 >= sys-libs/zlib-1.2.3 >= dev-libs/apr-util-1 >= dev-db/db-4.7" SDEPEND=">= dev-lang/swig-1 >= dev-lang/python-2.6 >= dev-lang/perl-5.10 >= dev-lang/ruby-1.8.7" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" # 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.4.5-neon-configure.patch ) UP2DATE="updatecmd ${HOMEPAGE} | grep 'latest release' | sed 's/.* \(.*.\)\..*/\1/'" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # install perl modules to vendor dir mpatch ${PNAME}-1.4.3-perl-vendor.patch || die # fixes neon configure check mpatch ${PNAME}-1.4.5-neon-configure.patch || die # fixes compilation with newer apr mpatch ${PNAME}-1.4.5-apr-cppflags.patch || die autoreconf --install --force || die } src_compile() { export CPPFLAGS="-DSVN_NEON_0_26 -DSVN_NEON_0_25" mconfigure \ --with-apr=/usr/bin/apr-1-config \ --with-apr-util=/usr/bin/apu-1-config \ --with-berkeley-db \ --with-python \ --enable-nls \ --disable-experimental-libtool \ --with-swig \ --with-neon=/usr \ --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() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die # install perl bindings mmake DESTDIR=${BINDIR} install-swig-pl || die # install pods to /usr/share fixlocalpod || die # 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 # install ruby bindings mmake DESTDIR=${BINDIR} install-swig-rb || 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.pl /usr/bin/svn-load-dirs || die }