Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/mpdlcd/
Date: Thu, 03 Nov 2022 22:37:46
Message-Id: 1667515037.784086ddf2ab56186e473be8b3d7ae667f5234df.conikost@gentoo
1 commit: 784086ddf2ab56186e473be8b3d7ae667f5234df
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 3 22:36:29 2022 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 3 22:37:17 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=784086dd
7
8 dev-python/mpdlcd: migrate to pep517
9
10 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
11
12 dev-python/mpdlcd/Manifest | 2 +-
13 .../mpdlcd/{mpdlcd-0.5.2-r1.ebuild => mpdlcd-0.5.2-r2.ebuild} | 10 +++++++++-
14 2 files changed, 10 insertions(+), 2 deletions(-)
15
16 diff --git a/dev-python/mpdlcd/Manifest b/dev-python/mpdlcd/Manifest
17 index 48aaf4c73f1b..0792edb63c23 100644
18 --- a/dev-python/mpdlcd/Manifest
19 +++ b/dev-python/mpdlcd/Manifest
20 @@ -1 +1 @@
21 -DIST mpdlcd-0.5.2.tar.gz 30748 BLAKE2B 5609ac149a9aa806e516202adf1b9d0f4fc88e8370f331edc836082d7b3b85c519097149dd2b5cb838d8a9ff353421e17daf9236397e4b37e2923948f8dc9dac SHA512 e000120eee1ce99b549c5ac0cd00fba394ce1a373cce3dde819f6aabd6fc3b616e59ade6d6868b1e9f14afea4897cf541f2c3f5d0eaebcbbd03b15781a63b6fc
22 +DIST mpdlcd-0.5.2.gh.tar.gz 30748 BLAKE2B 5609ac149a9aa806e516202adf1b9d0f4fc88e8370f331edc836082d7b3b85c519097149dd2b5cb838d8a9ff353421e17daf9236397e4b37e2923948f8dc9dac SHA512 e000120eee1ce99b549c5ac0cd00fba394ce1a373cce3dde819f6aabd6fc3b616e59ade6d6868b1e9f14afea4897cf541f2c3f5d0eaebcbbd03b15781a63b6fc
23
24 diff --git a/dev-python/mpdlcd/mpdlcd-0.5.2-r1.ebuild b/dev-python/mpdlcd/mpdlcd-0.5.2-r2.ebuild
25 similarity index 67%
26 rename from dev-python/mpdlcd/mpdlcd-0.5.2-r1.ebuild
27 rename to dev-python/mpdlcd/mpdlcd-0.5.2-r2.ebuild
28 index d1208674c66f..ec74bf095e7c 100644
29 --- a/dev-python/mpdlcd/mpdlcd-0.5.2-r1.ebuild
30 +++ b/dev-python/mpdlcd/mpdlcd-0.5.2-r2.ebuild
31 @@ -3,13 +3,14 @@
32
33 EAPI=8
34
35 +DISTUTILS_USE_PEP517="setuptools"
36 PYTHON_COMPAT=( python3_{8..11} )
37
38 inherit distutils-r1
39
40 DESCRIPTION="A small tool to display the MPD status on a LCDproc server"
41 HOMEPAGE="https://github.com/rbarrois/mpdlcd"
42 -SRC_URI="https://github.com/rbarrois/${PN}/archive/${P}.tar.gz"
43 +SRC_URI="https://github.com/rbarrois/${PN}/archive/refs/tags/${P}.tar.gz -> ${P}.gh.tar.gz"
44 S="${WORKDIR}/${PN}-${P}"
45
46 LICENSE="BSD"
47 @@ -20,6 +21,13 @@ RDEPEND="dev-python/python-mpd"
48
49 distutils_enable_tests pytest
50
51 +src_prepare() {
52 + default
53 +
54 + # Fix QA 'The license_file parameter is deprecated, use license_files instead.'
55 + sed -e 's/license_file/license_files/g' -i setup.cfg || die
56 +}
57 +
58 python_install_all() {
59 distutils-r1_python_install_all