homebrew-core/Formula/ldns.rb

27 lines
638 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Ldns < Formula
homepage 'http://nlnetlabs.nl/projects/ldns/'
url 'http://nlnetlabs.nl/downloads/ldns/ldns-1.6.16.tar.gz'
sha1 '5b4fc6c5c3078cd061905c47178478cb1015c62a'
2012-08-31 21:02:14 +00:00
option "python", "Build Python pydns bindings"
2012-08-31 21:02:14 +00:00
depends_on 'swig' if build.include? 'python'
def install
2012-06-19 03:16:43 +00:00
# gost requires OpenSSL >= 1.0.0
args = %W[
--prefix=#{prefix}
--disable-gost
--with-drill
]
2012-08-31 21:02:14 +00:00
args << "--with-pyldns" if build.include? 'python'
2012-06-19 03:16:43 +00:00
system "./configure", *args
system "make"
system "make install"
2012-08-31 21:02:14 +00:00
system "make install-pyldns" if build.include? 'python'
end
end