eafe55e090
xcwoclt doesn't have /usr/bin/ar, and superenv ensures that PATHs are in a good order so that our tools are used. std-env may break… but I can fix this by massaging std-env's paths. I want to keep std-env around. It's the traditional route.
20 lines
534 B
Ruby
20 lines
534 B
Ruby
require 'formula'
|
|
|
|
class Dotwrp < Formula
|
|
homepage 'https://github.com/tenomoto/dotwrp'
|
|
url 'https://github.com/tenomoto/dotwrp/tarball/v1.0'
|
|
md5 '629f1f66fbb9837ee1e21a666a9688fa'
|
|
|
|
head 'https://github.com/tenomoto/dotwrp.git'
|
|
|
|
def install
|
|
ENV.fortran
|
|
|
|
# note: fno-underscoring is vital to override the symbols in Accelerate
|
|
system "#{ENV["FC"]} #{ENV["FFLAGS"]} -fno-underscoring -c dotwrp.f90"
|
|
system "ar -cru libdotwrp.a dotwrp.o"
|
|
system "ranlib libdotwrp.a"
|
|
|
|
lib.install 'libdotwrp.a'
|
|
end
|
|
end
|