Skip to content

Commit

Permalink
k so maybe this time we really fix it
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Mar 21, 2023
1 parent b0168da commit 7b79fa7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion share/brewkit/fix-machos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,11 @@ 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
s = s.sub(%r{[-.]\d+(\.\d+)*\.dylib$}, '.dylib') #FIXME we need to figure this out by resolving links and shit
puts s
s = "@rpath/#{s}"
return s
end
Expand Down

0 comments on commit 7b79fa7

Please sign in to comment.