diff options
| author | Adam Vandenberg | 2012-08-08 22:28:15 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-08 22:28:15 -0700 |
| commit | 3fa24bf75ca977a2601780c0783e72bd1f8a356b (patch) | |
| tree | 6ce56cfb1b2fb9a82d6251616043c59d47dd2d8c | |
| parent | 7794d6ebc4530123484213e01df35cddda0268fe (diff) | |
| download | homebrew-3fa24bf75ca977a2601780c0783e72bd1f8a356b.tar.bz2 | |
botan: use options dsl
| -rw-r--r-- | Library/Formula/botan.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Formula/botan.rb b/Library/Formula/botan.rb index c9ffae265..6d4eb08db 100644 --- a/Library/Formula/botan.rb +++ b/Library/Formula/botan.rb @@ -5,14 +5,12 @@ class Botan < Formula url 'http://botan.randombit.net/files/Botan-1.10.3.tbz' sha1 '9f929101bf75c19432f49f57c80d2d26eec91dcb' - def options - [['--enable-debug', "Enable debug build of Botan"]] - end + option 'enable-debug', 'Enable debug build of Botan' def install args = ["--prefix=#{prefix}"] args << "--cpu=x86_64" if MacOS.prefer_64_bit? - args << "--enable-debug" if ARGV.include? "--enable-debug" + args << "--enable-debug" if build.include? "--enable-debug" # The --cc option needs "clang" or "gcc" and not the full path. args << "--cc=#{ENV.compiler.to_s}" |
