2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-03 17:18:48 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Znc < Formula
|
2012-02-13 19:16:05 +00:00
|
|
|
url 'http://znc.in/releases/archive/znc-0.204.tar.gz'
|
|
|
|
md5 '7c7247423fc08b0c5c62759a50a9bca3'
|
|
|
|
homepage 'http://wiki.znc.in/ZNC'
|
2011-05-27 05:02:55 +00:00
|
|
|
head 'https://github.com/znc/znc.git'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2011-04-04 17:25:17 +00:00
|
|
|
depends_on 'c-ares' => :optional
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2009-09-28 21:06:53 +00:00
|
|
|
skip_clean 'bin/znc'
|
2010-01-14 20:59:07 +00:00
|
|
|
skip_clean 'bin/znc-config'
|
|
|
|
skip_clean 'bin/znc-buildmod'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2012-02-28 15:39:22 +00:00
|
|
|
if ARGV.build_head? and MacOS.xcode_version >= "4.3"
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
end
|
|
|
|
|
2011-04-04 17:25:17 +00:00
|
|
|
def options
|
|
|
|
[['--enable-debug', "Compile ZNC with --enable-debug"]]
|
|
|
|
end
|
|
|
|
|
2009-09-03 17:18:48 +00:00
|
|
|
def install
|
2011-04-04 17:25:17 +00:00
|
|
|
args = ["--prefix=#{prefix}", "--enable-extra"]
|
|
|
|
args << "--enable-debug" if ARGV.include? '--enable-debug'
|
2012-02-28 15:39:22 +00:00
|
|
|
|
|
|
|
system "./autogen.sh" if ARGV.build_head?
|
2011-04-04 17:25:17 +00:00
|
|
|
system "./configure", *args
|
2009-09-03 17:18:48 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|