require "formula"

class Storm < Formula
  homepage "http://csdms.colorado.edu/wiki/Model:STORM"
  head "https://csdms.colorado.edu/svn/storm/trunk",
    :using => UnsafeSubversionDownloadStrategy

  depends_on :fortran

  def install
    inreplace "Makefile", /gfortran/, "\${FC}"

    system "make"
    bin.install "storm"
  end

  test do
    system "false"
  end
end

require "formula"

class Storm < Formula
  homepage "http://csdms.colorado.edu/wiki/Model:STORM"
  head "https://github.com/csdms-contrib/storm",
  sha1 ""

  depends_on "cmake" => :build

  def install
    system "cmake", ".", *std_cmake_args
    system "make"
    system "make", "install"
  end

  test do
    system "make", "test"
  end
end

Update formula for BMI version
Update formula for BMI version
