diff --git a/share/brewkit/fix-machos.rb b/share/brewkit/fix-machos.rb index 4574ae9e..3b161ccd 100755 --- a/share/brewkit/fix-machos.rb +++ b/share/brewkit/fix-machos.rb @@ -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