blob: fca000721e53a222be692ec75b2f220a0526c0a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
require 'formula'
class Ldns < Formula
homepage 'http://nlnetlabs.nl/projects/ldns/'
url 'http://nlnetlabs.nl/downloads/ldns/ldns-1.6.16.tar.gz'
sha1 '5b4fc6c5c3078cd061905c47178478cb1015c62a'
depends_on :python => :optional
depends_on 'swig' if build.with? 'python'
def install
# gost requires OpenSSL >= 1.0.0
args = %W[
--prefix=#{prefix}
--disable-gost
--with-drill
--with-ssl=#{MacOS.sdk_path}/usr
]
if build.with? 'python'
args << "--with-pyldns"
ENV['PYTHON_SITE_PKG'] = python.site_packages
end
system "./configure", *args
system "make"
system "make install"
system "make", "install-pyldns"
end
end
|