From 461861b59f31f5c26ac8f0a44559f952a924a48c Mon Sep 17 00:00:00 2001 From: Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com> Date: Tue, 29 Mar 2022 17:06:02 +0200 Subject: [PATCH] fpm 0.5.0 (new formula) --- Formula/fpm.rb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Formula/fpm.rb diff --git a/Formula/fpm.rb b/Formula/fpm.rb new file mode 100644 index 0000000..a828cff --- /dev/null +++ b/Formula/fpm.rb @@ -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