2021-01-18 11:56:37 +01:00
|
|
|
# Copyright 1999-2021 Gentoo Authors
|
2020-03-21 22:14:09 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
2021-01-18 11:56:37 +01:00
|
|
|
PYTHON_COMPAT=( python3_{7..9} )
|
2020-03-21 22:14:09 +01:00
|
|
|
|
|
|
|
inherit distutils-r1
|
|
|
|
|
2020-05-10 22:44:22 +02:00
|
|
|
DESCRIPTION="Python bindings for FFmpeg with complex filtering support "
|
2020-03-21 22:14:09 +01:00
|
|
|
HOMEPAGE="https://github.com/kkroening/ffmpeg-python"
|
|
|
|
|
|
|
|
if [[ "${PV}" == *9999* ]]; then
|
|
|
|
inherit git-r3
|
|
|
|
EGIT_REPO_URI="https://github.com/kkroening/${PN}.git"
|
|
|
|
else
|
|
|
|
SRC_URI="https://github.com/kkroening/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
fi
|
|
|
|
|
2021-01-18 11:56:37 +01:00
|
|
|
RESTRICT="mirror"
|
2020-03-21 22:14:09 +01:00
|
|
|
LICENSE="Apache-2.0"
|
|
|
|
SLOT="0"
|
|
|
|
|
|
|
|
DEPEND="
|
2020-05-10 22:44:22 +02:00
|
|
|
>=dev-python/future-0.18.2[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/numpy-1.16.5[${PYTHON_USEDEP}]
|
2020-07-24 06:33:18 +02:00
|
|
|
dev-python/wheel
|
2020-03-21 22:14:09 +01:00
|
|
|
test? (
|
|
|
|
>=dev-python/pytest-mock-1.11.2[${PYTHON_USEDEP}]
|
|
|
|
)
|
|
|
|
"
|
|
|
|
RDEPEND="
|
2020-05-10 22:44:22 +02:00
|
|
|
${RDEPEND}
|
2020-03-22 00:06:01 +01:00
|
|
|
media-video/ffmpeg
|
2020-03-21 22:14:09 +01:00
|
|
|
"
|
2020-05-10 22:44:22 +02:00
|
|
|
|
|
|
|
distutils_enable_tests pytest
|
|
|
|
|
|
|
|
distutils_enable_sphinx doc/src
|
2020-07-24 06:33:18 +02:00
|
|
|
|
|
|
|
python_prepare_all() {
|
|
|
|
sed -i -e '/pytest-runner/d' setup.py || die
|
2021-01-18 11:56:37 +01:00
|
|
|
|
2020-07-24 06:33:18 +02:00
|
|
|
distutils-r1_python_prepare_all
|
|
|
|
}
|