diff options
| author | Adam Vandenberg | 2013-04-19 09:05:43 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-04-19 09:07:20 -0700 |
| commit | 179516f3353589496c49c044263d4c6c10a8acc7 (patch) | |
| tree | dd323cf0e2ab7a5de44467386612a3c5a2fc9670 /Library/Formula | |
| parent | d5e14fd1f696ba86c9ad8af5c02c70896383ae51 (diff) | |
| download | homebrew-179516f3353589496c49c044263d4c6c10a8acc7.tar.bz2 | |
subversion: building bindings triggers user paths
Closes #15393.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/subversion.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Library/Formula/subversion.rb b/Library/Formula/subversion.rb index 5801fd965..c062fcda4 100644 --- a/Library/Formula/subversion.rb +++ b/Library/Formula/subversion.rb @@ -6,6 +6,10 @@ def build_python?; build.include? "python"; end def build_ruby?; build.include? "ruby"; end def with_unicode_path?; build.include? "unicode-path"; end +def find_interpreters? + build_perl? || build_python? || build_ruby? +end + class Subversion < Formula homepage 'http://subversion.apache.org/' url 'http://www.apache.org/dyn/closer.cgi?path=subversion/subversion-1.7.9.tar.bz2' @@ -28,6 +32,9 @@ class Subversion < Formula # Building Ruby bindings requires libtool depends_on :libtool if build_ruby? + # If building bindings, allow non-system interpreters + env :userpaths if find_interpreters? + def patches ps = [] @@ -52,7 +59,7 @@ class Subversion < Formula fails_with :clang do build 318 cause "core.c:1: error: bad value (native) for -march= switch" - end if build_perl? or build_python? or build_ruby? + end if find_interpreters? def apr_bin superbin or "/usr/bin" |
