--- subversion-1.2.3-r3.ebuild 2005-10-21 13:52:57.000000000 +0200 +++ subversion-1.2.3-r4.ebuild 2005-10-21 14:04:20.000000000 +0200 @@ -11,7 +11,7 @@ LICENSE="Apache-1.1" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~sparc ~x86" -IUSE="apache2 berkdb python emacs perl java nls nowebdav zlib" +IUSE="apache2 berkdb python emacs perl java nls nowebdav zlib ruby" RESTRICT="test" # Presently subversion doesn't build with swig-1.3.22, bug 65424 @@ -21,6 +21,8 @@ perl? ( >=dev-lang/swig-1.3.21 >=dev-lang/perl-5.8.6-r6 !=dev-lang/perl-5.8.7 ) + ruby? ( >=dev-lang/swig-1.3.25 + dev-lang/ruby ) !nowebdav? ( ~net-misc/neon-0.24.7 ) berkdb? ( =sys-libs/db-4* ) zlib? ( sys-libs/zlib ) @@ -83,7 +85,7 @@ # use java && myconf="${myconf} $(use_with jikes)" use java && myconf="${myconf} --without-jikes" - if use python || use perl; then + if use python || use perl || use ruby; then myconf="${myconf} --with-swig" else myconf="${myconf} --without-swig" @@ -124,6 +126,10 @@ make swig-pl || die "Perl library building failed" fi + if use ruby; then + make swig-rb || die "Ruby library building failed" + fi + if use java; then # ensure that the destination dir exists, else some compilation fails mkdir -p ${S}/subversion/bindings/java/javahl/classes @@ -173,6 +179,9 @@ make DESTDIR=${D} install-swig-pl || die "Perl library building failed" fixlocalpod fi + if use ruby; then + make DESTDIR=${D} install-swig-rb || die "Installation of subversion ruby bindings failed" + fi if use java; then make DESTDIR="${D}" install-javahl || die "installation failed" fi