keg_relocate: enable Java relocation for bottles

This is a continuation of #12334.
This commit is contained in:
Carlo Cabrera 2021-10-28 17:05:17 +08:00
parent dae9a34a85
commit aa95c17c8e
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -98,8 +98,8 @@ class Keg
relocation.add_replacement_pair(:perl, relocation.add_replacement_pair(:perl,
%r{\A#!(?:/usr/bin/perl\d\.\d+|#{HOMEBREW_PREFIX}/opt/perl/bin/perl)( |$)}o, %r{\A#!(?:/usr/bin/perl\d\.\d+|#{HOMEBREW_PREFIX}/opt/perl/bin/perl)( |$)}o,
"#!#{PERL_PLACEHOLDER}\\1") "#!#{PERL_PLACEHOLDER}\\1")
# TODO: Enable relocation upon bottling when relocation upon pouring is in a brew release tag. relocation.add_replacement_pair(:java, JAVA_REGEX, JAVA_PLACEHOLDER)
# relocation.add_replacement_pair(:java, JAVA_REGEX, JAVA_PLACEHOLDER)
relocation relocation
end end
alias generic_prepare_relocation_to_placeholders prepare_relocation_to_placeholders alias generic_prepare_relocation_to_placeholders prepare_relocation_to_placeholders