diff options
| author | Jack Nagel | 2012-08-12 19:01:40 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-12 19:01:40 -0500 |
| commit | b826defd36ec26489a7db3465884bf0ac0e387b6 (patch) | |
| tree | 65399566865c4931b28a5286eefb0bb99a7165be /Library/Formula | |
| parent | 81583e793bf6c8ffe125757594c6a749a04b72fc (diff) | |
| download | homebrew-b826defd36ec26489a7db3465884bf0ac0e387b6.tar.bz2 | |
ghc: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/ghc.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/ghc.rb b/Library/Formula/ghc.rb index 31aaa02df..42a301f2e 100644 --- a/Library/Formula/ghc.rb +++ b/Library/Formula/ghc.rb @@ -16,7 +16,7 @@ end class Ghc < Formula homepage 'http://haskell.org/ghc/' version '7.4.2' - if Hardware.is_64_bit? and not ARGV.build_32_bit? + if Hardware.is_64_bit? and not build.build_32_bit? url 'http://www.haskell.org/ghc/dist/7.4.2/ghc-7.4.2-x86_64-apple-darwin.tar.bz2' sha1 '7c655701672f4b223980c3a1068a59b9fbd08825' else @@ -26,6 +26,8 @@ class Ghc < Formula depends_on NeedsSnowLeopard.new + option '32-bit' + # Avoid stripping the Haskell binaries & libraries. # See: http://hackage.haskell.org/trac/ghc/ticket/2458 skip_clean ['bin', 'lib'] @@ -38,10 +40,6 @@ class Ghc < Formula EOS end - def options - [['--32-bit', 'Build 32-bit only.']] - end - def install system "./configure", "--prefix=#{prefix}" system "make install" |
