forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscram.rb
37 lines (31 loc) · 976 Bytes
/
scram.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
class Scram < Formula
desc "Probabilistic Risk Analysis Tool"
homepage "https://scram-pra.org"
# Needs to pull submodules to get the customized Tango iconset for Mac.
url "https://github.com/rakhimov/scram.git",
:revision => "cccecbf9286a6aee945538ca4dd9141f64714f79",
:tag => "0.16.0"
revision 1
head "https://github.com/rakhimov/scram.git"
bottle :disable, "needs to be rebuilt with latest boost"
needs :cxx14
# C++14 uses GCC 5.3, which is not ABI compatible with GCC 4.8
depends_on :macos unless OS.mac?
depends_on "cmake" => :build
depends_on "boost"
depends_on "libxml2"
depends_on "qt"
depends_on "gperftools" => :recommended
def install
mkdir "build" do
args = std_cmake_args
args << "-DBUILD_SHARED_LIBS=ON" << "-DBUILD_TESTS=OFF"
system "cmake", "..", *args
system "make", "install"
end
end
test do
system "#{bin}/scram", "--help"
system "#{bin}/scram", "--version"
end
end