From 1f6d0fef66baace0af46fed11ba42ec792172018 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 30 Jul 2012 12:57:42 -0700 Subject: znc: use options dsl --- Library/Formula/znc.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3