2012-02-16 19:39:45 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Treecc < Formula
|
|
|
|
homepage 'http://gnu.org/software/dotgnu/treecc/treecc.html'
|
2013-01-28 03:24:04 +00:00
|
|
|
url 'http://download.savannah.gnu.org/releases/dotgnu-pnet/treecc-0.3.10.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'f905cb535559b0e2d04fa86da14de240f5b1e44f'
|
2012-02-16 19:39:45 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make"
|
|
|
|
bin.install "treecc"
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
2012-05-15 21:36:45 +00:00
|
|
|
system "#{bin}/treecc", "-v"
|
2012-02-16 19:39:45 +00:00
|
|
|
end
|
|
|
|
end
|