aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2012-10-27 08:36:08 -0700
committerAdam Vandenberg2012-10-27 08:36:08 -0700
commit48ee59aa80bc6c8825bc4ec5637dab78b77f5e17 (patch)
tree848c7f7612a2fc9b5e018676e05043c46b35f004 /Library/Formula
parent1bb9690191418e20fbab274bfd5c6c5c5c79c5af (diff)
downloadhomebrew-48ee59aa80bc6c8825bc4ec5637dab78b77f5e17.tar.bz2
boost149: fix audit warning
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/boost149.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/Library/Formula/boost149.rb b/Library/Formula/boost149.rb
index 2ff063c6b..715e73700 100644
--- a/Library/Formula/boost149.rb
+++ b/Library/Formula/boost149.rb
@@ -1,9 +1,5 @@
require 'formula'
-def needs_universal_python?
- ARGV.build_universal? and not ARGV.include? "--without-python"
-end
-
class UniversalPython < Requirement
def message; <<-EOS.undent
A universal build was requested, but Python is not a universal build
@@ -29,7 +25,7 @@ class Boost149 < Formula
option 'without-python', 'Build without Python'
option 'with-icu', 'Build regexp engine with icu support'
- depends_on UniversalPython.new if needs_universal_python?
+ depends_on UniversalPython.new if build.universal? and not build.include? "without-python"
depends_on "icu4c" if build.include? "with-icu"
fails_with :llvm do