mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 20:43:09 -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
|
sed -i "s/UNKNOWN_REV/(Gentoo ${PVR})/g" "${S}"/src/config_rev || die
|
||||||
fi
|
fi
|
||||||
# https://bugs.gentoo.org/785151
|
# https://bugs.gentoo.org/785151
|
||||||
sed -i "s/python3/${EPYTHON}/g" "${S}"/configure.ac || die
|
# Word-boundary match to avoid mangling python3_version etc. (bug 975566).
|
||||||
find . -name "Makefile" -exec sed -i "s/python3/${EPYTHON}/g" {} + || die
|
sed -i "s/\<python3\>/${EPYTHON}/g" "${S}"/configure.ac || die
|
||||||
find test_regress -type f -exec sed -i "s/python3/${EPYTHON}/g" {} + || 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 .
|
python_fix_shebang .
|
||||||
# https://bugs.gentoo.org/887917
|
# https://bugs.gentoo.org/887917
|
||||||
if ! use debug; then
|
if ! use debug; then
|
||||||
Reference in New Issue
Block a user