diff options
| author | Jack Nagel | 2014-11-05 00:27:04 -0600 | 
|---|---|---|
| committer | Jack Nagel | 2014-11-05 00:27:49 -0600 | 
| commit | 4a56f344bd1756c7218c547aa8b1d287d4a3ac54 (patch) | |
| tree | 907e1417127cbee1aa2ad4ef2fae50a194482088 /Library/Formula/subversion.rb | |
| parent | 9cafa0c81080ecfaef4ce1fa959f98d79e290e05 (diff) | |
| download | homebrew-4a56f344bd1756c7218c547aa8b1d287d4a3ac54.tar.bz2 | |
subversion: remove autotools bootstrap, refresh patches
Diffstat (limited to 'Library/Formula/subversion.rb')
| -rw-r--r-- | Library/Formula/subversion.rb | 55 | 
1 files changed, 22 insertions, 33 deletions
diff --git a/Library/Formula/subversion.rb b/Library/Formula/subversion.rb index 041deb53f..25f365e06 100644 --- a/Library/Formula/subversion.rb +++ b/Library/Formula/subversion.rb @@ -25,9 +25,6 @@ class Subversion < Formula    end    depends_on "pkg-config" => :build -  depends_on "autoconf" => :build -  depends_on "automake" => :build -  depends_on "libtool" => :build    # Always build against Homebrew versions instead of system versions for consistency.    depends_on 'sqlite' @@ -43,9 +40,9 @@ class Subversion < Formula    # If building bindings, allow non-system interpreters    env :userpaths if build.include? 'perl' or build.include? 'ruby' -  # 1. Prevent '-arch ppc' from being pulled in from Perl's $Config{ccflags} -  # 2. Fix #23993 by stripping flags swig can't handle from SWIG_CPPFLAGS -  patch :p0, :DATA +  # Fix #23993 by stripping flags swig can't handle from SWIG_CPPFLAGS +  # Prevent '-arch ppc' from being pulled in from Perl's $Config{ccflags} +  patch :DATA    # When building Perl or Ruby bindings, need to use a compiler that    # recognizes GCC-style switches, since that's what the system languages @@ -133,8 +130,7 @@ class Subversion < Formula      inreplace 'Makefile.in',                'toolsdir = @bindir@/svn-tools',                'toolsdir = @libexecdir@/svn-tools' -    # Suggestion by upstream. http://svn.haxx.se/users/archive-2013-09/0188.shtml -    system "./autogen.sh" +      system "./configure", *args      system "make"      system "make install" @@ -231,18 +227,28 @@ class Subversion < Formula  end  __END__ - -Patch 1 - ---- subversion/bindings/swig/perl/native/Makefile.PL.in~     2014-01-18 05:04:18.000000000 +0100 -+++ subversion/bindings/swig/perl/native/Makefile.PL.in      2014-08-15 18:37:33.000000000 +0200 -@@ -76,10 +76,15 @@ +diff --git a/configure b/configure +index 445251b..3ed9485 100755 +--- a/configure ++++ b/configure +@@ -25205,6 +25205,8 @@ fi + SWIG_CPPFLAGS="$CPPFLAGS" +  +   SWIG_CPPFLAGS=`echo "$SWIG_CPPFLAGS" | $SED -e 's/-no-cpp-precomp //'` ++  SWIG_CPPFLAGS=`echo "$SWIG_CPPFLAGS" | $SED -e 's/-F\/[^ ]* //'` ++  SWIG_CPPFLAGS=`echo "$SWIG_CPPFLAGS" | $SED -e 's/-isystem\/[^ ]* //'` +  +  +  +diff --git a/subversion/bindings/swig/perl/native/Makefile.PL.in b/subversion/bindings/swig/perl/native/Makefile.PL.in +index a60430b..bd9b017 100644 +--- a/subversion/bindings/swig/perl/native/Makefile.PL.in ++++ b/subversion/bindings/swig/perl/native/Makefile.PL.in +@@ -76,10 +76,13 @@ my $apr_ldflags = '@SVN_APR_LIBS@'   chomp $apr_shlib_path_var;  +my $config_ccflags = $Config{ccflags}; -+# remove any -arch arguments, since those -+# we want will already be in $cflags  +$config_ccflags =~ s/-arch\s+\S+//g;  +   my %config = ( @@ -253,20 +259,3 @@ Patch 1       INC  => join(' ', $includes, $cppflags,                    " -I$swig_srcdir/perl/libsvn_swig_perl",                    " -I$svnlib_srcdir/include", - - -Patch 2 - ---- configure.ac   2014-08-15 19:15:23.000000000 +0200 -+++ configure.ac        2014-08-15 19:15:45.000000000 +0200 -@@ -1442,6 +1442,10 @@ - # Need to strip '-no-cpp-precomp' from CPPFLAGS for SWIG as well. - SWIG_CPPFLAGS="$CPPFLAGS" - SVN_STRIP_FLAG(SWIG_CPPFLAGS, [-no-cpp-precomp ]) -+# Swig don't understand "-F" and "-isystem" flags added by Homebrew, -+# so filter them out. -+SVN_STRIP_FLAG(SWIG_CPPFLAGS, [-F\/[[^ ]]* ]) -+SVN_STRIP_FLAG(SWIG_CPPFLAGS, [-isystem\/[[^ ]]* ]) - AC_SUBST([SWIG_CPPFLAGS]) -  - dnl Since this is used only on Unix-y systems, define the path separator as '/'  | 
