diff options
| author | Jack Nagel | 2012-08-13 09:35:59 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-13 09:35:59 -0500 |
| commit | df75ac61e03fb6c7e48407fa4ffe6a44bc0f4961 (patch) | |
| tree | fd19370efa6dc5053458214625d9310511172e4c /Library/Formula | |
| parent | c57802ee7d0f7a72612ffce22f672f7ef208967c (diff) | |
| download | homebrew-df75ac61e03fb6c7e48407fa4ffe6a44bc0f4961.tar.bz2 | |
p7zip: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/p7zip.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Formula/p7zip.rb b/Library/Formula/p7zip.rb index 05e2171ef..30d886d2d 100644 --- a/Library/Formula/p7zip.rb +++ b/Library/Formula/p7zip.rb @@ -5,12 +5,10 @@ class P7zip < Formula homepage 'http://p7zip.sourceforge.net/' md5 'bd6caaea567dc0d995c990c5cc883c89' - def options - [["--32-bit", "Build 32-bit only."]] - end + option '32-bit' def install - if Hardware.is_32_bit? or ARGV.build_32_bit? + if Hardware.is_32_bit? or build.build_32_bit? mv 'makefile.macosx_32bits', 'makefile.machine' else mv 'makefile.macosx_64bits', 'makefile.machine' |
