Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/gpodder/
Date: Tue, 31 May 2022 11:20:25
Message-Id: 1653996006.af1b429fe4bafcc7377b5bbba414068ef7ba3fb3.sam@gentoo
1 commit: af1b429fe4bafcc7377b5bbba414068ef7ba3fb3
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 31 11:18:15 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue May 31 11:20:06 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af1b429f
7
8 media-sound/gpodder: add Python 3.10, fix tests
9
10 Closes: https://bugs.gentoo.org/846065
11 Closes: https://bugs.gentoo.org/795165
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 media-sound/gpodder/gpodder-3.10.21-r1.ebuild | 80 +++++++++++++++++++++++++++
15 1 file changed, 80 insertions(+)
16
17 diff --git a/media-sound/gpodder/gpodder-3.10.21-r1.ebuild b/media-sound/gpodder/gpodder-3.10.21-r1.ebuild
18 new file mode 100644
19 index 000000000000..1732c1c4dc72
20 --- /dev/null
21 +++ b/media-sound/gpodder/gpodder-3.10.21-r1.ebuild
22 @@ -0,0 +1,80 @@
23 +# Copyright 1999-2022 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +
28 +PYTHON_COMPAT=( python3_{8..10} )
29 +PYTHON_REQ_USE="sqlite"
30 +DISTUTILS_SINGLE_IMPL=1
31 +DISTUTILS_USE_SETUPTOOLS=no
32 +
33 +inherit distutils-r1 optfeature xdg
34 +
35 +DESCRIPTION="A free cross-platform podcast aggregator"
36 +HOMEPAGE="https://gpodder.github.io/"
37 +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
38 +
39 +LICENSE="GPL-3"
40 +SLOT="0"
41 +KEYWORDS="~amd64"
42 +IUSE="+dbus bluetooth mtp"
43 +
44 +# As in Fedora: re-enable >=dev-python/eyeD3-0.7[${PYTHON_USEDEP}] and
45 +# ipod? ( media-libs/libgpod[python,${PYTHON_USEDEP}] ) once they
46 +# support python3
47 +COMMON_DEPEND="
48 + $(python_gen_cond_dep '
49 + dev-python/html5lib[${PYTHON_USEDEP}]
50 + dev-python/pycairo[${PYTHON_USEDEP}]
51 + >=dev-python/pygobject-3.22.0:3[${PYTHON_USEDEP}]
52 + >=dev-python/podcastparser-0.6.0[${PYTHON_USEDEP}]
53 + >=dev-python/mygpoclient-1.8[${PYTHON_USEDEP}]
54 + dev-python/requests[${PYTHON_USEDEP}]
55 + dbus? ( dev-python/dbus-python[${PYTHON_USEDEP}] )
56 + ')
57 + bluetooth? ( net-wireless/bluez )
58 + mtp? ( >=media-libs/libmtp-1.0.0:= )
59 +"
60 +RDEPEND="${COMMON_DEPEND}
61 + kernel_linux? ( sys-apps/iproute2 )
62 +"
63 +DEPEND="${COMMON_DEPEND}
64 + dev-util/desktop-file-utils
65 + dev-util/intltool
66 + sys-apps/help2man
67 + test? (
68 + $(python_gen_cond_dep '
69 + dev-python/minimock[${PYTHON_USEDEP}]
70 + dev-python/pytest-httpserver[${PYTHON_USEDEP}]
71 + ')
72 + )
73 +"
74 +
75 +distutils_enable_tests pytest
76 +
77 +src_prepare() {
78 + default
79 +
80 + sed -i -e 's:--cov=gpodder::' makefile || die
81 +}
82 +
83 +python_test() {
84 + # These are pulled out from the Makefile to give us more control
85 + # See bug #795165
86 + # Previously, we used 'emake releasetest' in src_test
87 + LC_ALL=C epytest --ignore=tests --ignore=src/gpodder/utilwin32ctypes.py --doctest-modules src/gpodder/util.py src/gpodder/jsonconfig.py \
88 + -p no:localserver
89 + LC_ALL=C epytest tests --ignore=src/gpodder/utilwin32ctypes.py --ignore=src/mygpoclient \
90 + -p no:localserver
91 +}
92 +
93 +src_install() {
94 + emake PYTHON="${EPYTHON}" DESTDIR="${D}" install
95 + distutils-r1_src_install
96 +}
97 +
98 +pkg_postinst() {
99 + xdg_pkg_postinst
100 +
101 + optfeature "for the youtube-dl extension" net-misc/youtube-dl
102 +}