diff options
| author | Dominyk Tiller | 2015-02-20 09:48:32 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2015-02-20 12:59:37 +0000 |
| commit | 5ca581eb9c24d59b103292a8ef3c462800fa25c4 (patch) | |
| tree | b7062f00f250e45bd484421f791e3f130c55aac5 /Library | |
| parent | 87665d77ee4e0e6e24301571a65fe904d8b2cbcb (diff) | |
| download | homebrew-5ca581eb9c24d59b103292a8ef3c462800fa25c4.tar.bz2 | |
znc: add icu4c support
Closes #36982.
Closes #36990.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/znc.rb | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/Library/Formula/znc.rb b/Library/Formula/znc.rb index d4bf202fd..b04c9e855 100644 --- a/Library/Formula/znc.rb +++ b/Library/Formula/znc.rb @@ -1,5 +1,3 @@ -require "formula" - class Znc < Formula homepage "http://wiki.znc.in/ZNC" url "http://znc.in/releases/archive/znc-1.6.0.tar.gz" @@ -19,19 +17,23 @@ class Znc < Formula sha1 "83597cccd275a3a4bf8fcc5d8dd5c9048403869a" => :mountain_lion end - option "enable-debug", "Compile ZNC with --enable-debug" + option "with-debug", "Compile ZNC with debug support" + option "with-icu4c", "Build with icu4c for charset support" + + deprecated_option "enable-debug" => "with-debug" depends_on "pkg-config" => :build depends_on "openssl" + depends_on "icu4c" => :optional def install ENV.cxx11 args = ["--prefix=#{prefix}"] - args << "--enable-debug" if build.include? "enable-debug" + args << "--enable-debug" if build.with? "debug" system "./autogen.sh" if build.head? system "./configure", *args - system "make install" + system "make", "install" end plist_options :manual => "znc --foreground" @@ -60,4 +62,10 @@ class Znc < Formula </plist> EOS end + + test do + mkdir ".znc" + system bin/"znc", "--makepem" + assert File.exist?(".znc/znc.pem") + end end |
