blob: 1d343447f936f02a453fecd00b61b309a46beb31 (
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
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
DISTUTILS_IN_SOURCE_BUILD=1
inherit distutils-r1
DESCRIPTION="Python Bindings for TagLib"
HOMEPAGE="
https://mathema.tician.de//software/tagpy
https://pypi.org/project/tagpy/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 ~sparc x86"
IUSE="examples"
RDEPEND="
>=dev-libs/boost-1.70:=[python,threads(+),${PYTHON_USEDEP}]
>=media-libs/taglib-1.8"
DEPEND="${RDEPEND}"
distutils_enable_tests pytest
PATCHES=( "${FILESDIR}"/${P}-taglib-1.8.patch )
python_prepare_all() {
cp "${FILESDIR}"/${P}-readme.rst README.rst || die
distutils-r1_python_prepare_all
}
python_configure() {
local boostpy_ver="${EPYTHON#python}"
"${EPYTHON}" configure.py \
--taglib-inc-dir="${ESYSROOT}"/usr/include/taglib \
--boost-python-libname="boost_python${boostpy_ver/\.}"
}
python_test() {
cd test || die
"${EPYTHON}" *.py || die "Testsuite failed under ${EPYTHON}"
}
python_install_all() {
if use examples; then
docinto examples
dodoc -r test/.
fi
distutils-r1_python_install_all
}
|