homebrew-core/Formula/znc.rb

33 lines
752 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'
2012-06-11 15:31:14 +00:00
url 'http://znc.in/releases/archive/znc-0.206.tar.gz'
sha1 'c5fe2575ef29187d2de5d08a08e17458c0ce54b9'
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