Gentoo Archives: gentoo-commits

From: Haelwenn Monnier <contact@×××××××××.me>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: sys-apps/intel-cmt-cat/
Date: Fri, 27 Aug 2021 16:11:03
Message-Id: 1629878417.b886b5f8bd874281028e16ecd1a5cdcd76c859b2.lanodan@gentoo
1 commit: b886b5f8bd874281028e16ecd1a5cdcd76c859b2
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Wed Aug 25 07:57:43 2021 +0000
4 Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
5 CommitDate: Wed Aug 25 08:00:17 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b886b5f8
7
8 sys-apps/intel-cmt-cat: disable pypy3
9
10 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
11
12 sys-apps/intel-cmt-cat/intel-cmt-cat-4.2.0.ebuild | 40 +++++++++++++++--------
13 1 file changed, 27 insertions(+), 13 deletions(-)
14
15 diff --git a/sys-apps/intel-cmt-cat/intel-cmt-cat-4.2.0.ebuild b/sys-apps/intel-cmt-cat/intel-cmt-cat-4.2.0.ebuild
16 index e65818eef..0efe73894 100644
17 --- a/sys-apps/intel-cmt-cat/intel-cmt-cat-4.2.0.ebuild
18 +++ b/sys-apps/intel-cmt-cat/intel-cmt-cat-4.2.0.ebuild
19 @@ -3,7 +3,7 @@
20
21 EAPI=8
22
23 -PYTHON_COMPAT=( python3_{8..10} pypy3 )
24 +PYTHON_COMPAT=( python3_{8..10} )
25
26 inherit distutils-r1 perl-module
27
28 @@ -21,14 +21,22 @@ IUSE="perl"
29
30 RDEPEND="
31 ${PYTHON_DEPS}
32 + dev-python/jsonschema[${PYTHON_USEDEP}]
33 +
34 perl? ( dev-lang/perl:= )
35 "
36 -DEPEND="${RDEPEND}"
37 +DEPEND="
38 + ${RDEPEND}
39 + test? ( dev-python/mock[${PYTHON_USEDEP}] )
40 +"
41
42 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
43 PATCHES=( "${FILESDIR}/${PN}-perl-makefile.patch" )
44
45 distutils_enable_tests unittest
46 +distutils_enable_tests pytest
47 +
48 +#TODO: install appqos
49
50 src_prepare() {
51 mkdir -p "${T}/prefix" || die
52 @@ -48,9 +56,6 @@ src_compile() {
53 pushd "lib/python" || die
54 python_foreach_impl distutils-r1_python_compile
55 popd || die
56 -# pushd "appqos" || die
57 -# python_foreach_impl distutils-r1_python_compile
58 -# popd || die
59 }
60
61 src_install() {
62 @@ -80,6 +85,9 @@ src_install() {
63 docinto appqos
64 dodoc appqos/README.md
65
66 + unset DOCS
67 + python_foreach_impl python_install
68 +
69 if use perl ; then
70 pushd "lib/perl" || die
71 unset DOCS
72 @@ -89,20 +97,26 @@ src_install() {
73 docinto lib/perl
74 dodoc lib/perl/README
75 fi
76 - unset DOCS
77 +}
78 +
79 +src_test() {
80 + python_foreach_impl python_test
81 +}
82 +
83 +python_install() {
84 pushd "lib/python" || die
85 - python_foreach_impl distutils-r1_python_install
86 + distutils-r1_python_install
87 popd || die
88 -# pushd "appqos" || die
89 -# python_foreach_impl distutils-r1_python_install
90 -# popd || die
91 +
92 +# python_domodule appqos
93 }
94
95 -src_test() {
96 +python_test() {
97 pushd "lib/python" || die
98 - python_foreach_impl python_test
99 + eunittest
100 popd || die
101 +
102 # pushd "appqos" || die
103 -# python_foreach_impl python_test
104 +# epytest -vv tests
105 # popd || die
106 }