11class Lfortran < Formula
22 desc "Modern interactive LLVM-based Fortran compiler"
33 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 "
66 license "BSD-3-Clause"
77
88 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"
1111 end
1212
1313 depends_on "cmake" => :build
1414 depends_on "ninja" => :build
15- depends_on "llvm@11 "
15+ depends_on "llvm"
1616 depends_on "zlib"
1717
1818 def install
@@ -26,14 +26,14 @@ def install
2626 end
2727
2828 test do
29- system "#{ bin } /lfortran" , "--version"
29+ system "bin/lfortran" , "--version"
3030 ( testpath /"hello.f90" ) . write <<~EOS
3131 program hello
3232 print *, "Hello, World!"
3333 end
3434 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"
3737 system testpath /"hello"
3838 end
3939end
0 commit comments