diff options
| author | Baptiste Fontaine | 2015-03-13 14:00:49 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-03-13 14:04:33 +0000 |
| commit | 31f81594167c80ce3a734304e49b8cc5a6ee1de4 (patch) | |
| tree | 77407f106ac9dc501fac6533f083c0980591193d /Library | |
| parent | e2d40f00dfc91bdc0e7b984aac71afe3fcf76b13 (diff) | |
| download | homebrew-31f81594167c80ce3a734304e49b8cc5a6ee1de4.tar.bz2 | |
jnettop: basic test added
Closes #37679.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/jnettop.rb | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/Library/Formula/jnettop.rb b/Library/Formula/jnettop.rb index 2ac2eb1ce..070653473 100644 --- a/Library/Formula/jnettop.rb +++ b/Library/Formula/jnettop.rb @@ -1,17 +1,20 @@ -require 'formula' - class Jnettop < Formula - homepage 'http://jnettop.kubs.info/' - url 'http://jnettop.kubs.info/dist/jnettop-0.13.0.tar.gz' - sha1 '59f4c28db6f8b1c58050d72aaa4b3b6d5a4a75e0' + homepage "http://jnettop.kubs.info/" + url "http://jnettop.kubs.info/dist/jnettop-0.13.0.tar.gz" + sha256 "e987a1a9325595c8a0543ab61cf3b6d781b4faf72dd0e0e0c70b2cc2ceb5a5a0" - depends_on 'pkg-config' => :build - depends_on 'glib' + depends_on "pkg-config" => :build + depends_on "glib" def install - system "./configure", "--disable-debug", "--disable-dependency-tracking", + system "./configure", "--disable-debug", + "--disable-dependency-tracking", "--prefix=#{prefix}", "--man=#{man}" - system "make install" + system "make", "install" + end + + test do + system "#{bin}/jnettop", "-h" end end |
