74c83fa9f6
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
27 lines
753 B
Ruby
27 lines
753 B
Ruby
require 'formula'
|
|
|
|
class Qrupdate < Formula
|
|
homepage 'http://sourceforge.net/projects/qrupdate/'
|
|
url 'https://downloads.sourceforge.net/qrupdate/qrupdate-1.1.2.tar.gz'
|
|
sha1 'f7403b646ace20f4a2b080b4933a1e9152fac526'
|
|
|
|
depends_on :fortran
|
|
depends_on 'dotwrp'
|
|
|
|
def install
|
|
ENV.j1
|
|
ENV['PREFIX'] = prefix
|
|
inreplace 'Makeconf' do |s|
|
|
s.change_make_var! 'FC', ENV.fc
|
|
s.change_make_var! 'FFLAGS', ENV.fcflags
|
|
s.change_make_var! 'BLAS', "#{ENV.ldflags} -ldotwrp -framework Accelerate"
|
|
s.change_make_var! 'LAPACK', "#{ENV.ldflags} -ldotwrp -framework Accelerate"
|
|
end
|
|
cd "./src"
|
|
inreplace 'Makefile' do |s|
|
|
s.gsub! 'install -D', 'install'
|
|
end
|
|
lib.mkpath
|
|
system 'make install'
|
|
end
|
|
end
|