forked from openmeeg/openmeeg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenmeeg.rb
41 lines (35 loc) · 927 Bytes
/
openmeeg.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
class Openmeeg < Formula
desc "Package for low-frequency bio-electromagnetism forward models"
homepage "https://openmeeg.github.io"
head "https://github.com/openmeeg/openmeeg.git"
url "https://github.com/openmeeg/openmeeg/archive/2.4.1.tar.gz"
version "2.4.1"
devel do
url "https://github.com/openmeeg/openmeeg/archive/master.zip"
version "development"
end
depends_on "cmake" => :build
depends_on "hdf5"
depends_on "libmatio"
depends_on "zlib" unless OS.mac?
depends_on "openblas" unless OS.mac?
needs :openmp
def install
args = std_cmake_args + %w[
-DBLA_VENDOR=OpenBLAS
-DBUILD_SHARED_LIBS=ON
-DENABLE_PYTHON=OFF
-DBUILD_DOCUMENTATION=OFF
-DUSE_PROGRESSBAR=ON
-DUSE_OMP=ON
]
mkdir "build" do
args << ".."
system "cmake", *args
system "make", "install"
end
end
test do
system "#{bin}/om_assemble"
end
end