sys-apps/proot: handle docutils-0.21 dropping console scripts

Closes: https://bugs.gentoo.org/930449
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/36756
Signed-off-by: Florian Schmaus <flow@gentoo.org>
This commit is contained in:
Alfred Wingate
2024-05-21 07:05:04 +03:00
committed by Florian Schmaus
parent e69eec6b24
commit 19698cdcc9
2 changed files with 16 additions and 2 deletions

View File

@@ -42,7 +42,14 @@ src_compile() {
CHECK_VERSION="true" \
CAREBUILDENV="ok" \
proot $(use care && echo "care")
emake -C doc SUFFIX=".py" proot/man.1
# Docutils >=0.21 dropped .py console scripts
# bug #930449
if has_version ">=dev-python/docutils-0.21" ; then
emake -C doc proot/man.1
else
emake -C doc SUFFIX=".py" proot/man.1
fi
}
src_install() {

View File

@@ -42,7 +42,14 @@ src_compile() {
CHECK_VERSION="true" \
CAREBUILDENV="ok" \
proot $(use care && echo "care")
emake -C doc SUFFIX=".py" proot/man.1
# Docutils >=0.21 dropped .py console scripts
# bug #930449
if has_version ">=dev-python/docutils-0.21" ; then
emake -C doc proot/man.1
else
emake -C doc SUFFIX=".py" proot/man.1
fi
}
src_install() {