aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJeff Clites2012-07-07 16:10:57 -0700
committerAdam Vandenberg2012-07-23 21:26:10 -0700
commit83cfbd634144e2217434d0dfd3ac2ec6c2100412 (patch)
tree16cdc23f469aacb2ab59a94379c63d0976a9e7c4 /Library/Formula
parent00f359b3684458844b368257a9122358f6332a93 (diff)
downloadhomebrew-83cfbd634144e2217434d0dfd3ac2ec6c2100412.tar.bz2
subversion: fix errant '-arch ppc' in perl bindings build
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/subversion.rb33
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",