blob: fedb60a0068a9a10b314ad912bd41d1c6cfeaa62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517="setuptools"
DISTUTILS_EXT=1
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1
DESCRIPTION="A Python CD-DA ripper preferring accuracy over speed (forked from morituri)"
HOMEPAGE="https://github.com/whipper-team/whipper"
SRC_URI="https://github.com/whipper-team/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND="
media-libs/libsndfile[-minimal]
"
RDEPEND="
${DEPEND}
app-cdr/cdrdao
>=dev-libs/libcdio-paranoia-0.94_p2
dev-python/musicbrainzngs[${PYTHON_USEDEP}]
>=dev-python/pycdio-2.1.0[${PYTHON_USEDEP}]
dev-python/pygobject:3[${PYTHON_USEDEP}]
dev-python/discid[${PYTHON_USEDEP}]
dev-python/ruamel-yaml[${PYTHON_USEDEP}]
dev-python/setuptools[${PYTHON_USEDEP}]
media-libs/mutagen[${PYTHON_USEDEP}]
media-sound/sox[flac]
"
BDEPEND="
dev-python/setuptools-scm[${PYTHON_USEDEP}]
test? (
dev-python/twisted[${PYTHON_USEDEP}]
)
"
distutils_enable_tests unittest
PATCHES=(
"${FILESDIR}/${PN}-0.7.0-cdparanoia-name-fix.patch"
"${FILESDIR}/${PN}-0.10.0-ruamel-yaml.patch"
)
python_prepare_all() {
# accurip test totally depends on network access
rm "${PN}"/test/test_common_accurip.py || die
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
distutils-r1_python_prepare_all
}
|