061f7f04c4
Version bump, and forcing compile with gcc because the long-standing Clang failure is a known issue upstream in the same thread linked to in the formula above the make step. Closes Homebrew/homebrew#34036. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
40 lines
1.1 KiB
Ruby
40 lines
1.1 KiB
Ruby
require "formula"
|
|
|
|
class Ats2Postiats < Formula
|
|
homepage "http://www.ats-lang.org/"
|
|
url "https://downloads.sourceforge.net/project/ats2-lang/ats2-lang/ats2-postiats-0.1.4/ATS2-Postiats-0.1.4.tgz"
|
|
sha1 "a1efb18fad356c5e6dcddde79b8433476443da09"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha1 "d02cf136334e7c813a8a7dd041d6b1b24f352a85" => :mavericks
|
|
sha1 "59786888cee7152fdaf7a27f46d98e667c313339" => :mountain_lion
|
|
sha1 "b544d4480ad688d9d3f1320d25c5a784a215f49d" => :lion
|
|
end
|
|
|
|
depends_on "gmp"
|
|
|
|
fails_with :clang do
|
|
cause "Trying to compile this with Clang is failure-galore."
|
|
end
|
|
|
|
def install
|
|
ENV.deparallelize
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
# Disable GC support for patsopt
|
|
# https://github.com/githwxi/ATS-Postiats/issues/76
|
|
system "make", "GCFLAG=-D_ATS_NGC", "all"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
(testpath/"hello.dats").write <<-EOS.undent
|
|
val _ = print ("Hello, world!\n")
|
|
implement main0 () = ()
|
|
EOS
|
|
system "#{bin}/patscc hello.dats -o hello"
|
|
assert_match "Hello, world!", shell_output(testpath/"hello")
|
|
end
|
|
end
|