blob: 96aa3dc2336c7dab2273948e0bdaa586445fc6ab (
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
28
29
30
31
32
|
require "formula"
class Cgdb < Formula
homepage "http://cgdb.github.io/"
url "http://cgdb.me/files/cgdb-0.6.7.tar.gz"
sha1 "5e29e306502888dd660a9dd55418e5c190ac75bb"
bottle do
sha1 "97d618f51a59e82d00e9957e545cbf8c55430919" => :mavericks
sha1 "4d54ccc422b20a5d5a2bb426dab38ed6f0fbb357" => :mountain_lion
sha1 "3e2bdb1a3bf2e11741df63c3d13069c844208a2c" => :lion
end
head do
url "https://github.com/cgdb/cgdb.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "help2man" => :build
end
depends_on "readline"
def install
system "sh", "autogen.sh" if build.head?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-readline=#{Formula['readline'].opt_prefix}"
system "make install"
end
end
|