aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/dotwrp.rb
blob: 845985b3c4e45f2e3006081ef5dfa7d085a9a0b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'formula'

class Dotwrp <Formula
  url 'https://github.com/tenomoto/dotwrp.git', :using => :git
  homepage 'https://github.com/tenomoto/dotwrp'
  version '1.0'

  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 "/usr/bin/ar -cru libdotwrp.a dotwrp.o"
    system "/usr/bin/ranlib libdotwrp.a"

    lib.install 'libdotwrp.a'
  end
end