sci-electronics/verilator: add 5.048-r1, drop 5.048

- src_prepare seds replaced bare "python3" with ${EPYTHON}, mangling
  variable names like python3_version into python3.13_version.
- Use word-boundary regex (\<python3\>) so only command-name tokens
  are substituted, leaving identifiers alone.

Closes: https://bugs.gentoo.org/975566
Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
Huang Rui
2026-05-20 20:02:17 +08:00
parent 03cdec0a43
commit add9224277

View File

@@ -53,9 +53,10 @@ src_prepare() {
sed -i "s/UNKNOWN_REV/(Gentoo ${PVR})/g" "${S}"/src/config_rev || die
fi
# https://bugs.gentoo.org/785151
sed -i "s/python3/${EPYTHON}/g" "${S}"/configure.ac || die
find . -name "Makefile" -exec sed -i "s/python3/${EPYTHON}/g" {} + || die
find test_regress -type f -exec sed -i "s/python3/${EPYTHON}/g" {} + || die
# Word-boundary match to avoid mangling python3_version etc. (bug 975566).
sed -i "s/\<python3\>/${EPYTHON}/g" "${S}"/configure.ac || die
find . -name "Makefile" -exec sed -i "s/\<python3\>/${EPYTHON}/g" {} + || die
find test_regress -type f -exec sed -i "s/\<python3\>/${EPYTHON}/g" {} + || die
python_fix_shebang .
# https://bugs.gentoo.org/887917
if ! use debug; then