homebrew-core/Formula/cuba.rb
Luigi Pertoldi 08d6472d68 cuba 4.2 (new formula)
Closes #26535.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
2018-05-24 13:49:32 +02:00

19 lines
584 B
Ruby

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