aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-03-07 14:35:13 +0100
committerMike McQuaid2015-03-07 16:49:54 +0000
commit2abd7e88118f0fbe21cafb8a29cfac86306b2c7d (patch)
treee0c70c2770c31ebf8020689fc699547a3cfb4ea2 /Library
parentdf4aa7fb3bfdd56871ba7f5fa7ced0376c9f69f2 (diff)
downloadhomebrew-2abd7e88118f0fbe21cafb8a29cfac86306b2c7d.tar.bz2
pipemeter: test added
Closes #37481. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/pipemeter.rb26
1 files changed, 17 insertions, 9 deletions
diff --git a/Library/Formula/pipemeter.rb b/Library/Formula/pipemeter.rb
index 33ce03585..52e6fd9fd 100644
--- a/Library/Formula/pipemeter.rb
+++ b/Library/Formula/pipemeter.rb
@@ -1,14 +1,22 @@
-require 'formula'
-
class Pipemeter < Formula
- homepage 'https://launchpad.net/pipemeter'
- url 'https://launchpad.net/pipemeter/trunk/1.1.3/+download/pipemeter-1.1.3.tar.gz'
- sha1 '8fe224b0cf77e9f3932f46fed0af5acc6547cd0c'
+ homepage "https://launchpad.net/pipemeter"
+ url "https://launchpad.net/pipemeter/trunk/1.1.3/+download/pipemeter-1.1.3.tar.gz"
+ sha256 "1ff952cb2127476ca9879f4b28fb92d6dabb0cc02db41f657025f7782fd50aaf"
def install
- system "./configure", "--disable-debug", "--prefix=#{prefix}", "--mandir=#{man}"
- system "make"
- bin.install "pipemeter"
- man1.install "pipemeter.1"
+ system "./configure", "--disable-debug",
+ "--prefix=#{prefix}",
+ "--mandir=#{man}"
+
+ # Fix the man1 directory location
+ inreplace "Makefile", "$(PREFIX)/man/man1", man1
+
+ bin.mkpath
+ man1.mkpath
+ system "make", "install"
+ end
+
+ test do
+ assert_match "3.00B", pipe_output("pipemeter -r 2>&1 >/dev/null", "foo", 0)
end
end