2011-03-10 05:11:03 +00:00
|
|
|
class Dvtm < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Dynamic Virtual Terminal Manager"
|
2014-08-22 02:47:26 +00:00
|
|
|
homepage "http://www.brain-dump.org/projects/dvtm/"
|
2015-02-27 04:38:41 +00:00
|
|
|
url "http://www.brain-dump.org/projects/dvtm/dvtm-0.14.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "8a9bb341f8a4c578b839e22d9a707f053a27ae6df15158e16f4fee787e43747a"
|
2014-08-22 02:47:26 +00:00
|
|
|
head "git://repo.or.cz/dvtm.git"
|
2009-12-28 17:33:31 +00:00
|
|
|
|
2015-01-06 14:54:32 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-11-19 15:45:31 +00:00
|
|
|
sha256 "5b87346df1de5e39993819a29b5c0c0d831c8044055bc2f2eaf04128439109aa" => :yosemite
|
|
|
|
sha256 "d06ea6daaea24641ce1d34e69bcf023611a61d1ea1f7cb23aff6b7add3c7c1c2" => :mavericks
|
|
|
|
sha256 "ce96ad3bda840699a6576849a44ededc184e0a9db76dbaabe4a4e0209f344768" => :mountain_lion
|
2015-01-06 14:54:32 +00:00
|
|
|
end
|
|
|
|
|
2009-12-28 17:33:31 +00:00
|
|
|
def install
|
2015-01-02 17:06:22 +00:00
|
|
|
ENV.append_to_cflags "-D_DARWIN_C_SOURCE"
|
|
|
|
system "make", "PREFIX=#{prefix}", "LIBS=-lc -lutil -lncurses", "install"
|
2009-12-28 17:33:31 +00:00
|
|
|
end
|
2015-01-03 06:39:47 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
result = shell_output("#{bin}/dvtm -v")
|
|
|
|
result.force_encoding("UTF-8") if result.respond_to?(:force_encoding)
|
2015-02-27 04:38:41 +00:00
|
|
|
assert_match /^dvtm-#{version}/, result
|
2015-01-03 06:39:47 +00:00
|
|
|
end
|
2009-12-28 17:33:31 +00:00
|
|
|
end
|