Skip to content

Commit

Permalink
julia 1.11.0-rc4
Browse files Browse the repository at this point in the history
julia: update inreplace

Co-authored-by: Carlo Cabrera <[email protected]>
  • Loading branch information
cho-m and carlocab committed Sep 30, 2024
1 parent a392d84 commit df40ab2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
18 changes: 8 additions & 10 deletions Formula/j/julia.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ class Julia < Formula
desc "Fast, Dynamic Programming Language"
homepage "https://julialang.org/"
# Use the `-full` tarball to avoid having to download during the build.
url "https://github.com/JuliaLang/julia/releases/download/v1.10.5/julia-1.10.5-full.tar.gz"
sha256 "5fc94159b87f34d18bf44a1a940e59f40cbeab931bfdc0c4763203bbb6995260"
url "https://github.com/JuliaLang/julia/releases/download/v1.11.0-rc4/julia-1.11.0-rc4-full.tar.gz"
sha256 "ca39244c1030b177a2ebe013bda5f5871df9223d97e30ddf96e4e24387b99c59"
license all_of: ["MIT", "BSD-3-Clause", "Apache-2.0", "BSL-1.0"]
head "https://github.com/JuliaLang/julia.git", branch: "master"

Expand All @@ -25,9 +25,6 @@ class Julia < Formula

depends_on "cmake" => :build # Needed to build LLVM
depends_on "gcc" => :build # for gfortran
# TODO: Use system `suite-sparse` when `julia` supports v7.3+.
# PR ref: https://github.com/JuliaLang/julia/pull/52577
depends_on "suite-sparse" => :test # Check bundled copy is used
depends_on "ca-certificates"
depends_on "curl"
depends_on "gmp"
Expand All @@ -41,6 +38,7 @@ class Julia < Formula
depends_on "openlibm"
depends_on "p7zip"
depends_on "pcre2"
depends_on "suite-sparse"
depends_on "utf8proc"

uses_from_macos "perl" => :build
Expand Down Expand Up @@ -79,7 +77,7 @@ def install
USE_SYSTEM_LIBBLASTRAMPOLINE=1
USE_SYSTEM_LIBGIT2=1
USE_SYSTEM_LIBSSH2=1
USE_SYSTEM_LIBSUITESPARSE=0
USE_SYSTEM_LIBSUITESPARSE=1
USE_SYSTEM_MBEDTLS=1
USE_SYSTEM_MPFR=1
USE_SYSTEM_NGHTTP2=1
Expand Down Expand Up @@ -146,10 +144,10 @@ def install

# Remove library versions from MbedTLS_jll, nghttp2_jll and others
# https://git.archlinux.org/svntogit/community.git/tree/trunk/julia-hardcoded-libs.patch?h=packages/julia
%w[MbedTLS nghttp2 LibGit2 OpenLibm].each do |dep|
(buildpath/"stdlib").glob("**/#{dep}_jll.jl") do |jll|
inreplace jll, %r{@rpath/lib(\w+)(\.\d+)*\.dylib}, "@rpath/lib\\1.dylib"
inreplace jll, /lib(\w+)\.so(\.\d+)*/, "lib\\1.so"
%w[MbedTLS nghttp2 LibGit2 OpenLibm SuiteSparse].each do |dep|
inreplace (buildpath/"stdlib").glob("**/#{dep}_jll.jl") do |s|
s.gsub!(%r{@rpath/lib(\w+)(\.\d+)*\.dylib}, "@rpath/lib\\1.dylib")
s.gsub!(/lib(\w+)\.so(\.\d+)*/, "lib\\1.so")
end
end

Expand Down
1 change: 1 addition & 0 deletions audit_exceptions/unstable_allowlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"automysqlbackup": "3.0-rc",
"aview": "1.3.0rc",
"ftgl": "2.1.3-rc",
"julia": "1.11.0-rc",
"libcaca": "0.99b",
"librasterlite2": "1.1.0-beta",
"premake": "5.0.0-beta",
Expand Down

0 comments on commit df40ab2

Please sign in to comment.