homebrew-core/Formula/dotwrp.rb

21 lines
552 B
Ruby
Raw Normal View History

require 'formula'
2011-03-21 20:00:58 +00:00
class Dotwrp < Formula
homepage 'https://github.com/tenomoto/dotwrp'
2012-04-19 02:41:14 +00:00
url 'https://github.com/tenomoto/dotwrp/tarball/v1.0'
md5 '629f1f66fbb9837ee1e21a666a9688fa'
head 'https://github.com/tenomoto/dotwrp.git'
def install
ENV.fortran
2011-03-21 20:35:53 +00:00
# note: fno-underscoring is vital to override the symbols in Accelerate
system "#{ENV["FC"]} #{ENV["FFLAGS"]} -fno-underscoring -c dotwrp.f90"
system "/usr/bin/ar -cru libdotwrp.a dotwrp.o"
system "/usr/bin/ranlib libdotwrp.a"
lib.install 'libdotwrp.a'
end
end