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
|
2011-08-24 23:01:29 +00:00
|
|
|
url 'http://znc.in/releases/znc-0.200.tar.gz'
|
|
|
|
md5 'da5b690bc31b007474a77aae70c9c049'
|
2009-09-28 03:46:08 +00:00
|
|
|
homepage 'http://en.znc.in/wiki/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
|
|
|
|
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
|
|
|
if ARGV.build_head?
|
|
|
|
ENV['ACLOCAL_FLAGS'] = "--acdir=#{HOMEBREW_PREFIX}/share/aclocal"
|
|
|
|
system "./autogen.sh"
|
|
|
|
end
|
|
|
|
|
|
|
|
args = ["--prefix=#{prefix}", "--enable-extra"]
|
|
|
|
args << "--enable-debug" if ARGV.include? '--enable-debug'
|
|
|
|
system "./configure", *args
|
2009-09-03 17:18:48 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|