2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-03 17:18:48 +00:00
|
|
|
|
|
|
|
class Znc <Formula
|
2010-11-04 05:09:47 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/znc/znc/0.094/znc-0.094.tar.gz'
|
|
|
|
md5 'db101f7a7756285d824b59e3b33e3ad5'
|
2009-09-28 03:46:08 +00:00
|
|
|
homepage 'http://en.znc.in/wiki/ZNC'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2009-09-21 18:00:13 +00:00
|
|
|
depends_on 'c-ares'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2009-09-28 21:06:53 +00:00
|
|
|
skip_clean 'bin/znc'
|
2010-01-14 20:59:07 +00:00
|
|
|
skip_clean 'bin/znc-config'
|
|
|
|
skip_clean 'bin/znc-buildmod'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2009-09-03 17:18:48 +00:00
|
|
|
def install
|
|
|
|
# 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
|