aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/dotwrp.rb
blob: 10e3e68b206a6428648e97cea156f8a04cf3aaa2 (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/archive/v1.1.tar.gz'
  sha1 'd328705ec424898382956bb8a0be16a680372f05'

  head 'https://github.com/tenomoto/dotwrp.git'

  depends_on :fortran

  def install
    # 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