media-video/qliveplayer: add check for sed

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Jian Lin <jlin.gentoo@outlook.com>
This commit is contained in:
Jian Lin
2021-02-17 01:53:58 +08:00
parent 58fa8d0cea
commit 8df595c6b6
2 changed files with 18 additions and 14 deletions

View File

@@ -47,13 +47,15 @@ src_prepare()
{
xdg_environment_reset
cmake_src_prepare
# fix python version
sed -i "s/python3/${EPYTHON}/" src/qlphelper/bilivideo.cpp \
|| die "Sed failed to set python version!"
sed -i "s/python3/${EPYTHON}/" src/qlphelper/danmakulauncher.cpp \
|| die "Sed failed to set python version!"
sed -i "s/python3/${EPYTHON}/" src/qlphelper/streamfinder.cpp \
|| die "Sed failed to set python version!"
# respect PYTHON_SINGLE_TARGET
grep 'p.start("python3", args);' src/qlphelper/bilivideo.cpp >/dev/null || die
sed -i "s/python3/${EPYTHON}/" src/qlphelper/bilivideo.cpp || die
grep 'dmcPyProcess->start("python3", dmcPy);' \
src/qlphelper/danmakulauncher.cpp >/dev/null || die
sed -i "s/python3/${EPYTHON}/" src/qlphelper/danmakulauncher.cpp || die
grep 'proc->start("python3", args);' \
src/qlphelper/streamfinder.cpp >/dev/null || die
sed -i "s/python3/${EPYTHON}/" src/qlphelper/streamfinder.cpp || die
}
src_install()

View File

@@ -47,13 +47,15 @@ src_prepare()
{
xdg_environment_reset
cmake_src_prepare
# fix python version
sed -i "s/python3/${EPYTHON}/" src/qlphelper/bilivideo.cpp \
|| die "Sed failed to set python version!"
sed -i "s/python3/${EPYTHON}/" src/qlphelper/danmakulauncher.cpp \
|| die "Sed failed to set python version!"
sed -i "s/python3/${EPYTHON}/" src/qlphelper/streamfinder.cpp \
|| die "Sed failed to set python version!"
# respect PYTHON_SINGLE_TARGET
grep 'p.start("python3", args);' src/qlphelper/bilivideo.cpp >/dev/null || die
sed -i "s/python3/${EPYTHON}/" src/qlphelper/bilivideo.cpp || die
grep 'dmcPyProcess->start("python3", dmcPy);' \
src/qlphelper/danmakulauncher.cpp >/dev/null || die
sed -i "s/python3/${EPYTHON}/" src/qlphelper/danmakulauncher.cpp || die
grep 'proc->start("python3", args);' \
src/qlphelper/streamfinder.cpp >/dev/null || die
sed -i "s/python3/${EPYTHON}/" src/qlphelper/streamfinder.cpp || die
}
src_install()