From e454140e0cf55e6361b3f607a755512f2fdca91e Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 25 Jul 2013 22:23:33 -0500 Subject: subversion: style --- Library/Formula/subversion.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/subversion.rb b/Library/Formula/subversion.rb index f74c3e483..45945d9b2 100644 --- a/Library/Formula/subversion.rb +++ b/Library/Formula/subversion.rb @@ -27,7 +27,7 @@ class Subversion < Formula depends_on :libtool if build.include? 'ruby' # If building bindings, allow non-system interpreters - env :userpaths if (build.include? 'perl') or (build.include? 'ruby') + env :userpaths if build.include? 'perl' or build.include? 'ruby' def patches ps = [] @@ -48,7 +48,7 @@ class Subversion < Formula 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') + end if build.include? 'perl' or build.include? 'ruby' def apr_bin superbin or "/usr/bin" @@ -79,7 +79,7 @@ class Subversion < Formula puts " brew install subversion --universal --java" end - unless (ENV["JAVA_HOME"] or "").empty? + ENV.fetch('JAVA_HOME') do opoo "JAVA_HOME is set. Try unsetting it if JNI headers cannot be found." end end -- cgit v1.2.3