commit:     19698cdcc9acce2f1a3df50742a0f1c40fcdd52d
Author:     Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Tue May 21 04:05:04 2024 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Thu May 23 09:14:00 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19698cdc

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

Closes: https://bugs.gentoo.org/930449
Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/36756
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 sys-apps/proot/proot-5.3.0.ebuild | 9 ++++++++-
 sys-apps/proot/proot-5.4.0.ebuild | 9 ++++++++-
 2 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/sys-apps/proot/proot-5.3.0.ebuild 
b/sys-apps/proot/proot-5.3.0.ebuild
index c567f39e0bf8..f7271b5c931f 100644
--- a/sys-apps/proot/proot-5.3.0.ebuild
+++ b/sys-apps/proot/proot-5.3.0.ebuild
@@ -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() {

diff --git a/sys-apps/proot/proot-5.4.0.ebuild 
b/sys-apps/proot/proot-5.4.0.ebuild
index e7fd0dc982cc..1ebb99466a25 100644
--- a/sys-apps/proot/proot-5.4.0.ebuild
+++ b/sys-apps/proot/proot-5.4.0.ebuild
@@ -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() {

Reply via email to