aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorGraham Hughes2010-08-16 14:23:10 -0700
committerDavid Höppner2010-09-01 18:03:56 +0200
commitf4f61f8ce3333e5cc35e0b9595319f20a0ef302f (patch)
treea78cb5bf6c218ca8f2fa78482a75fd80b784a864 /Library/Formula
parent9aca5165d7a1560b70ee12eceb745f192634b18e (diff)
downloadhomebrew-f4f61f8ce3333e5cc35e0b9595319f20a0ef302f.tar.bz2
Build the Ruby bindings.
Signed-off-by: David Höppner <0xffea@gmail.com> * remove testing leftovers
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/subversion.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Formula/subversion.rb b/Library/Formula/subversion.rb
index 4679c8e6f..d72e801a8 100644
--- a/Library/Formula/subversion.rb
+++ b/Library/Formula/subversion.rb
@@ -3,6 +3,7 @@ require 'formula'
def build_java?; ARGV.include? "--java"; end
def build_perl?; ARGV.include? "--perl"; end
def build_python?; ARGV.include? "--python"; end
+def build_ruby?; ARGV.include? "--ruby"; end
def build_universal?; ARGV.include? '--universal'; end
def with_unicode_path?; ARGV.include? '--unicode-path'; end
@@ -27,6 +28,7 @@ class Subversion <Formula
['--java', 'Build Java bindings.'],
['--perl', 'Build Perl bindings.'],
['--python', 'Build Python bindings.'],
+ ['--ruby', 'Build Ruby bindings.'],
['--universal', 'Build as a Universal Intel binary.'],
['--unicode-path', 'Include support for OS X unicode (but see caveats!)']
]
@@ -79,6 +81,7 @@ class Subversion <Formula
"--without-berkeley-db"]
args << "--enable-javahl" << "--without-jikes" if build_java?
+ args << "--with-ruby-sitedir=#{prefix}/lib/ruby" if build_ruby?
args << "--with-unicode-path" if with_unicode_path?
system "./configure", *args
@@ -113,6 +116,12 @@ class Subversion <Formula
system "make javahl"
system "make install-javahl"
end
+
+ if build_ruby?
+ ENV.j1
+ system "make swig-rb"
+ system "make install-swig-rb"
+ end
end
def patches
@@ -145,6 +154,14 @@ class Subversion <Formula
EOS
end
+ if build_ruby?
+ s += <<-EOS.undent
+ You may need to add the Ruby bindings to your RUBYLIB from:
+ #{HOMEBREW_PREFIX}/lib/ruby
+
+ EOS
+ end
+
if build_java?
s += <<-EOS.undent
You may need to link the Java bindings into the Java Extensions folder: