27 lines
752 B
Ruby
27 lines
752 B
Ruby
require 'formula'
|
|
|
|
class Qrupdate < Formula
|
|
homepage 'http://sourceforge.net/projects/qrupdate/'
|
|
url 'http://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
|