homebrew-core/Formula/znc.rb

33 lines
750 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Znc < Formula
homepage 'http://wiki.znc.in/ZNC'
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'
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
depends_on 'pkg-config' => :build
depends_on 'c-ares' => :optional
skip_clean 'bin/znc'
skip_clean 'bin/znc-config'
skip_clean 'bin/znc-buildmod'
2012-07-30 19:57:42 +00:00
option 'enable-debug', "Compile ZNC with --enable-debug"
def install
args = ["--prefix=#{prefix}", "--enable-extra"]
2012-07-30 19:57:42 +00:00
args << "--enable-debug" if build.include? 'enable-debug'
2012-07-30 19:57:42 +00:00
system "./autogen.sh" if build.head?
system "./configure", *args
system "make install"
end
end