cuba 4.2 (new formula)

Closes #26535.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Luigi Pertoldi 2018-04-12 22:29:19 +02:00 committed by FX Coudert
parent e7cda94c86
commit 08d6472d68

19
Formula/cuba.rb Normal file
View file

@ -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