aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorRiley2013-01-25 16:16:58 -0500
committerAdam Vandenberg2013-01-30 09:21:00 -0800
commitc2af2434cede8f4cadda3e77e5f2681bf6d79bbb (patch)
tree4f21c4459a568d231c11f65c6a0f051df9380601 /Library/Formula
parent7a8f6d918361f034924792e1b7cd1eb5a30f7025 (diff)
downloadhomebrew-c2af2434cede8f4cadda3e77e5f2681bf6d79bbb.tar.bz2
YAP 6.2.2
Closes #17309. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/yap.rb43
1 files changed, 43 insertions, 0 deletions
diff --git a/Library/Formula/yap.rb b/Library/Formula/yap.rb
new file mode 100644
index 000000000..da127ff4f
--- /dev/null
+++ b/Library/Formula/yap.rb
@@ -0,0 +1,43 @@
+require 'formula'
+
+class Yap < Formula
+ 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'
+ sha1 'a02f80cac67c287645b2ced9502f5ea24a07f1c3'
+
+ devel do
+ url 'http://www.dcc.fc.up.pt/~vsc/Yap/yap-6.3.3.tar.gz'
+ sha1 'd191e419e5cf74b11e003aae5fe148f3f2f26ac5'
+ end
+
+ depends_on 'gmp'
+ depends_on 'readline'
+
+ fails_with :clang do
+ build 425
+ cause "Undefined symbols linking for architecture x86_64"
+ end
+
+ def install
+ system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ "--enable-tabling",
+ "--enable-depth-limit",
+ "--enable-coroutining",
+ "--enable-threads",
+ "--enable-pthread-locking",
+ "--enable-clpbn-bp=no",
+ "--with-gmp=#{Formula.factory('gmp').opt_prefix}",
+ "--with-readline=#{Formula.factory('readline').opt_prefix}",
+ "--with-java=/Library/Java/Home",
+ "--prefix=#{prefix}"
+
+ inreplace 'Makefile', '-DMYDDAS_ODBC', ''
+
+ system "make"
+ system "make install"
+ end
+
+ def test
+ system "#{bin}/yap -dump-runtime-variables"
+ end
+end