dvtm: modernize

Closes Homebrew/homebrew#35470.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Alexis Hildebrandt 2015-01-03 07:39:47 +01:00 committed by Jack Nagel
parent 5b59b81912
commit 7f6755e2e3

View file

@ -1,4 +1,4 @@
require "formula"
# encoding: UTF-8
class Dvtm < Formula
homepage "http://www.brain-dump.org/projects/dvtm/"
@ -10,4 +10,10 @@ class Dvtm < Formula
ENV.append_to_cflags "-D_DARWIN_C_SOURCE"
system "make", "PREFIX=#{prefix}", "LIBS=-lc -lutil -lncurses", "install"
end
test do
result = shell_output("#{bin}/dvtm -v")
result.force_encoding("UTF-8") if result.respond_to?(:force_encoding)
assert_match /^dvtm-[0-9.]+ © 2007-\d{4} Marc André Tanner$/, result
end
end