2020-03-21 22:14:09 +01:00
|
|
|
# Copyright 1999-2020 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
2020-04-20 23:46:17 +02:00
|
|
|
PYTHON_COMPAT=( python3_{6,7} )
|
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
|
|
|
|
|
|
|
|
RESTRICT="
|
|
|
|
mirror
|
|
|
|
!test? ( test )
|
|
|
|
"
|
|
|
|
LICENSE="Apache-2.0"
|
|
|
|
SLOT="0"
|
|
|
|
IUSE="doc test"
|
|
|
|
|
|
|
|
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
|
|
|
|
distutils-r1_python_prepare_all
|
|
|
|
}
|