Skip to content

Commit

Permalink
I swear this is a new edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Mar 21, 2023
1 parent 7b79fa7 commit 59ef06f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions share/brewkit/fix-machos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,13 @@ def fix_install_names
return if bad_names.empty?

def fix_tea_prefix s
puts s
s = Pathname.new(s).relative_path_from(Pathname.new($tea_prefix))
s = s.sub(%r{/v(\d+)\.(\d+\.)+\d+[a-z]?/}, '/v\1/')
s = s.sub(%r{[-.]\d+(\.\d+)*\.dylib$}, '.dylib') #FIXME we need to figure this out by resolving links and shit
puts s

#FIXME we need to figure this out by resolving links and shit
ss = s.sub(%r{[-.]\d+(\.\d+)*\.dylib$}, '.dylib')
s = ss if File.exist? ss

s = "@rpath/#{s}"
return s
end
Expand Down

0 comments on commit 59ef06f

Please sign in to comment.