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/pycdio/
Date: Sun, 01 Aug 2021 08:17:09
Message-Id: 1627805691.4d7197ad5d12014ff208d9a8af9d4f10142516ee.mgorny@gentoo
1 commit: 4d7197ad5d12014ff208d9a8af9d4f10142516ee
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 1 06:42:27 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 1 08:14:51 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d7197ad
7
8 dev-python/pycdio: Bump to 2.1.1
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pycdio/Manifest | 1 +
13 dev-python/pycdio/pycdio-2.1.1.ebuild | 40 +++++++++++++++++++++++++++++++++++
14 2 files changed, 41 insertions(+)
15
16 diff --git a/dev-python/pycdio/Manifest b/dev-python/pycdio/Manifest
17 index 2a11f3cf007..2ea8c840bd4 100644
18 --- a/dev-python/pycdio/Manifest
19 +++ b/dev-python/pycdio/Manifest
20 @@ -1 +1,2 @@
21 DIST pycdio-2.1.0.tar.gz 241434 BLAKE2B eb981fdf52b205e14c6dd353ac4aca9a9e82dba6967a53b9059f8a265ef80832fe7236d68b2af7a6e408665fce0f5ed3541289e0b7d282834c4feb8e6b428fc4 SHA512 dc18fbd212f7040b8b06efaf263b17568e9c2d089cff7dfc4dda50a7225059e44c9c86e2d81ade92cf09c823f7189b5723fb601cb12f0884dc04e9f5418c5927
22 +DIST pycdio-2.1.1.tar.gz 246562 BLAKE2B 7dbbf384f9d70aade922172c6dd070229c1ffc65a76a491c45f91ec176bced9af0dc0e08f50f8ad78828273de14166eae886b402f282a10bdad3f8302276ef01 SHA512 4c756b1c2f39332add86e01af129ccb608178306be42c9719c163b6bad0ba4de3916ac477c6866450890e094b14a2689a24e7d19bcf13846330555c2bb1feaa7
23
24 diff --git a/dev-python/pycdio/pycdio-2.1.1.ebuild b/dev-python/pycdio/pycdio-2.1.1.ebuild
25 new file mode 100644
26 index 00000000000..635e1a54c83
27 --- /dev/null
28 +++ b/dev-python/pycdio/pycdio-2.1.1.ebuild
29 @@ -0,0 +1,40 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +PYTHON_COMPAT=( python3_{8..10} )
36 +inherit distutils-r1
37 +
38 +DESCRIPTION="Python OO interface to libcdio (CD Input and Control library)"
39 +HOMEPAGE="https://savannah.gnu.org/projects/libcdio/ https://pypi.org/project/pycdio/"
40 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
41 +
42 +LICENSE="GPL-3+"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86"
45 +IUSE="examples"
46 +
47 +BDEPEND="dev-lang/swig"
48 +DEPEND=">=dev-libs/libcdio-2.0.0"
49 +RDEPEND="${DEPEND}"
50 +
51 +distutils_enable_tests nose
52 +
53 +python_prepare_all() {
54 + # Remove obsolete sys.path and adjust 'data' paths in examples.
55 + sed -i \
56 + -e "s:^sys.path.insert.*::" \
57 + -e "s:\.\./data:./data:g" \
58 + example/*.py || die
59 + distutils-r1_python_prepare_all
60 +}
61 +
62 +python_install_all() {
63 + distutils-r1_python_install_all
64 + if use examples; then
65 + docinto examples
66 + dodoc -r example/.
67 + docompress -x /usr/share/doc/${PF}/examples
68 + fi
69 +}