mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 23:23:00 -04:00
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:
@@ -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
|
||||
Reference in New Issue
Block a user