You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.2 KiB
56 lines
1.2 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
5 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
4 years ago
|
PYTHON_COMPAT=( python3_{7..9} )
|
||
5 years ago
|
DISTUTILS_IN_SOURCE_BUILD=1
|
||
5 years ago
|
inherit distutils-r1
|
||
|
|
||
|
DESCRIPTION="Python Bindings for TagLib"
|
||
4 years ago
|
HOMEPAGE="
|
||
|
https://mathema.tician.de//software/tagpy
|
||
5 years ago
|
https://pypi.org/project/tagpy/"
|
||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="BSD"
|
||
|
SLOT="0"
|
||
5 years ago
|
KEYWORDS="amd64 ppc ppc64 ~sparc x86"
|
||
5 years ago
|
IUSE="examples"
|
||
|
|
||
|
RDEPEND="
|
||
3 years ago
|
>=dev-libs/boost-1.70:=[python,threads(+),${PYTHON_USEDEP}]
|
||
4 years ago
|
>=media-libs/taglib-1.8"
|
||
5 years ago
|
DEPEND="${RDEPEND}"
|
||
5 years ago
|
|
||
4 years ago
|
distutils_enable_tests pytest
|
||
|
|
||
|
PATCHES=( "${FILESDIR}"/${P}-taglib-1.8.patch )
|
||
5 years ago
|
|
||
|
python_prepare_all() {
|
||
|
cp "${FILESDIR}"/${P}-readme.rst README.rst || die
|
||
|
distutils-r1_python_prepare_all
|
||
|
}
|
||
|
|
||
|
python_configure() {
|
||
|
local boostpy_ver="${EPYTHON#python}"
|
||
|
|
||
4 years ago
|
"${EPYTHON}" configure.py \
|
||
|
--taglib-inc-dir="${ESYSROOT}"/usr/include/taglib \
|
||
5 years ago
|
--boost-python-libname="boost_python${boostpy_ver/\.}"
|
||
5 years ago
|
}
|
||
|
|
||
4 years ago
|
python_test() {
|
||
|
cd test || die
|
||
|
"${EPYTHON}" *.py || die "Testsuite failed under ${EPYTHON}"
|
||
|
}
|
||
|
|
||
5 years ago
|
python_install_all() {
|
||
|
if use examples; then
|
||
|
docinto examples
|
||
4 years ago
|
dodoc -r test/.
|
||
5 years ago
|
fi
|
||
|
|
||
|
distutils-r1_python_install_all
|
||
|
}
|