1
1
class Lfortran < Formula
2
2
desc "Modern interactive LLVM-based Fortran compiler"
3
3
homepage "https://lfortran.org"
4
- url "https://lfortran.github.io/tarballs/release/lfortran-0.16 .0.tar.gz"
5
- sha256 "9e1ae952bdaee845d9b9318ea06ed199c74da26704926c20fadaab794307c4fe "
4
+ url "https://lfortran.github.io/tarballs/release/lfortran-0.46 .0.tar.gz"
5
+ sha256 "420885b4bcfd2206bc5ae9cdb658f2382b35b0e4d145476a97bdc7d642d4a588 "
6
6
license "BSD-3-Clause"
7
7
8
8
bottle do
9
- root_url "https://github.com/fortran-lang/homebrew-fortran/releases/download/lfortran-0.16 .0"
10
- sha256 cellar : :any , big_sur : "67d1ee4fd768f602cd2ed2dcd26dce2b2b011edaebbb7fea0e91541d4384624e"
9
+ root_url "https://github.com/fortran-lang/homebrew-fortran/releases/download/lfortran-0.46 .0"
10
+ # sha256 cellar: :any, big_sur: "67d1ee4fd768f602cd2ed2dcd26dce2b2b011edaebbb7fea0e91541d4384624e"
11
11
end
12
12
13
13
depends_on "cmake" => :build
14
14
depends_on "ninja" => :build
15
- depends_on "llvm@11 "
15
+ depends_on "llvm"
16
16
depends_on "zlib"
17
17
18
18
def install
@@ -26,14 +26,14 @@ def install
26
26
end
27
27
28
28
test do
29
- system "#{ bin } /lfortran" , "--version"
29
+ system "bin/lfortran" , "--version"
30
30
( testpath /"hello.f90" ) . write <<~EOS
31
31
program hello
32
32
print *, "Hello, World!"
33
33
end
34
34
EOS
35
- system "#{ bin } /lfortran" , testpath /"hello.f90" , "-o" , testpath /"hello"
36
- assert_predicate testpath /"hello" , :exist?
35
+ system "bin/lfortran" , testpath /"hello.f90" , "-o" , testpath /"hello"
36
+ assert_path_exists testpath /"hello"
37
37
system testpath /"hello"
38
38
end
39
39
end
0 commit comments