homebrew-core/Formula/qrupdate.rb
Jaime Marquínez Ferrándiz 74c83fa9f6 Batch convert http download urls from SourceForge to https
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-03-02 09:16:53 -08:00

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