aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/dvtm.rb
blob: a1d12fa338538e0be4252f8550f7dfb1ce86d533 (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
25
26
# encoding: UTF-8

class Dvtm < Formula
  homepage "http://www.brain-dump.org/projects/dvtm/"
  url "http://www.brain-dump.org/projects/dvtm/dvtm-0.13.tar.gz"
  sha1 "8a4fc2440faa3050244e5a492fb6766899e0c0d7"
  head "git://repo.or.cz/dvtm.git"

  bottle do
    cellar :any
    sha1 "5f90807a984ea18940aa62b31fccf1d5360fd904" => :yosemite
    sha1 "0cc466200f2eb56604e6222055d3860dc66804e1" => :mavericks
    sha1 "55a10e62092fed633e9252d07134a7cad1df8217" => :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-[0-9.]+ © 2007-\d{4} Marc André Tanner$/, result
  end
end