Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/plyr/
Date: Sat, 25 Apr 2020 09:07:35
Message-Id: 1587805633.f5e2257f4b80039ca902ca950eacfa4da390a9ac.mgorny@gentoo
1 commit: f5e2257f4b80039ca902ca950eacfa4da390a9ac
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 25 08:59:01 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 25 09:07:13 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5e2257f
7
8 dev-python/plyr: Enable py3.{7,8}, modernize
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/plyr/plyr-1.0.6.ebuild | 35 ++++++++---------------------------
13 1 file changed, 8 insertions(+), 27 deletions(-)
14
15 diff --git a/dev-python/plyr/plyr-1.0.6.ebuild b/dev-python/plyr/plyr-1.0.6.ebuild
16 index 06c9e7ac8b3..249cb654b97 100644
17 --- a/dev-python/plyr/plyr-1.0.6.ebuild
18 +++ b/dev-python/plyr/plyr-1.0.6.ebuild
19 @@ -1,8 +1,10 @@
20 # Copyright 1999-2020 Gentoo Authors
21 # Distributed under the terms of the GNU General Public License v2
22
23 -EAPI="5"
24 -PYTHON_COMPAT=( python3_6 )
25 +EAPI=7
26 +
27 +DISTUTILS_USE_SETUPTOOLS=no
28 +PYTHON_COMPAT=( python3_{6,7,8} )
29
30 inherit distutils-r1 flag-o-matic
31
32 @@ -13,19 +15,17 @@ DESCRIPTION="A python wrapper for Glyr"
33 HOMEPAGE="https://sahib.github.io/python-glyr/intro.html
34 https://github.com/sahib/python-glyr"
35 SRC_URI="https://github.com/sahib/${MY_PN}/archive/${PV}.tar.gz -> ${MY_P}.tar.gz"
36 +S="${WORKDIR}/${MY_P}"
37
38 LICENSE="GPL-3+"
39 KEYWORDS="amd64 x86"
40 SLOT="0"
41 -IUSE="doc"
42
43 -RDEPEND="media-libs/glyr"
44 +RDEPEND="media-libs/glyr:="
45 DEPEND="${RDEPEND}
46 - dev-python/cython[${PYTHON_USEDEP}]
47 - dev-python/setuptools[${PYTHON_USEDEP}]
48 - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
49 + dev-python/cython[${PYTHON_USEDEP}]"
50
51 -S="${WORKDIR}/${MY_P}"
52 +distutils_enable_sphinx docs
53
54 python_prepare_all() {
55 # Disable test requiring internet connection
56 @@ -33,25 +33,6 @@ python_prepare_all() {
57 distutils-r1_python_prepare_all
58 }
59
60 -python_compile() {
61 - if ! python_is_python3; then
62 - local CFLAGS=${CFLAGS}
63 - append-cflags -fno-strict-aliasing
64 - fi
65 - distutils-r1_python_compile
66 -}
67 -
68 -python_compile_all() {
69 - if use doc; then
70 - emake -C docs html
71 - fi
72 -}
73 -
74 python_test() {
75 "${PYTHON}" -m unittest discover tests || die "Tests fail with ${EPYTHON}"
76 }
77 -
78 -python_install_all() {
79 - use doc && local HTML_DOCS=( docs/build/html/. )
80 - distutils-r1_python_install_all
81 -}