Gentoo Archives: gentoo-commits

From: Nicola Smaniotto <smaniotto.nicola@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pydub/
Date: Wed, 28 Jul 2021 08:47:13
Message-Id: 1627462024.62f75ba4b54d232156ae5850e6555c26d4f6f16c.smaniotto.nicola@gentoo
1 commit: 62f75ba4b54d232156ae5850e6555c26d4f6f16c
2 Author: Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com>
3 AuthorDate: Wed Jul 28 08:46:47 2021 +0000
4 Commit: Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com>
5 CommitDate: Wed Jul 28 08:47:04 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=62f75ba4
7
8 dev-python/pydub: add 0.25.1 test dep and optfeature
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.2
11 Signed-off-by: Nicola Smaniotto <smaniotto.nicola <AT> gmail.com>
12
13 dev-python/pydub/pydub-0.25.1.ebuild | 16 ++++++++++++++--
14 1 file changed, 14 insertions(+), 2 deletions(-)
15
16 diff --git a/dev-python/pydub/pydub-0.25.1.ebuild b/dev-python/pydub/pydub-0.25.1.ebuild
17 index 613b9b83c..cf4e8d002 100644
18 --- a/dev-python/pydub/pydub-0.25.1.ebuild
19 +++ b/dev-python/pydub/pydub-0.25.1.ebuild
20 @@ -1,11 +1,11 @@
21 # Copyright 2021 Gentoo Authors
22 # Distributed under the terms of the GNU General Public License v2
23
24 -EAPI=8
25 +EAPI=7
26
27 PYTHON_COMPAT=( python3_{8..9} )
28
29 -inherit distutils-r1
30 +inherit distutils-r1 optfeature
31
32 DESCRIPTION="Manipulate audio with an simple and easy high level interface"
33 HOMEPAGE="http://pydub.com/"
34 @@ -17,6 +17,18 @@ KEYWORDS="~amd64"
35
36 distutils_enable_tests unittest
37
38 +BDEPEND="
39 + test? (
40 + media-video/ffmpeg
41 + )
42 + "
43 +
44 python_test() {
45 eunittest test/
46 }
47 +
48 +pkg_postinst() {
49 + optfeature "opening and saving non-wav files - like mp3" media-video/ffmpeg
50 + #optfeature "playing audio" dev-python/simpleaudio # upstream suggests this, not available in gentoo or guru
51 + optfeature "playing audio" dev-python/pyaudio
52 +}