2011-02-18 02:10:18 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-21 20:04:41 +00:00
|
|
|
class Qrupdate < Formula
|
2011-02-18 02:10:18 +00:00
|
|
|
homepage 'http://sourceforge.net/projects/qrupdate/'
|
2012-06-18 17:00:55 +00:00
|
|
|
url 'http://downloads.sourceforge.net/qrupdate/qrupdate-1.1.2.tar.gz'
|
|
|
|
sha1 'f7403b646ace20f4a2b080b4933a1e9152fac526'
|
2011-02-18 02:10:18 +00:00
|
|
|
|
|
|
|
depends_on 'dotwrp'
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.fortran
|
|
|
|
ENV['PREFIX'] = prefix
|
|
|
|
inreplace 'Makeconf' do |s|
|
|
|
|
# as per the caveats in the gfortran formula:
|
2012-08-30 01:42:24 +00:00
|
|
|
s.gsub! /^(FC=).*/, "\\1#{HOMEBREW_PREFIX}/bin/gfortran"
|
|
|
|
s.gsub! /^(FFLAGS=).*/, "\\1#{ENV['FCFLAGS']}"
|
|
|
|
s.gsub! /^(BLAS=).*/, "\\1#{ENV["LDFLAGS"]} -ldotwrp -framework Accelerate"
|
2011-02-18 02:10:18 +00:00
|
|
|
s.gsub! /^(LAPACK=).*/, "\\1#{ENV["LDFLAGS"]} -ldotwrp -framework Accelerate"
|
|
|
|
end
|
|
|
|
cd "./src"
|
|
|
|
inreplace 'Makefile' do |s|
|
|
|
|
s.gsub! 'install -D', 'install'
|
|
|
|
end
|
2012-02-22 04:48:36 +00:00
|
|
|
lib.mkpath
|
2012-06-18 17:00:55 +00:00
|
|
|
ENV.j1
|
|
|
|
system 'make install'
|
2011-02-18 02:10:18 +00:00
|
|
|
end
|
|
|
|
end
|