Skip to content

Commit

Permalink
fpm 0.5.0 (new formula)
Browse files Browse the repository at this point in the history
Closes #1.

Signed-off-by: Sebastian Ehlert <[email protected]>
  • Loading branch information
awvwgk committed Mar 29, 2022
1 parent e9de15c commit db40b6e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Formula/fpm.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
class Fpm < Formula
desc "Fortran Package Manager (fpm)"
homepage "https://fpm.fortran-lang.org"
url "https://github.com/fortran-lang/fpm/releases/download/v0.5.0/fpm-0.5.0.zip"
sha256 "e4a06956d2300f9aa1d06bd3323670480e946549617582e32684ded6921a921e"
license "MIT"

depends_on "curl" => :build
depends_on "gcc" # for gfortran
fails_with gcc: "4"
fails_with gcc: "5"
fails_with gcc: "6"
fails_with :clang

def install
ENV.fortran
system "./install.sh", "--prefix=#{prefix}"
end

test do
system "#{bin}/fpm", "--version"
end
end

0 comments on commit db40b6e

Please sign in to comment.