From fc3bb9dc1d9878c2b3d3819a5f430700c5bcc423 Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Sun, 25 Jan 2015 22:16:28 +0100 Subject: bvi: modernize, test added Closes #36213. Signed-off-by: Mike McQuaid --- Library/Formula/bvi.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3