2013-02-22 23:13:50 +00:00
|
|
|
class Ncdc < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "NCurses direct connect"
|
2015-05-03 07:12:48 +00:00
|
|
|
homepage "http://dev.yorhel.nl/ncdc"
|
|
|
|
url "http://dev.yorhel.nl/download/ncdc-1.19.1.tar.gz"
|
|
|
|
sha256 "a6b23381434a47f7134d9ebdf5658fd06768f9b5de498c43e0fa00d1c7229d47"
|
2013-02-22 23:13:50 +00:00
|
|
|
|
2015-05-03 11:24:27 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha256 "ca94bbb642bde3040c7ff044416f1f4c317e987ec391a08d19e0eb3255cfe458" => :yosemite
|
|
|
|
sha256 "2534b7f72747615d2eb9989a2ea4147312cb604c7723b3421155f7b0837e8e71" => :mavericks
|
|
|
|
sha256 "1e362cd2a91f1a9a7bfe401e4665d33a8a35076097e8acb0153cadc67aea8b6c" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-04-10 08:39:46 +00:00
|
|
|
head do
|
2015-04-19 15:15:10 +00:00
|
|
|
url "git://g.blicky.net/ncdc.git", :shallow => false
|
2015-04-10 08:39:46 +00:00
|
|
|
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
end
|
|
|
|
|
2015-05-03 07:12:48 +00:00
|
|
|
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
|
|
|
|
|
2013-02-22 23:13:50 +00:00
|
|
|
def install
|
2015-04-10 08:39:46 +00:00
|
|
|
system "autoreconf", "-ivf" if build.head?
|
|
|
|
|
2014-02-19 09:18:03 +00:00
|
|
|
args = [
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
]
|
2015-05-03 07:12:48 +00:00
|
|
|
args << "--with-geoip" if build.with? "geoip"
|
2014-02-19 09:18:03 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
2013-02-22 23:13:50 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
2013-03-25 18:35:20 +00:00
|
|
|
test do
|
|
|
|
system "#{bin}/ncdc", "-v"
|
2013-02-22 23:13:50 +00:00
|
|
|
end
|
|
|
|
end
|