diff options
| author | Jack Nagel | 2012-08-13 16:05:07 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-13 16:05:07 -0500 |
| commit | 008b09ca282e10695b3bf3e31f92887bd6e74df8 (patch) | |
| tree | 7693a845a2a2e46208fa85794a41af125f571df3 /Library/Formula | |
| parent | 573270988afee438e05dd69801b55c22f2d14b73 (diff) | |
| download | homebrew-008b09ca282e10695b3bf3e31f92887bd6e74df8.tar.bz2 | |
dnsmasq: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/dnsmasq.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/dnsmasq.rb b/Library/Formula/dnsmasq.rb index cb0b134ec..726b06091 100644 --- a/Library/Formula/dnsmasq.rb +++ b/Library/Formula/dnsmasq.rb @@ -5,11 +5,9 @@ class Dnsmasq < Formula url 'http://www.thekelleys.org.uk/dnsmasq/dnsmasq-2.62.tar.gz' sha1 'c011531a8a92b35ede387525293bfdf93b201039' - def options - [['--with-idn', "Compile with IDN support"]] - end + option 'with-idn', 'Compile with IDN support' - depends_on "libidn" if ARGV.include? '--with-idn' + depends_on "libidn" if build.include? 'with-idn' def install ENV.deparallelize @@ -18,7 +16,7 @@ class Dnsmasq < Formula inreplace "src/config.h", "/etc/dnsmasq.conf", "#{etc}/dnsmasq.conf" # Optional IDN support - if ARGV.include? '--with-idn' + if build.include? 'with-idn' inreplace "src/config.h", "/* #define HAVE_IDN */", "#define HAVE_IDN" end |
