aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2010-05-06 09:58:00 -0700
committerAdam Vandenberg2010-05-06 09:58:00 -0700
commitbdee14b6f8de2023560b0a8c842247513075dbd5 (patch)
tree8b97be07a6feee03fd7875132ea4b36d852df64d /Library/Formula
parent63bc05379af907441e97bc07dcce75bc9822b3d3 (diff)
downloadhomebrew-bdee14b6f8de2023560b0a8c842247513075dbd5.tar.bz2
Subversion - enable Java bindings
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/subversion.rb33
1 files changed, 23 insertions, 10 deletions
diff --git a/Library/Formula/subversion.rb b/Library/Formula/subversion.rb
index 5a0cfb0af..1d763b96a 100644
--- a/Library/Formula/subversion.rb
+++ b/Library/Formula/subversion.rb
@@ -12,7 +12,7 @@ class Subversion <Formula
md5 '75419159b50661092c4137449940b5cc'
homepage 'http://subversion.apache.org/'
- aka :svn
+ aka 'svn'
# Only need this on Snow Leopard; for Leopard the deps package
# builds it.
@@ -30,16 +30,29 @@ class Subversion <Formula
# Use existing system zlib
# Use dep-provided other libraries
# Don't mess with Apache modules (since we're not sudo)
- system "./configure", "--disable-debug",
- "--prefix=#{prefix}",
- "--with-ssl",
- "--with-zlib=/usr/lib",
- # use our neon, not OS X's
- "--disable-neon-version-check",
- "--disable-mod-activation",
- "--without-apache-libexecdir",
- "--without-berkeley-db"
+ args = ["--disable-debug",
+ "--prefix=#{prefix}",
+ "--with-ssl",
+ "--with-zlib=/usr/lib",
+ # use our neon, not OS X's
+ "--disable-neon-version-check",
+ "--disable-mod-activation",
+ "--without-apache-libexecdir",
+ "--without-berkeley-db"]
+
+ if ARGV.include? "--java"
+ args << "--enable-javalhl" << "--without-jikes"
+ end
+
+ system "./configure", *args
+
system "make"
system "make install"
+
+ if ARGV.include? "--java"
+ ENV.j1
+ system "make javahl"
+ system "make install-javahl"
+ end
end
end