diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/subversion.rb | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/Library/Formula/subversion.rb b/Library/Formula/subversion.rb index be7fc2d8e..7bc6fd0a2 100644 --- a/Library/Formula/subversion.rb +++ b/Library/Formula/subversion.rb @@ -92,11 +92,20 @@ class Subversion < Formula end def patches + ps = [] + # Patch for Subversion handling of OS X UTF-8-MAC filename. if with_unicode_path? - { :p0 => - "https://raw.github.com/gist/1900750/4888cafcf58f7355e2656fe192a77e2b6726e338/patch-path.c.diff" - } + ps << "https://raw.github.com/gist/3044094/1648c28f6133bcbb68b76b42669b0dc237c02dba/patch-path.c.diff" + end + + # Patch to prevent '-arch ppc' from being pulled in from Perl's $Config{ccflags} + if build_perl? + ps << DATA + end + + unless ps.empty? + { :p0 => ps } end end @@ -234,3 +243,21 @@ class Subversion < Formula return s.empty? ? nil : s end end +__END__ +--- subversion/bindings/swig/perl/native/Makefile.PL.in~ 2011-07-16 04:47:59.000000000 -0700 ++++ subversion/bindings/swig/perl/native/Makefile.PL.in 2012-06-27 17:45:57.000000000 -0700 +@@ -57,10 +57,13 @@ + + chomp $apr_shlib_path_var; + ++my $config_ccflags = $Config{ccflags}; ++$config_ccflags =~ s/-arch\s+\S+//g; # remove any -arch arguments, since the ones we want will already be in $cflags ++ + my %config = ( + ABSTRACT => 'Perl bindings for Subversion', + DEFINE => $cppflags, +- CCFLAGS => join(' ', $cflags, $Config{ccflags}), ++ CCFLAGS => join(' ', $cflags, $config_ccflags), + INC => join(' ',$apr_cflags, $apu_cflags, + " -I$swig_srcdir/perl/libsvn_swig_perl", + " -I$svnlib_srcdir/include", |
