aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-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