-
Notifications
You must be signed in to change notification settings - Fork 4
/
multiwfn.rb
31 lines (26 loc) · 930 Bytes
/
multiwfn.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
class Multiwfn < Formula
desc "A Multifunctional Wavefunction Analyzer"
homepage "http://sobereva.com/multiwfn/"
head "https://github.com/digital-chemistry-laboratory/multiwfn-mac-build.git", branch: "source_dist"
license :cannot_represent
desc "A copy of settings.ini is installed. To use it, set environment variable Multiwfnpath=${HOMEBREW_PREFIX}/etc/multiwfn."
option "with-openmp", "Builds with OpenMP support."
depends_on "cmake" => :build
depends_on "pkg-config" => :build
depends_on "gcc"
depends_on "openblas"
depends_on "flint"
fails_with :clang
def install
cmake_args = std_cmake_args
if build.with? "openmp"
cmake_args << "-DWITH_OpenMP=ON"
end
system "cmake", "-S", ".", "-B", "build", *cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
end
test do
system "expect", "-c", "'spawn multiwfn; send \\003;'"
end
end