Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/capstone/
Date: Tue, 01 Sep 2020 18:13:36
Message-Id: 1598984009.9006fa7d25ee94089e500635f3f90eb0922a8db6.slyfox@gentoo
1 commit: 9006fa7d25ee94089e500635f3f90eb0922a8db6
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 1 18:11:24 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 1 18:13:29 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9006fa7d
7
8 dev-libs/capstone: allow python-3.8
9
10 Package-Manager: Portage-3.0.5, Repoman-3.0.1
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 dev-libs/capstone/capstone-4.0.2-r2.ebuild | 12 ++++++++++--
14 1 file changed, 10 insertions(+), 2 deletions(-)
15
16 diff --git a/dev-libs/capstone/capstone-4.0.2-r2.ebuild b/dev-libs/capstone/capstone-4.0.2-r2.ebuild
17 index 99f181cb326..58806a1fa74 100644
18 --- a/dev-libs/capstone/capstone-4.0.2-r2.ebuild
19 +++ b/dev-libs/capstone/capstone-4.0.2-r2.ebuild
20 @@ -4,7 +4,7 @@
21 EAPI=7
22
23 DISTUTILS_OPTIONAL=1
24 -PYTHON_COMPAT=( python{3_6,3_7} )
25 +PYTHON_COMPAT=( python{3_6,3_7,3_8} )
26
27 inherit cmake-utils distutils-r1 toolchain-funcs
28
29 @@ -25,6 +25,9 @@ DEPEND="${RDEPEND}
30 "
31 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
32
33 +#TODO: needs upstream fixes
34 +#distutils_enable_tests setup.py
35 +
36 S=${WORKDIR}/${P/_rc/-rc}
37
38 PATCHES=(
39 @@ -32,9 +35,14 @@ PATCHES=(
40 )
41
42 wrap_python() {
43 + local phase=$1
44 + shift
45 +
46 if use python; then
47 pushd bindings/python >/dev/null || die
48 - distutils-r1_${1} "$@"
49 + echo distutils-r1_${phase} "$@"
50 + pwd
51 + distutils-r1_${phase} "$@"
52 popd >/dev/null
53 fi
54 }