aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-01-25 22:16:28 +0100
committerMike McQuaid2015-01-27 08:19:21 +0000
commitfc3bb9dc1d9878c2b3d3819a5f430700c5bcc423 (patch)
treefa9f6e6112ea1b7bd8a03df2c086bf3777327e7b /Library/Formula
parent38973718af2fbff7fbc510fd242819e3eabe6455 (diff)
downloadhomebrew-fc3bb9dc1d9878c2b3d3819a5f430700c5bcc423.tar.bz2
bvi: modernize, test added
Closes #36213. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/bvi.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/Library/Formula/bvi.rb b/Library/Formula/bvi.rb
index 4b1492a2e..b51b3a68a 100644
--- a/Library/Formula/bvi.rb
+++ b/Library/Formula/bvi.rb
@@ -1,5 +1,3 @@
-require "formula"
-
class Bvi < Formula
homepage "http://bvi.sourceforge.net"
url "https://downloads.sourceforge.net/bvi/bvi-1.4.0.src.tar.gz"
@@ -7,6 +5,11 @@ class Bvi < Formula
def install
system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
- system "make install"
+ system "make", "install"
+ end
+
+ test do
+ ENV["TERM"] = "xterm"
+ system "#{bin}/bvi", "-c", "q"
end
end