class Dvtm < Formula desc "Dynamic Virtual Terminal Manager" homepage "http://www.brain-dump.org/projects/dvtm/" url "http://www.brain-dump.org/projects/dvtm/dvtm-0.15.tar.gz" sha256 "8f2015c05e2ad82f12ae4cf12b363d34f527a4bbc8c369667f239e4542e1e510" head "https://github.com/martanne/dvtm.git" bottle do cellar :any_skip_relocation sha256 "3707849011fc54151fa110c66578ea3ad33d9cb6047d59ee10dc0e3a217ee0b4" => :yosemite sha256 "88bffcbc907f9ffa900331acf5f994af07f5c1787c328ac56c72935813f57b92" => :mavericks end # https://github.com/martanne/dvtm/issues/19 depends_on MaximumMacOSRequirement => :yosemite def install 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-#{version}/, result) end end