homebrew-core/Formula/ldns.rb

37 lines
903 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.17.tar.gz'
sha1 '4218897b3c002aadfc7280b3f40cda829e05c9a4'
option 'with-gost', 'Compile ldns with support for GOST algorithms in DNSSEC'
depends_on :python => :optional
depends_on 'swig' if build.with? 'python'
# gost requires OpenSSL >= 1.0.0
depends_on 'openssl' if build.with? 'gost'
def install
2012-06-19 03:16:43 +00:00
args = %W[
--prefix=#{prefix}
--with-drill
]
if build.with? 'gost'
args << "--with-ssl=#{HOMEBREW_PREFIX}/opt/openssl"
else
args << "--disable-gost"
args << "--with-ssl=#{MacOS.sdk_path}/usr"
end
2014-01-04 13:07:59 +00:00
args << "--with-pyldns" if build.with? 'python'
2012-06-19 03:16:43 +00:00
system "./configure", *args
system "make"
system "make install"
system "make", "install-pyldns" if build.with? 'python'
end
end