As nzbget was the only formula using libpar2, have changed it into a subformula that gets installed to nzbget's libexec. Also added patches to libpar2 from nzbget, as libpar2 upstream hasn't had any activity in years. The patches are bugfixes and add the ability to cancel par2 repair. They are required for the latest nzbget.
Have moved from gnutls to openssl for nzbget, as gnutls was causing issues, and wasn't necessary when OS X provides openssl. Have tested with openssl, no issues found, and no errors that gnutls was exhibiting.
ClosesHomebrew/homebrew#17251.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
- Mark as fails_with :clang due to libpar2 dependency.
ClosesHomebrew/homebrew#12319.
[jn: add cause to fails_with block]
Signed-off-by: Jack Nagel <jacknagel@gmail.com>