blob: 0a509f45e6077cbf8172f26838710686dd4c08ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
require 'formula'
class Znc < Formula
url 'http://znc.in/releases/archive/znc-0.204.tar.gz'
md5 '7c7247423fc08b0c5c62759a50a9bca3'
homepage 'http://wiki.znc.in/ZNC'
head 'https://github.com/znc/znc.git'
depends_on 'pkg-config' => :build
depends_on 'c-ares' => :optional
depends_on "automake" if ARGV.build_head? and MacOS.xcode_version >= "4.3"
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
|