homebrew-core/Formula/nzbget.rb

31 lines
940 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Nzbget < Formula
homepage 'http://sourceforge.net/projects/nzbget/'
url 'http://downloads.sourceforge.net/project/nzbget/nzbget-stable/0.8.0/nzbget-0.8.0.tar.gz'
sha1 'a7cf70b58286ff1b552d2564020c1fb9ca6d1af6'
head 'https://nzbget.svn.sourceforge.net/svnroot/nzbget/trunk', :using => :svn
# Also depends on libxml2 but the one in OS X is fine
2011-11-30 02:54:32 +00:00
depends_on 'pkg-config' => :build
depends_on 'libsigc++'
depends_on 'libpar2'
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"
prefix.install 'nzbget.conf.example', 'postprocess-example.conf'
end
end