commit:     9006fa7d25ee94089e500635f3f90eb0922a8db6
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Tue Sep  1 18:11:24 2020 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Tue Sep  1 18:13:29 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9006fa7d

dev-libs/capstone: allow python-3.8

Package-Manager: Portage-3.0.5, Repoman-3.0.1
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 dev-libs/capstone/capstone-4.0.2-r2.ebuild | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/dev-libs/capstone/capstone-4.0.2-r2.ebuild 
b/dev-libs/capstone/capstone-4.0.2-r2.ebuild
index 99f181cb326..58806a1fa74 100644
--- a/dev-libs/capstone/capstone-4.0.2-r2.ebuild
+++ b/dev-libs/capstone/capstone-4.0.2-r2.ebuild
@@ -4,7 +4,7 @@
 EAPI=7
 
 DISTUTILS_OPTIONAL=1
-PYTHON_COMPAT=( python{3_6,3_7} )
+PYTHON_COMPAT=( python{3_6,3_7,3_8} )
 
 inherit cmake-utils distutils-r1 toolchain-funcs
 
@@ -25,6 +25,9 @@ DEPEND="${RDEPEND}
 "
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
+#TODO: needs upstream fixes
+#distutils_enable_tests setup.py
+
 S=${WORKDIR}/${P/_rc/-rc}
 
 PATCHES=(
@@ -32,9 +35,14 @@ PATCHES=(
 )
 
 wrap_python() {
+       local phase=$1
+       shift
+
        if use python; then
                pushd bindings/python >/dev/null || die
-               distutils-r1_${1} "$@"
+               echo distutils-r1_${phase} "$@"
+               pwd
+               distutils-r1_${phase} "$@"
                popd >/dev/null
        fi
 }

Reply via email to