homebrew-core/Formula/yap.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

37 lines
1.2 KiB
Ruby

class Yap < Formula
desc "Prolog compiler designed for performance and extensibility"
homepage "http://www.dcc.fc.up.pt/~vsc/Yap/index.html"
url "http://www.dcc.fc.up.pt/~vsc/Yap/yap-6.2.2.tar.gz"
sha256 "f15f8382104443319a5883eafce5f52f4143b526c7f1cd88d19c1f63fc06d750"
devel do
url "http://www.dcc.fc.up.pt/~vsc/Yap/yap-6.3.3.tar.gz"
sha256 "aee3b449b1669af07a8291ce6e7fb0a9b35e1343e2ab96fadb1a37552397fa78"
end
depends_on "gmp"
depends_on "readline"
fails_with :clang do
cause "uses variable-length arrays in structs, which will never be supported by clang"
end
def install
system "./configure", "--enable-tabling",
"--enable-depth-limit",
"--enable-coroutining",
"--enable-threads",
"--enable-pthread-locking",
"--with-gmp=#{Formula["gmp"].opt_prefix}",
"--with-readline=#{Formula["readline"].opt_prefix}",
"--with-java=/Library/Java/Home",
"--prefix=#{prefix}"
system "make"
system "make", "install"
end
test do
system "#{bin}/yap", "-dump-runtime-variables"
end
end