dvtm: modernize
Closes Homebrew/homebrew#35470. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
5b59b81912
commit
7f6755e2e3
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue