sci-electronics/slang: fix mv: cannot stat pyslang

Closes: https://bugs.gentoo.org/879829
Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
Huang Rui
2022-11-06 11:33:34 +08:00
parent 4c689636ef
commit 825e3c9f2f
2 changed files with 10 additions and 6 deletions

View File

@@ -61,7 +61,9 @@ src_configure() {
src_install() {
cmake_src_install
# fix python unexpected paths QA
mkdir -p "${D}/$(python_get_sitedir)" || die
mv "${D}"/usr/pyslang* "${D}/$(python_get_sitedir)" || die
if use python; then
# fix python unexpected paths QA
mkdir -p "${D}/$(python_get_sitedir)" || die
mv "${D}"/usr/pyslang* "${D}/$(python_get_sitedir)" || die
fi
}

View File

@@ -61,7 +61,9 @@ src_configure() {
src_install() {
cmake_src_install
# fix python unexpected paths QA
mkdir -p "${D}/$(python_get_sitedir)" || die
mv "${D}"/usr/pyslang* "${D}/$(python_get_sitedir)" || die
if use python; then
# fix python unexpected paths QA
mkdir -p "${D}/$(python_get_sitedir)" || die
mv "${D}"/usr/pyslang* "${D}/$(python_get_sitedir)" || die
fi
}