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
|
|
|
homepage 'http://wiki.znc.in/ZNC'
|
2013-01-24 23:23:09 +00:00
|
|
|
url 'http://znc.in/releases/archive/znc-1.0.tar.gz'
|
|
|
|
sha1 '50e6e3aacb67cf0a63d77f5031d4b75264cee294'
|
2012-06-11 15:31:14 +00:00
|
|
|
|
2011-05-27 05:02:55 +00:00
|
|
|
head 'https://github.com/znc/znc.git'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2012-08-23 04:00:14 +00:00
|
|
|
if build.head?
|
2012-07-07 18:08:22 +00:00
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
|
|
|
end
|
|
|
|
|
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-07-30 19:57:42 +00:00
|
|
|
option 'enable-debug', "Compile ZNC with --enable-debug"
|
2011-04-04 17:25:17 +00:00
|
|
|
|
2009-09-03 17:18:48 +00:00
|
|
|
def install
|
2011-04-04 17:25:17 +00:00
|
|
|
args = ["--prefix=#{prefix}", "--enable-extra"]
|
2012-07-30 19:57:42 +00:00
|
|
|
args << "--enable-debug" if build.include? 'enable-debug'
|
2012-02-28 15:39:22 +00:00
|
|
|
|
2012-07-30 19:57:42 +00:00
|
|
|
system "./autogen.sh" if 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
|