blob: 7c3373ae3e2a3cbe3cbe159fb032ced1086d1978 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  | 
require 'formula'
class Dotwrp < Formula
  homepage 'https://github.com/tenomoto/dotwrp'
  url 'https://github.com/tenomoto/dotwrp/tarball/v1.0'
  sha1 '98d0d2ad0c49528e0df5d004962a25c5414b17b8'
  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
  |