-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy patharpack-julia.rb
35 lines (30 loc) · 1.09 KB
/
arpack-julia.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
require 'formula'
class ArpackJulia < Formula
homepage 'https://github.com/opencollab/arpack-ng'
url 'https://github.com/opencollab/arpack-ng/archive/3.3.0.tar.gz'
sha256 'ad59811e7d79d50b8ba19fd908f92a3683d883597b2c7759fdcc38f6311fe5b3'
revision 4
bottle do
root_url 'https://juliabottles.s3.amazonaws.com'
cellar :any
rebuild 2
sha256 "176bef36b77bf8cf6a92bc5c20f25982783286e2062fd50b7329e43aaa602cf9" => :el_capitan
sha256 "535d1aff9d8acb49469bb95de55feb02f68eae3e2f76ee732f5db9f1dba54cc7" => :sierra
end
keg_only 'Conflicts with arpack in homebrew-science.'
depends_on "gcc"
depends_on 'staticfloat/julia/openblas-julia'
depends_on 'autoconf' => :build
depends_on 'automake' => :build
depends_on 'libtool' => :build
def install
system "./bootstrap"
configure_args = ["--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-shared",
"--with-blas=openblas",
"--with-lapack=openblas"]
system "./configure", *configure_args
system "make install"
end
end