homebrew-core/Formula/cgvg.rb

26 lines
863 B
Ruby
Raw Normal View History

class Cgvg < Formula
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"
sha256 "d879f541abcc988841a8d86f0c0781ded6e70498a63c9befdd52baf4649a12f3"
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
end
def install
system "./configure", "--prefix=#{prefix}",
"--mandir=#{man}"
2014-08-31 13:34:32 +00:00
system "make", "install"
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
end