aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/nzbget.rb
blob: 7adcc762be2f0d24ea7ea50265b4cfeb44a21cc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
require 'formula'

class Nzbget < Formula
  homepage 'http://sourceforge.net/projects/nzbget/'
  url 'http://downloads.sourceforge.net/project/nzbget/nzbget-stable/9.0/nzbget-9.0.tar.gz'
  sha1 '7288e3250aea862a3f89b49b924436836b36ac95'
  head 'https://nzbget.svn.sourceforge.net/svnroot/nzbget/trunk', :using => :svn

  # Also depends on libxml2 but the one in OS X is fine
  depends_on 'pkg-config' => :build
  depends_on 'libsigc++'
  depends_on 'libpar2'
  depends_on 'libgcrypt'
  depends_on 'gnutls'

  fails_with :clang do
    build 421
    cause <<-EOS.undent
      Configure errors out when testing the libpar2 headers because
      Clang does not support flexible arrays of non-POD types.
      EOS
  end

  def install
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
    system "make install-conf"
  end
end