aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/znc.rb
blob: 7cae42ce2c2736de8e340f250ba2ecd19c8b967d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'formula'

class Znc <Formula
  url 'http://downloads.sourceforge.net/project/znc/znc/0.092/znc-0.092.tar.gz'
  md5 'e800a70c932dd13bc09b63569b49db3a'
  homepage 'http://en.znc.in/wiki/ZNC'

  depends_on 'c-ares'
  depends_on 'pkg-config' => :optional

  skip_clean 'bin/znc'
  skip_clean 'bin/znc-config'
  skip_clean 'bin/znc-buildmod'

  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.
    system "./configure", "--prefix=#{prefix}", "--enable-extra", "--disable-perl"
    system "make install"
  end
end