Skip to content

Commit f1c5bc9

Browse files
authored
Merge pull request #210386 from ankane/fpm
fpm 0.11.0 (new formula)
2 parents 0aecbb0 + c3d13f4 commit f1c5bc9

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Formula/f/fpm.rb

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
class Fpm < Formula
2+
desc "Package manager and build system for Fortran"
3+
homepage "https://fpm.fortran-lang.org"
4+
url "https://github.com/fortran-lang/fpm/releases/download/v0.11.0/fpm-0.11.0.F90"
5+
sha256 "988a3317ee2448ee7207d0a29410f08a79c86bddac3314b2a175801a9cf58d27"
6+
license "MIT"
7+
8+
bottle do
9+
sha256 cellar: :any, arm64_sequoia: "21e756e56a9c35cbb2c0849bf7767ae194283d6c466de61e3ec9c5b922f33373"
10+
sha256 cellar: :any, arm64_sonoma: "2ed294de5db197bb728de646f43560bd0cac9702f848e97ce51b758697258b4c"
11+
sha256 cellar: :any, arm64_ventura: "41324372541beac98661f13ac43ebe6b04e022d77b911896a4a968acd25f31b6"
12+
sha256 cellar: :any, sonoma: "4f07fdd691265418345caf32995c53ace46f85580433a3430b17415cd8a77bcf"
13+
sha256 cellar: :any, ventura: "13c413c368aa578e3f01029eb0e6f32145ae27dbf3039521fa3a4a28ccf26e92"
14+
sha256 cellar: :any_skip_relocation, x86_64_linux: "484e5f0966895beaa67c50b37422f287e35787da9a4aa3e2940b07a479c236c0"
15+
end
16+
17+
depends_on "gcc" # for gfortran
18+
19+
def install
20+
mkdir_p "build/bootstrap"
21+
system "gfortran", "-J", "build/bootstrap", "-o", "build/bootstrap/fpm", "fpm-#{version}.F90"
22+
bin.install "build/bootstrap/fpm"
23+
end
24+
25+
test do
26+
system bin/"fpm", "new", "hello"
27+
assert_path_exists testpath/"hello"
28+
end
29+
end

0 commit comments

Comments
 (0)