nzbget 13.0

- As per the release notes for 0.13.0, NZBGet upstream suggests using
 libpar2 as it is maintained by Debian/Ubuntu team and has the patches
 (and other fixes) already applied
- Details here: http://nzbget.net/forum/viewtopic.php?f=4&t=1306
- Fixes Homebrew/homebrew#31015
This commit is contained in:
Aubin Paul 2014-07-21 14:41:21 -04:00 committed by Mike McQuaid
parent 0863db2a01
commit bf8ae054f7

View file

@ -19,22 +19,13 @@ class Nzbget < Formula
end
resource "libpar2" do
url "https://downloads.sourceforge.net/project/parchive/libpar2/0.2/libpar2-0.2.tar.gz"
sha1 "4b3da928ea6097a8299aadafa703fc6d59bdfb4b"
end
# Bugfixes and ability to cancel par2 repair
resource "libpar2_patch" do
url "https://gist.githubusercontent.com/Smenus/4576230/raw/e722f2113195ee9b8ee67c1c424aa3f2085b1066/libpar2-0.2-nzbget.patch"
sha1 "0dca03f42c0997fd6b537a7dc539d705afb76157"
url "https://launchpad.net/libpar2/trunk/0.4/+download/libpar2-0.4.tar.gz"
sha1 "c4a5318edac0898dcc8b1d90668cfca2ccfe0375"
end
def install
resource("libpar2").stage do
buildpath.install resource("libpar2_patch")
system "patch -p1 < #{buildpath}/libpar2-0.2-nzbget.patch"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
system "./configure", "--disable-dependency-tracking",
"--prefix=#{libexec}/lp2"
system "make install"
end