aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-11-05 20:32:09 -0600
committerJack Nagel2014-11-05 20:37:24 -0600
commit42b51fe10e0377e1f3160869b70817188a95b83c (patch)
treed12878430c5549aff715255827d08762df4494bf /Library
parent1e48879d1a617e8756a1bfb17f6c7c5930797e3d (diff)
downloadhomebrew-42b51fe10e0377e1f3160869b70817188a95b83c.tar.bz2
subversion: combine conditionals
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/subversion.rb24
1 files changed, 14 insertions, 10 deletions
diff --git a/Library/Formula/subversion.rb b/Library/Formula/subversion.rb
index 933e3080c..c772e750b 100644
--- a/Library/Formula/subversion.rb
+++ b/Library/Formula/subversion.rb
@@ -38,20 +38,24 @@ class Subversion < Formula
depends_on 'scons' => :build
depends_on 'openssl'
- # If building bindings, allow non-system interpreters
- env :userpaths if build.include? 'perl' or build.include? 'ruby'
-
# 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
- # were compiled against.
- fails_with :clang do
- build 318
- cause "core.c:1: error: bad value (native) for -march= switch"
- end if build.include? 'perl' or build.include? 'ruby'
+ if build.include? "perl" or build.include? "ruby"
+ # If building bindings, allow non-system interpreters
+ # Currently the serf -> scons dependency forces stdenv, so this isn't
+ # strictly necessary
+ env :userpaths
+
+ # When building Perl or Ruby bindings, need to use a compiler that
+ # recognizes GCC-style switches, since that's what the system languages
+ # were compiled against.
+ fails_with :clang do
+ build 318
+ cause "core.c:1: error: bad value (native) for -march= switch"
+ end
+ end
def install
serf_prefix = libexec+'serf'