aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/znc.rb8
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