aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDavid Christenson2014-10-13 17:57:29 -0600
committerJack Nagel2014-10-15 21:29:24 -0500
commit3e2e55c2b6b3aeddc7f623f6fbd2665631cca565 (patch)
tree9b1e870a5f5382c3703e7012bb4353464dbb46b6 /Library/Formula
parentee956593c66fe27d9f945a7f58a784c6b99441c1 (diff)
downloadhomebrew-3e2e55c2b6b3aeddc7f623f6fbd2665631cca565.tar.bz2
nzbget: add devel and test, make conf persistent
Add development release, add test, install configuration file in ${HOMEBREW_PREFIX}/etc, change format of make command. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/nzbget.rb21
1 files changed, 18 insertions, 3 deletions
diff --git a/Library/Formula/nzbget.rb b/Library/Formula/nzbget.rb
index f41c1c205..e3f2ef047 100644
--- a/Library/Formula/nzbget.rb
+++ b/Library/Formula/nzbget.rb
@@ -5,6 +5,12 @@ class Nzbget < Formula
url "https://downloads.sourceforge.net/project/nzbget/nzbget-stable/13.0/nzbget-13.0.tar.gz"
sha1 "dc321ed59f47755bc910cf859f18dab0bf0cc7ff"
+ devel do
+ url "https://downloads.sourceforge.net/project/nzbget/nzbget-testing/14.0-r1137/nzbget-14.0-testing-r1137.tar.gz"
+ sha1 "b416a25c4744ca29be24c08ea240ac59bd19f2f4"
+ version "14.0-r1137"
+ end
+
head "https://nzbget.svn.sourceforge.net/svnroot/nzbget/trunk"
bottle do
@@ -33,7 +39,7 @@ class Nzbget < Formula
resource("libpar2").stage do
system "./configure", "--disable-dependency-tracking",
"--prefix=#{libexec}/lp2"
- system "make install"
+ system "make", "install"
end
# Tell configure where libpar2 is, and tell it to use OpenSSL
@@ -44,7 +50,16 @@ class Nzbget < Formula
"--with-tlslib=OpenSSL"
system "make"
ENV.j1
- system "make install"
- system "make install-conf"
+ system "make", "install"
+ etc.install "nzbget.conf"
+ end
+
+ test do
+ # Start nzbget as a server in daemon-mode
+ system "#{bin}/nzbget", "-D"
+ # Query server for version information
+ system "#{bin}/nzbget", "-V"
+ # Shutdown server daemon
+ system "#{bin}/nzbget", "-Q"
end
end