2011-02-08 14:52:55 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Nzbget < Formula
|
2011-02-08 14:52:55 +00:00
|
|
|
homepage 'http://sourceforge.net/projects/nzbget/'
|
2012-05-18 11:55:52 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/nzbget/nzbget-stable/0.8.0/nzbget-0.8.0.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'a7cf70b58286ff1b552d2564020c1fb9ca6d1af6'
|
2011-02-18 14:09:19 +00:00
|
|
|
head 'https://nzbget.svn.sourceforge.net/svnroot/nzbget/trunk', :using => :svn
|
2011-02-08 14:52:55 +00:00
|
|
|
|
|
|
|
# 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
|
2011-02-08 14:52:55 +00:00
|
|
|
depends_on 'libsigc++'
|
|
|
|
depends_on 'libpar2'
|
2012-12-10 10:51:38 +00:00
|
|
|
depends_on 'libgcrypt'
|
2011-02-08 14:52:55 +00:00
|
|
|
depends_on 'gnutls'
|
|
|
|
|
2012-05-18 11:55:52 +00:00
|
|
|
fails_with :clang do
|
2012-11-15 15:24:40 +00:00
|
|
|
build 421
|
2012-05-18 11:55:52 +00:00
|
|
|
cause <<-EOS.undent
|
|
|
|
Configure errors out when testing the libpar2 headers because
|
|
|
|
Clang does not support flexible arrays of non-POD types.
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
2011-02-08 14:52:55 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
2012-05-18 11:55:52 +00:00
|
|
|
|
|
|
|
prefix.install 'nzbget.conf.example', 'postprocess-example.conf'
|
2011-02-08 14:52:55 +00:00
|
|
|
end
|
|
|
|
end
|