2011-02-18 02:03:37 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-21 20:00:58 +00:00
|
|
|
class Dotwrp < Formula
|
2011-02-18 02:03:37 +00:00
|
|
|
homepage 'https://github.com/tenomoto/dotwrp'
|
2013-03-29 01:03:20 +00:00
|
|
|
url 'https://github.com/tenomoto/dotwrp/archive/v1.1.tar.gz'
|
|
|
|
sha1 'd328705ec424898382956bb8a0be16a680372f05'
|
2012-04-19 02:41:14 +00:00
|
|
|
|
|
|
|
head 'https://github.com/tenomoto/dotwrp.git'
|
2011-02-18 02:03:37 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.fortran
|
|
|
|
|
2011-03-21 20:35:53 +00:00
|
|
|
# note: fno-underscoring is vital to override the symbols in Accelerate
|
2011-02-18 02:03:37 +00:00
|
|
|
system "#{ENV["FC"]} #{ENV["FFLAGS"]} -fno-underscoring -c dotwrp.f90"
|
2012-08-29 18:44:29 +00:00
|
|
|
system "ar -cru libdotwrp.a dotwrp.o"
|
|
|
|
system "ranlib libdotwrp.a"
|
2011-02-18 02:03:37 +00:00
|
|
|
|
|
|
|
lib.install 'libdotwrp.a'
|
|
|
|
end
|
|
|
|
end
|