sys-apps/locale-gen: prefixify in a consistent way for >=3.2-r1

The 3.4 ebuild introduced a slightly more refined expression for
prefixifying the shebang in src_prepare(). Align the other ebuilds
accordingly.

Signed-off-by: Kerin Millar <kfm@plushkava.net>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Kerin Millar 2025-08-23 02:25:43 +01:00 committed by Sam James
parent c449d4d9c5
commit bbfddc57ee
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
3 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ src_prepare() {
eapply_user
perl -pi -e '$f //= ($. == 1 && s/^#!\K\//$ENV{MY_EPREFIX}\//); END { exit !$f }' "${PN}" \
perl -pi -e '$f //= ($. == 1 && s/^#!\h*\K/$ENV{MY_EPREFIX}/); END { exit !$f }' "${PN}" \
|| die "Failed to prefixify ${PN}"
}

View File

@ -33,7 +33,7 @@ src_prepare() {
eapply_user
perl -pi -e '$f //= ($. == 1 && s/^#!\K\//$ENV{MY_EPREFIX}\//); END { exit !$f }' "${PN}" \
perl -pi -e '$f //= ($. == 1 && s/^#!\h*\K/$ENV{MY_EPREFIX}/); END { exit !$f }' "${PN}" \
|| die "Failed to prefixify ${PN}"
}

View File

@ -33,7 +33,7 @@ src_prepare() {
eapply_user
perl -pi -e '$f //= ($. == 1 && s/^#!\K\//$ENV{MY_EPREFIX}\//); END { exit !$f }' "${PN}" \
perl -pi -e '$f //= ($. == 1 && s/^#!\h*\K/$ENV{MY_EPREFIX}/); END { exit !$f }' "${PN}" \
|| die "Failed to prefixify ${PN}"
}