homebrew-core/Formula/znc.rb

28 lines
605 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
2013-09-22 01:47:57 +00:00
head do
url 'https://github.com/znc/znc.git'
2012-07-07 18:08:22 +00:00
depends_on :automake
depends_on :libtool
end
2013-09-22 01:47:57 +00:00
option 'enable-debug', "Compile ZNC with --enable-debug"
depends_on 'pkg-config' => :build
def install
args = ["--prefix=#{prefix}"]
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