aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorKyle Fuller2011-04-04 18:25:17 +0100
committerAdam Vandenberg2011-04-04 10:34:32 -0700
commite3e636b14e7bbbc42d989640ac0f32c21574d285 (patch)
treedeb5f28fb89c6588e08f7bdcf5b322911c52f594 /Library
parent32a5b29dca09072d85a527d644324ea1cf5ab954 (diff)
downloadhomebrew-e3e636b14e7bbbc42d989640ac0f32c21574d285.tar.bz2
znc 0.098
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/znc.rb20
1 files changed, 16 insertions, 4 deletions
diff --git a/Library/Formula/znc.rb b/Library/Formula/znc.rb
index 710bc9cbd..dfbad605d 100644
--- a/Library/Formula/znc.rb
+++ b/Library/Formula/znc.rb
@@ -1,19 +1,31 @@
require 'formula'
class Znc < Formula
- url 'http://znc.in/releases/archive/znc-0.096.tar.gz'
- md5 '38eec4f1911a68b4d2fc704170e7cbf6'
+ url 'http://znc.in/releases/archive/znc-0.098.tar.gz'
+ md5 '5667b4acb1f01309d6eded77abac700c'
homepage 'http://en.znc.in/wiki/ZNC'
+ head 'git://github.com/znc/znc.git'
depends_on 'pkg-config' => :build
- depends_on 'c-ares'
+ 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
- system "./configure", "--prefix=#{prefix}", "--enable-extra"
+ 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