diff options
| author | Adam Vandenberg | 2012-08-31 14:02:14 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-31 14:02:14 -0700 |
| commit | e65131d7e7ab38a19a36dfe56070a0e07ab89189 (patch) | |
| tree | 5343cfa8465cde63155980cb603132f2f9f59229 /Library/Formula | |
| parent | cb0c576a16f0161c7bfa0fa5f788bcdb2febe65d (diff) | |
| download | homebrew-e65131d7e7ab38a19a36dfe56070a0e07ab89189.tar.bz2 | |
ldns: use new dsl
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/ldns.rb | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/Library/Formula/ldns.rb b/Library/Formula/ldns.rb index 5b5d78bb7..f7f0c3525 100644 --- a/Library/Formula/ldns.rb +++ b/Library/Formula/ldns.rb @@ -1,19 +1,13 @@ require 'formula' -def build_bindings? - ARGV.include? '--python' -end - class Ldns < Formula homepage 'http://nlnetlabs.nl/projects/ldns/' url 'http://nlnetlabs.nl/downloads/ldns/ldns-1.6.13.tar.gz' sha1 '859f633d10b763f06b602e2113828cbbd964c7eb' - depends_on 'swig' if build_bindings? + option "python", "Build Python pydns bindings" - def options - [["--python", "Build Python pydns bindings"]] - end + depends_on 'swig' if build.include? 'python' def install # gost requires OpenSSL >= 1.0.0 @@ -22,11 +16,11 @@ class Ldns < Formula --disable-gost --with-drill ] - args << "--with-pyldns" if build_bindings? + args << "--with-pyldns" if build.include? 'python' system "./configure", *args system "make" system "make install" - system "make install-pyldns" if build_bindings? + system "make install-pyldns" if build.include? 'python' end end |
