diff options
| author | Jack Nagel | 2012-08-13 09:36:11 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-13 09:36:11 -0500 |
| commit | eb11ee7196e260598739f4d79ef32423d4afbbf4 (patch) | |
| tree | 6d60c87b1b736982a9210d453c6298d26eee1e24 /Library/Formula | |
| parent | df75ac61e03fb6c7e48407fa4ffe6a44bc0f4961 (diff) | |
| download | homebrew-eb11ee7196e260598739f4d79ef32423d4afbbf4.tar.bz2 | |
x3270: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/x3270.rb | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/Library/Formula/x3270.rb b/Library/Formula/x3270.rb index 7bb7ed193..525006027 100644 --- a/Library/Formula/x3270.rb +++ b/Library/Formula/x3270.rb @@ -5,14 +5,10 @@ class X3270 < Formula url 'http://sourceforge.net/projects/x3270/files/x3270/3.3.12ga10/suite3270-3.3.12ga10-src.tgz' sha1 '582bb7f3f3523e08404cc8eff80860efd7a79e1b' - def options - [ - ["--with-c3270", "Include c3270 (curses-based version)"], - ["--with-s3270", "Include s3270 (displayless version)"], - ["--with-tcl3270", "Include tcl3270 (integrated with Tcl)"], - ["--with-pr3287", "Include pr3287 (printer emulation)"] - ] - end + option 'with-c3270', 'Include c3270 (curses-based version)' + option 'with-s3270', 'Include s3270 (displayless version)' + option 'with-tcl3270', 'Include tcl3270 (integrated with Tcl)' + option 'with-pr3287', 'Include pr3287 (printer emulation)' def make_directory(directory) cd directory do @@ -25,9 +21,9 @@ class X3270 < Formula def install make_directory 'x3270-3.3' - make_directory 'c3270-3.3' if ARGV.include? "--with-c3270" - make_directory 'pr3287-3.3' if ARGV.include? "--with-pr3287" - make_directory 's3270-3.3' if ARGV.include? "--with-s3270" - make_directory 'tcl3270-3.3' if ARGV.include? "--with-tcl3270" + make_directory 'c3270-3.3' if build.include? "with-c3270" + make_directory 'pr3287-3.3' if build.include? "with-pr3287" + make_directory 's3270-3.3' if build.include? "with-s3270" + make_directory 'tcl3270-3.3' if build.include? "with-tcl3270" end end |
