From 08d6472d686813ce07cd461eaaf25a252e3522d7 Mon Sep 17 00:00:00 2001 From: Luigi Pertoldi Date: Thu, 12 Apr 2018 22:29:19 +0200 Subject: [PATCH] cuba 4.2 (new formula) Closes #26535. Signed-off-by: FX Coudert --- Formula/cuba.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Formula/cuba.rb diff --git a/Formula/cuba.rb b/Formula/cuba.rb new file mode 100644 index 0000000000..fc26699e1e --- /dev/null +++ b/Formula/cuba.rb @@ -0,0 +1,19 @@ +class Cuba < Formula + desc "Library for multidimensional numerical integration" + homepage "http://www.feynarts.de/cuba/" + url "http://www.feynarts.de/cuba/Cuba-4.2.tar.gz" + sha256 "6b75bb8146ae6fb7da8ebb72ab7502ecd73920efc3ff77a69a656db9530a5eef" + + def install + ENV.deparallelize # Makefile does not support parallel build + system "./configure", "--prefix=#{prefix}" + system "make", "install" + pkgshare.install "demo" + end + + test do + system ENV.cc, "-o", "demo", "-L#{lib}", "-lcuba", + "#{pkgshare}/demo/demo-c.c" + system "./demo" + end +end