aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/termrec.rb
blob: 2a45a651e91ae873f5b87792c365a07f4413c6a4 (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
27
require "formula"

class Termrec < Formula
  homepage "http://angband.pl/termrec.html"
  head "http://angband.pl/git/termrec/", :using => :git
  url "https://github.com/kilobyte/termrec/archive/0.17.tar.gz"
  sha1 "45df1b35b7f236fafd1e4db9c45543501dfde359"

  depends_on "autoconf" => :build
  depends_on "automake" => :build
  depends_on "libtool" => :build
  depends_on "xz"

  def install
    inreplace "autogen", "libtoolize", "glibtoolize"
    system "./autogen"
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--disable-silent-rules",
                          "--prefix=#{prefix}"
    system "make", "install"
  end

  test do
    system "#{bin}/termrec", "--help"
  end
end