diff options
| author | Adam Vandenberg | 2012-07-30 12:57:42 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-08 22:01:38 -0700 |
| commit | 1f6d0fef66baace0af46fed11ba42ec792172018 (patch) | |
| tree | a1e14a405f8eb329e1d48e448655683b1265e2cc /Library | |
| parent | d8c8ea2015908c4363a8a62023c0d09e3a31f6c8 (diff) | |
| download | homebrew-1f6d0fef66baace0af46fed11ba42ec792172018.tar.bz2 | |
znc: use options dsl
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/znc.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/znc.rb b/Library/Formula/znc.rb index 32abe70a7..41b1a49d0 100644 --- a/Library/Formula/znc.rb +++ b/Library/Formula/znc.rb @@ -19,15 +19,13 @@ class Znc < Formula skip_clean 'bin/znc-config' skip_clean 'bin/znc-buildmod' - def options - [['--enable-debug', "Compile ZNC with --enable-debug"]] - end + option 'enable-debug', "Compile ZNC with --enable-debug" def install args = ["--prefix=#{prefix}", "--enable-extra"] - args << "--enable-debug" if ARGV.include? '--enable-debug' + args << "--enable-debug" if build.include? 'enable-debug' - system "./autogen.sh" if ARGV.build_head? + system "./autogen.sh" if build.head? system "./configure", *args system "make install" end |
