2010-08-09 09:18:48 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Ldns < Formula
|
2010-08-09 09:18:48 +00:00
|
|
|
homepage 'http://nlnetlabs.nl/projects/ldns/'
|
2012-11-13 18:06:01 +00:00
|
|
|
url 'http://nlnetlabs.nl/downloads/ldns/ldns-1.6.16.tar.gz'
|
|
|
|
sha1 '5b4fc6c5c3078cd061905c47178478cb1015c62a'
|
2010-08-09 09:18:48 +00:00
|
|
|
|
2013-01-21 09:33:56 +00:00
|
|
|
depends_on :python => :optional
|
|
|
|
depends_on 'swig' if build.with? 'python'
|
2012-01-22 21:42:17 +00:00
|
|
|
|
2010-08-09 09:18:48 +00:00
|
|
|
def install
|
2012-06-19 03:16:43 +00:00
|
|
|
# gost requires OpenSSL >= 1.0.0
|
|
|
|
args = %W[
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--disable-gost
|
|
|
|
--with-drill
|
2013-01-21 09:33:56 +00:00
|
|
|
--with-ssl=#{MacOS.sdk_path}/usr
|
2012-06-19 03:16:43 +00:00
|
|
|
]
|
2013-01-21 09:33:56 +00:00
|
|
|
|
|
|
|
if build.with? 'python'
|
|
|
|
args << "--with-pyldns"
|
|
|
|
ENV['PYTHON_SITE_PKG'] = python.site_packages
|
|
|
|
end
|
2012-06-19 03:16:43 +00:00
|
|
|
|
2012-01-22 21:42:17 +00:00
|
|
|
system "./configure", *args
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
2013-01-21 09:33:56 +00:00
|
|
|
system "make", "install-pyldns"
|
2010-08-09 09:18:48 +00:00
|
|
|
end
|
|
|
|
end
|