jnettop: basic test added

Closes Homebrew/homebrew#37679.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Baptiste Fontaine 2015-03-13 14:00:49 +01:00 committed by Mike McQuaid
parent 5d5bd877cd
commit afd95412a7

View file

@ -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