2014-07-20 20:14:18 +00:00
|
|
|
require "formula"
|
2010-08-19 01:11:16 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Cgdb < Formula
|
2014-07-20 20:14:18 +00:00
|
|
|
homepage "http://cgdb.github.io/"
|
|
|
|
url "http://cgdb.me/files/cgdb-0.6.7.tar.gz"
|
|
|
|
sha1 "5e29e306502888dd660a9dd55418e5c190ac75bb"
|
2010-08-19 01:11:16 +00:00
|
|
|
|
2014-07-20 20:14:18 +00:00
|
|
|
bottle do
|
2014-07-20 20:51:31 +00:00
|
|
|
sha1 "97d618f51a59e82d00e9957e545cbf8c55430919" => :mavericks
|
|
|
|
sha1 "4d54ccc422b20a5d5a2bb426dab38ed6f0fbb357" => :mountain_lion
|
|
|
|
sha1 "3e2bdb1a3bf2e11741df63c3d13069c844208a2c" => :lion
|
2014-07-20 20:14:18 +00:00
|
|
|
end
|
2010-08-19 01:11:16 +00:00
|
|
|
|
2014-08-08 18:48:32 +00:00
|
|
|
head do
|
|
|
|
url "https://github.com/cgdb/cgdb.git"
|
|
|
|
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "help2man" => :build
|
|
|
|
end
|
|
|
|
|
2014-07-20 20:14:18 +00:00
|
|
|
depends_on "readline"
|
2010-08-19 01:11:16 +00:00
|
|
|
|
|
|
|
def install
|
2014-08-08 18:48:32 +00:00
|
|
|
system "sh", "autogen.sh" if build.head?
|
|
|
|
|
2014-07-20 20:14:18 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2010-08-19 01:11:16 +00:00
|
|
|
"--prefix=#{prefix}",
|
2014-02-25 05:09:31 +00:00
|
|
|
"--with-readline=#{Formula['readline'].opt_prefix}"
|
2010-08-19 01:11:16 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|