aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/dvtm.rb
blob: 24806600ea99d39a2c7b621616c19ae2254783a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
class Dvtm < Formula
  homepage "http://www.brain-dump.org/projects/dvtm/"
  url "http://www.brain-dump.org/projects/dvtm/dvtm-0.14.tar.gz"
  sha1 "205a2165e70455309f7ed6a6f11b3072fb9b13c3"
  head "git://repo.or.cz/dvtm.git"

  bottle do
    cellar :any
    sha1 "98ec8e4a27a05b0e4fca36b938d40cb77eeb6745" => :yosemite
    sha1 "8d6cd0a89a131cc77f1ef6886247cf8f8b21e5ec" => :mavericks
    sha1 "5a41d7afa914e09c1f8fe51ed19edc12a07f44e0" => :mountain_lion
  end

  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