homebrew-core/Formula/znc.rb

32 lines
785 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Znc < Formula
url 'http://znc.in/releases/archive/znc-0.202.tar.gz'
md5 '3c6ff4620e139e3d9745cd53111bab20'
homepage 'http://en.znc.in/wiki/ZNC'
2011-05-27 05:02:55 +00:00
head 'https://github.com/znc/znc.git'
depends_on 'pkg-config' => :build
depends_on 'c-ares' => :optional
skip_clean 'bin/znc'
skip_clean 'bin/znc-config'
skip_clean 'bin/znc-buildmod'
def options
[['--enable-debug', "Compile ZNC with --enable-debug"]]
end
def install
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
system "make install"
end
end