Skip to content
Merged
Changes from 1 commit
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
24 changes: 8 additions & 16 deletions Formula/h/halide.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
class Halide < Formula
desc "Language for fast, portable data-parallel computation"
homepage "https://halide-lang.org"
url "https://github.com/halide/Halide/archive/refs/tags/v21.0.0.tar.gz"
sha256 "aa6b6f5e89709ca6bc754ce72b8b13b2abce0d6b001cb2516b1c6f518f910141"
license "MIT"
revision 1

stable do
url "https://github.com/halide/Halide/archive/refs/tags/v19.0.0.tar.gz"
sha256 "83bae1f0e24dc44d9d85014d5cd0474df2dd03975680894ce3fafd6e97dffee2"

depends_on "lld@19"
depends_on "llvm@19" # TODO: Use `lld`/`llvm` in both stable and head in Halide 20
end
head "https://github.com/halide/Halide.git", branch: "main"

livecheck do
url :stable
Expand All @@ -28,18 +22,13 @@ class Halide < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "559910d964d788f02580e34bb3483e083f4a292cd9cfb3ee52ee8d6fe0d76c24"
end

head do
url "https://github.com/halide/Halide.git", branch: "main"

depends_on "lld"
depends_on "llvm"
end

depends_on "cmake" => :build
depends_on "pybind11" => :build
depends_on "flatbuffers"
depends_on "jpeg-turbo"
depends_on "libpng"
depends_on "lld"
depends_on "llvm"
depends_on "python@3.13"
depends_on "wabt"

Expand All @@ -52,6 +41,9 @@ def python3
end

def install
# Disable SVE feature as broken: https://github.com/halide/Halide/issues/8529
inreplace "src/Target.cpp", /^\s*initial_features.push_back\(Target::SVE/, "// \\0"

llvm = deps.map(&:to_formula).find { |f| f.name.match?(/^llvm(@\d+(\.\d+)*)?$/) }
site_packages = prefix/Language::Python.site_packages(python3)
rpaths = [rpath, rpath(source: site_packages/"halide")]
Expand Down
Loading