homebrew-core/Formula/ldns.rb

35 lines
926 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'
2014-03-25 15:36:17 +00:00
bottle do
2014-05-23 23:09:26 +00:00
revision 2
sha1 "0730f244c3191ccc105e681d0a046dd0a03f582d" => :mavericks
sha1 "d1d014414e72ff7635bea795b2b140d9f33898f3" => :mountain_lion
sha1 "1cfa7037a76eac035e4e1089514a044eff2e6b8b" => :lion
2014-03-25 15:36:17 +00:00
end
depends_on :python => :optional
2014-05-23 20:23:28 +00:00
depends_on 'openssl'
depends_on 'swig' => :build if build.with? 'python'
def install
2012-06-19 03:16:43 +00:00
args = %W[
--prefix=#{prefix}
--with-drill
2014-05-23 20:23:28 +00:00
--with-ssl=#{Formula["openssl"].opt_prefix}
2012-06-19 03:16:43 +00:00
]
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'
2014-05-02 16:11:47 +00:00
(lib/"pkgconfig").install "packaging/libldns.pc"
end
end