cuba 4.2 (new formula)
Closes #26535. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
e7cda94c86
commit
08d6472d68
1 changed files with 19 additions and 0 deletions
19
Formula/cuba.rb
Normal file
19
Formula/cuba.rb
Normal 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
|
Loading…
Reference in a new issue