2012-11-18 13:06:40 +00:00
|
|
|
class Cgvg < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Command-line source browsing tool"
|
2014-08-31 13:34:32 +00:00
|
|
|
homepage "http://www.uzix.org/cgvg.html"
|
|
|
|
url "http://www.uzix.org/cgvg/cgvg-1.6.3.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "d879f541abcc988841a8d86f0c0781ded6e70498a63c9befdd52baf4649a12f3"
|
2012-11-18 13:06:40 +00:00
|
|
|
|
2014-08-31 08:00:50 +00:00
|
|
|
bottle do
|
2015-11-07 05:47:50 +00:00
|
|
|
cellar :any_skip_relocation
|
|
|
|
revision 1
|
|
|
|
sha256 "a8232322755cb4c369193dca37fecb968ff689c6463611680e12f216f46507c4" => :el_capitan
|
|
|
|
sha256 "de0c8b890aa68670097790093fdceccfe1d69598c18ea5385069efc2f73a3c5d" => :yosemite
|
|
|
|
sha256 "d05cafffec1008fff858f9c0210d37d4d081aa34d8a490b968a8b824866a69be" => :mavericks
|
2014-08-31 08:00:50 +00:00
|
|
|
end
|
|
|
|
|
2012-11-18 13:06:40 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}"
|
2014-08-31 13:34:32 +00:00
|
|
|
system "make", "install"
|
2012-11-18 13:06:40 +00:00
|
|
|
end
|
2015-11-07 04:43:24 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"test").write "Homebrew"
|
|
|
|
assert_match /1 Homebrew/, shell_output("#{bin}/cg Homebrew '#{testpath}/test'")
|
|
|
|
end
|
2012-11-18 13:06:40 +00:00
|
|
|
end
|