subversion: tweak formula

This commit is contained in:
FX Coudert 2017-05-06 10:44:45 +02:00 committed by ilovezfs
parent c3c0e90c5b
commit 3f4a1461b8

View file

@ -136,12 +136,6 @@ class Subversion < Formula
if build.with? "perl"
# In theory SWIG can be built in parallel, in practice...
ENV.deparallelize
# Remove hard-coded ppc target, add appropriate ones
if MacOS.version <= :leopard
arches = "-arch #{Hardware::CPU.arch_32_bit}"
else
arches = "-arch #{Hardware::CPU.arch_64_bit}"
end
perl_core = Pathname.new(`perl -MConfig -e 'print $Config{archlib}'`)+"CORE"
unless perl_core.exist?
@ -150,7 +144,7 @@ class Subversion < Formula
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#{perl_core}"
"$(SWIG_INCLUDES) -arch #{MacOS.preferred_arch} -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include -I#{perl_core}"
end
system "make", "swig-pl"
system "make", "install-swig-pl"