Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lfortran 0.46.0 #40

Merged
merged 4 commits into from
Mar 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions Formula/lfortran.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
class Lfortran < Formula
desc "Modern interactive LLVM-based Fortran compiler"
homepage "https://lfortran.org"
url "https://lfortran.github.io/tarballs/release/lfortran-0.16.0.tar.gz"
sha256 "9e1ae952bdaee845d9b9318ea06ed199c74da26704926c20fadaab794307c4fe"
url "https://lfortran.github.io/tarballs/release/lfortran-0.46.0.tar.gz"
sha256 "420885b4bcfd2206bc5ae9cdb658f2382b35b0e4d145476a97bdc7d642d4a588"
license "BSD-3-Clause"

bottle do
root_url "https://github.com/fortran-lang/homebrew-fortran/releases/download/lfortran-0.16.0"
sha256 cellar: :any, big_sur: "67d1ee4fd768f602cd2ed2dcd26dce2b2b011edaebbb7fea0e91541d4384624e"
root_url "https://github.com/fortran-lang/homebrew-fortran/releases/download/lfortran-0.46.0"
# sha256 cellar: :any, big_sur: "67d1ee4fd768f602cd2ed2dcd26dce2b2b011edaebbb7fea0e91541d4384624e"
end

depends_on "cmake" => :build
depends_on "ninja" => :build
depends_on "llvm@14"
depends_on "llvm"
depends_on "z3"
depends_on "zlib"

def install
Expand All @@ -26,13 +27,13 @@ def install
end

test do
system "#{bin}/lfortran", "--version"
system bin/"lfortran", "--version"
(testpath/"hello.f90").write <<~EOS
program hello
print *, "Hello, World!"
end
EOS
system "#{bin}/lfortran", testpath/"hello.f90", "-o", testpath/"hello"
system bin/"lfortran", testpath/"hello.f90", "-o", testpath/"hello"
assert_path_exists testpath/"hello"
system testpath/"hello"
end
Expand Down
Loading