--- subversion-1.1.1-r3.ebuild.orig 2005-02-25 10:59:07.818966096 +0200 +++ subversion-1.1.1-r3.ebuild 2005-02-25 11:00:15.627657608 +0200 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-util/subversion/subversion-1.1.1-r3.ebuild,v 1.14 2005/02/24 01:42:35 vapier Exp $ -inherit elisp-common libtool python eutils bash-completion +inherit elisp-common libtool python eutils bash-completion perl-module DESCRIPTION="A compelling replacement for CVS" HOMEPAGE="http://subversion.tigris.org/" @@ -122,6 +122,7 @@ fi if use python; then + einfo "Building python bindings" # Building fails without the apache apr-util as includes are wrong. if use apache2; then emake swig-py || die "subversion python bindings failed" @@ -131,12 +132,14 @@ fi if use perl; then + einfo "Building Perl bindings" # Work around a buggy Makefile.PL, bug 64634 mkdir -p subversion/bindings/swig/perl/native/blib/arch/auto/SVN/{_Client,_Delta,_Fs,_Ra,_Repos,_Wc} make swig-pl || die "Perl library building failed" fi if use java; then + einfo "Building Java bindings" # ensure that the destination dir exists, else some compilation fails mkdir -p ${S}/subversion/bindings/java/javahl/classes # Compile javahl @@ -144,7 +147,7 @@ fi if use emacs; then - einfo "compiling emacs support" + einfo "Compiling Emacs support" elisp-compile ${S}/contrib/client-side/psvn/psvn.el || die "emacs modules failed" elisp-compile ${S}/contrib/client-side/vc-svn.el || die "emacs modules failed" fi @@ -173,6 +176,7 @@ dobin svn-config if use python; then + einfo "Installing Python bindings" make install-swig-py DESTDIR=${D} DISTUTIL_PARAM=--prefix=${D} LD_LIBRARY_PATH="-L${D}/usr/lib" || die "Installation of subversion python bindings failed" # move python bindings @@ -182,9 +186,13 @@ rmdir ${D}/usr/lib/svn-python fi if use perl; then - make DESTDIR=${D} install-swig-pl || die "Perl library building failed" + einfo "Installing Perl bindings" + myinst="DESTDIR=${D}" + mytargets="install-swig-pl" + perl-module_src_install || die "perl module failed to install" fi if use java; then + einfo "Installing Java bindings" make DESTDIR="${D}" install-javahl || die "installation failed" fi @@ -263,6 +271,7 @@ } pkg_postinst() { + use perl > /dev/null && updatepod use emacs >/dev/null && elisp-site-regen einfo "Subversion Server Notes" @@ -309,6 +318,7 @@ } pkg_postrm() { + has_version dev-lang/perl && updatepod has_version virtual/emacs && elisp-site-regen }