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

chapel 1.28.0 #110783

Closed
Closed
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
21 changes: 8 additions & 13 deletions Formula/chapel.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
class Chapel < Formula
desc "Programming language for productive parallel computing at scale"
homepage "https://chapel-lang.org/"
url "https://github.com/chapel-lang/chapel/releases/download/1.27.0/chapel-1.27.0.tar.gz"
sha256 "558b1376fb7757a5e1f254c717953f598a3e89850c8edd1936b8d09c464f3e8b"
url "https://github.com/chapel-lang/chapel/releases/download/1.28.0/chapel-1.28.0.tar.gz"
sha256 "64eacfb5915e1b3c487e865f819faf9bb8771c9f83aac6512698ded1baab250e"
license "Apache-2.0"
revision 2
head "https://github.com/chapel-lang/chapel.git", branch: "main"

bottle do
Expand All @@ -17,17 +16,11 @@ class Chapel < Formula
end

depends_on "gmp"
depends_on "python@3.10"

# fatal error: cannot open file './sys_basic.h': No such file or directory
# Issue ref: https://github.com/Homebrew/homebrew-core/issues/96915
on_catalina :or_older do
depends_on "llvm@11"
end
# Chapel only supports LLVM 14 and older. When LLVM15 releases, our formula would need to change
# this line to llvm@14.
depends_on "llvm"

on_system :linux, macos: :big_sur_or_newer do
depends_on "llvm"
end
depends_on "python@3.10"

# LLVM is built with gcc11 and we will fail on linux with gcc version 5.xx
fails_with gcc: "5"
Expand All @@ -45,6 +38,8 @@ def llvm
def install
# Always detect Python used as dependency rather than needing aliased Python formula
python = "python3.10"
# It should be noted that this will expand to: 'for cmd in python3.10 python3 python python2; do'
# in our find-python.sh script.
inreplace "util/config/find-python.sh", /^(for cmd in )(python3 )/, "\\1#{python} \\2"

libexec.install Dir["*"]
Expand Down