2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-03 17:18:48 +00:00
|
|
|
|
|
|
|
class Znc <Formula
|
2009-09-28 03:46:08 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/znc/znc/0.076/znc-0.076.tar.gz'
|
|
|
|
homepage 'http://en.znc.in/wiki/ZNC'
|
|
|
|
md5 '03c2804b91225e83884f06078f6db568'
|
2009-09-03 17:18:48 +00:00
|
|
|
|
2009-09-21 18:00:13 +00:00
|
|
|
depends_on 'c-ares'
|
2009-11-08 15:54:31 +00:00
|
|
|
depends_on 'pkg-config' => :optional
|
2009-09-03 17:18:48 +00:00
|
|
|
|
2009-09-28 21:06:53 +00:00
|
|
|
skip_clean 'bin/znc'
|
2009-09-03 17:18:48 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
# This is a 3rd-party module that handles push notifications for Colloquy on the iPhone
|
|
|
|
# it's off by default, but annoying to compile if you don't do it while the source is available
|
|
|
|
system "curl -Ls -o modules/colloquy.cpp http://github.com/wired/colloquypush/raw/e678ca8ba9b3515dc8bfabeb7a6f258e6b8665e8/znc/colloquy.cpp"
|
|
|
|
|
|
|
|
# Apparently Snow Leopard's libperl is at /System/Library/Perl/lib/5.10/libperl.dylib
|
|
|
|
# but I don't know how to tell znc that. Perl is only used for user plugins, anyway.
|
2009-09-28 03:46:08 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--enable-extra", "--disable-perl"
|
2009-09-03 17:18:48 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|