forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cube.rb
34 lines (28 loc) · 832 Bytes
/
cube.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
require "formula"
class Cube < Formula
homepage "http://apps.fz-juelich.de/scalasca/"
url "http://apps.fz-juelich.de/scalasca/releases/cube/4.2/dist/cube-4.2.2.tar.gz"
sha1 "88597c2df082bdc4eeadd6a9dad791b5894c6daa"
depends_on "qt" => :recommended
fails_with :clang do
build 503
cause <<-EOS.undent
Undefined symbols for architecture x86_64:
"cube::Cube::def_mirror(std::string const&)", referenced from:
MainWidget::readFile(QString) in cube-MainWidget.o
EOS
end if build.with? "qt"
def install
ENV.deparallelize
system "./configure",
"--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make"
system "make", "install"
end
test do
system "#{bin}/cube-config --version"
end
end