scalapack.rb
require'formula' |
classScalapack < Formula |
homepage'http://www.netlib.org/scalapack/' |
url'http://www.netlib.org/scalapack/scalapack-2.0.2.tgz' |
sha1'ff9532120c2cffa79aef5e4c2f38777c6a1f3e6a' |
option'test','Verify the build with make test' |
option'with-openblas','Use openblas instead of Apple's Accelerate.framework' |
depends_onMPIDependency.new(:cc,:f90) |
depends_on'cmake'=>:build |
depends_on'dotwrp'unlessbuild.include?'with-openblas' |
depends_on'homebrew/science/openblas'ifbuild.include?'with-openblas' |
definstall |
ENV.fortran |
ifbuild.include?'with-openblas' |
args=std_cmake_args + [ |
'-DBLAS_LIBRARIES=-lopenblas', |
'-DLAPACK_LIBRARIES=-lopenblas', |
] |
else |
args=std_cmake_args + [ |
'-DBLAS_LIBRARIES=-ldotwrp -Wl,-framework -Wl,Accelerate', |
'-DLAPACK_LIBRARIES=-ldotwrp -Wl,-framework -Wl,Accelerate', |
] |
end |
mkdir'build'do |
system'cmake','..', *args |
system'make all' |
system'make test'ifbuild.include?'test' |
system'make install' |
end |
end |
end |
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
I currently had installed scala 2.11.7 but in order to fix this issue, I have to install a older version of scala(2.10.5). When I try to install with brew, I keep.