Skip to content

Commit

Permalink
julia: update inreplace
Browse files Browse the repository at this point in the history
Co-authored-by: Carlo Cabrera <[email protected]>
  • Loading branch information
cho-m and carlocab authored Sep 30, 2024
1 parent 504e66d commit 9fa4682
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Formula/j/julia.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ 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 SuiteSparse].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"
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

0 comments on commit 9fa4682

Please sign in to comment.