aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-08-13 10:00:39 -0500
committerJack Nagel2012-08-13 10:00:39 -0500
commitc6a3dfcc3e80ce4db460acdc4e8c0cd35e16e7c8 (patch)
tree733189a63eff191f16c9f50fb2e4b749134baeaa /Library
parent78011a1de7c5312d65c0012e50584434fe6b803b (diff)
downloadhomebrew-c6a3dfcc3e80ce4db460acdc4e8c0cd35e16e7c8.tar.bz2
python3: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/python3.rb8
1 files changed, 2 insertions, 6 deletions
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|