2011-03-10 05:11:03 +00:00
|
|
|
class Dvtm < Formula
|
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"
|
|
|
|
sha1 "205a2165e70455309f7ed6a6f11b3072fb9b13c3"
|
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-03-03 01:57:55 +00:00
|
|
|
sha1 "98ec8e4a27a05b0e4fca36b938d40cb77eeb6745" => :yosemite
|
|
|
|
sha1 "8d6cd0a89a131cc77f1ef6886247cf8f8b21e5ec" => :mavericks
|
|
|
|
sha1 "5a41d7afa914e09c1f8fe51ed19edc12a07f44e0" => :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
|