subversion: fix errant '-arch ppc' in perl bindings build

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Jeff Clites 2012-07-07 16:10:57 -07:00 committed by Adam Vandenberg
parent feb164243d
commit e55cba00f4
1 changed files with 30 additions and 3 deletions

View File

@ -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",