2013-11-06 22:04:53 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Tcc < Formula
|
|
|
|
homepage 'http://bellard.org/tcc/'
|
|
|
|
url 'http://download.savannah.gnu.org/releases/tinycc/tcc-0.9.26.tar.bz2'
|
|
|
|
sha1 '7110354d3637d0e05f43a006364c897248aed5d0'
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.j1
|
2014-08-07 00:57:50 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--source-path=#{buildpath}",
|
|
|
|
"--sysincludepaths=/usr/local/include:#{MacOS.sdk_path}/usr/include:{B}/include"
|
2013-11-06 22:04:53 +00:00
|
|
|
system "make"
|
|
|
|
system "make", "install"
|
|
|
|
system "make", "test"
|
|
|
|
end
|
|
|
|
end
|