diff options
| author | Jack Nagel | 2012-08-13 09:57:00 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-13 09:57:40 -0500 |
| commit | 0f1643525ab4e296c6349061f2ca13c3eb4c6cd4 (patch) | |
| tree | b53982ddf963f57d565b4909a4d0bef3e2960ed0 /Library | |
| parent | 68cfdd0ba487b88dbb7d4cb4d84f3887062234cd (diff) | |
| download | homebrew-0f1643525ab4e296c6349061f2ca13c3eb4c6cd4.tar.bz2 | |
gnu-units: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/gnu-units.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Formula/gnu-units.rb b/Library/Formula/gnu-units.rb index e6b93f922..f37474f59 100644 --- a/Library/Formula/gnu-units.rb +++ b/Library/Formula/gnu-units.rb @@ -6,13 +6,11 @@ class GnuUnits < Formula mirror 'http://ftp.gnu.org/gnu/units/units-2.00.tar.gz' sha1 '6da9ea78ff0dc21bc43cf1809c530e61d9394ce0' - def options - [['--default-names', "Do NOT prepend 'g' to the binary; will override system utils."]] - end + option 'default-names', "Do not prepend 'g' to the binary" def install args = ["--prefix=#{prefix}"] - args << "--program-prefix=g" unless ARGV.include? '--default-names' + args << "--program-prefix=g" unless build.include? 'default-names' system "./configure", *args system "make install" |
