homebrew-core/Formula/ncdc.rb
Tobias Stehle 5faa199288 ncdc 1.19
* Added geoip option
* gnutls dependency with-p11-kit option

Closes Homebrew/homebrew#26728.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-02-19 11:23:16 +00:00

30 lines
656 B
Ruby

require 'formula'
class Ncdc < Formula
homepage 'http://dev.yorhel.nl/ncdc'
url 'http://dev.yorhel.nl/download/ncdc-1.19.tar.gz'
sha1 '7f478b7daf09202586b40899cc6beabeb0d23178'
option 'with-geoip', "Build with geoip support"
depends_on 'glib'
depends_on 'sqlite'
depends_on 'gnutls' => 'with-p11-kit'
depends_on 'pkg-config' => :build
depends_on 'geoip' => :optional
def install
args = [
"--disable-dependency-tracking",
"--prefix=#{prefix}",
]
args << '--with-geoip' if build.with? 'geoip'
system "./configure", *args
system "make install"
end
test do
system "#{bin}/ncdc", "-v"
end
end