aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/subversion.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2010-09-17 17:13:54 -0700
committerAdam Vandenberg2010-09-17 17:13:54 -0700
commitc99b3aca44e4a48b7c1a8faadc5efe603ac5a100 (patch)
treed31839c6ed7f080a28697dd054f6819d924cbf5b /Library/Formula/subversion.rb
parentb34bd5041c6525afe9d1b6b5f44c3c6f3a66bfdf (diff)
downloadhomebrew-c99b3aca44e4a48b7c1a8faadc5efe603ac5a100.tar.bz2
Fix Subversion + Perl compile on 10.5 [mkroehnert]
Diffstat (limited to 'Library/Formula/subversion.rb')
-rw-r--r--Library/Formula/subversion.rb11
1 files changed, 9 insertions, 2 deletions
diff --git a/Library/Formula/subversion.rb b/Library/Formula/subversion.rb
index b55228cbd..f6cde54c6 100644
--- a/Library/Formula/subversion.rb
+++ b/Library/Formula/subversion.rb
@@ -104,8 +104,15 @@ class Subversion <Formula
arches = "-arch x86_64"
end
+ # Use verison-appropriate system Perl
+ if MACOS_VERSION < 10.6
+ perl_version = "5.8.8"
+ else
+ perl_version = "5.10.0"
+ end
+
inreplace "Makefile" do |s|
- s.change_make_var! "SWIG_PL_INCLUDES", "$(SWIG_INCLUDES) #{arches} -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include -I/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE"
+ s.change_make_var! "SWIG_PL_INCLUDES", "$(SWIG_INCLUDES) #{arches} -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include -I/System/Library/Perl/#{perl_version}/darwin-thread-multi-2level/CORE"
end
system "make swig-pl"
system "make install-swig-pl"
@@ -118,7 +125,7 @@ class Subversion <Formula
end
if build_ruby?
- ENV.j1
+ ENV.j1 # This build isn't parallel safe
system "make swig-rb"
system "make install-swig-rb"
end