From c6a3dfcc3e80ce4db460acdc4e8c0cd35e16e7c8 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 13 Aug 2012 10:00:39 -0500 Subject: python3: use options DSL Signed-off-by: Jack Nagel --- Library/Formula/python3.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'Library/Formula/python3.rb') diff --git a/Library/Formula/python3.rb b/Library/Formula/python3.rb index 8b43709d2..edd30fdbe 100644 --- a/Library/Formula/python3.rb +++ b/Library/Formula/python3.rb @@ -42,11 +42,7 @@ class Python3 < Formula depends_on 'gdbm' => :optional depends_on :x11 # tk.h includes X11/Xlib.h and X11/X.h - def options - [ - ["--quicktest", "Run `make quicktest` after build. Takes some minutes."] - ] - end + option 'quicktest', 'Run `make quicktest` after the build' # Skip binaries so modules will load; skip lib because it is mostly Python files skip_clean ['bin', 'lib'] @@ -94,7 +90,7 @@ class Python3 < Formula ENV.deparallelize # Installs must be serialized # Tell Python not to install into /Applications (default for framework builds) system "make", "install", "PYTHONAPPSDIR=#{prefix}" - system "make", "quicktest" if ARGV.include? "--quicktest" + system "make", "quicktest" if build.include? "quicktest" # Any .app get a " 3" attached, so it does not conflict with python 2.x. Dir.glob(prefix/"*.app").each do |app| -- cgit v1.2.3