aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDominyk Tiller2015-02-20 09:48:32 +0000
committerMike McQuaid2015-02-20 12:59:37 +0000
commit5ca581eb9c24d59b103292a8ef3c462800fa25c4 (patch)
treeb7062f00f250e45bd484421f791e3f130c55aac5 /Library
parent87665d77ee4e0e6e24301571a65fe904d8b2cbcb (diff)
downloadhomebrew-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.rb18
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