From 356f6374649b2ed2cfd4d62729d1d21f49adb04f Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sat, 8 Feb 2020 07:44:00 +0100 Subject: media-video/openshot: Switch to PYTHON_MULTI_USEDEP API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- media-video/openshot/openshot-2.4.0-r1.ebuild | 15 ++++---- media-video/openshot/openshot-2.4.4-r1.ebuild | 53 +++++++++++++++++++++++++++ media-video/openshot/openshot-2.4.4.ebuild | 50 ------------------------- 3 files changed, 60 insertions(+), 58 deletions(-) create mode 100644 media-video/openshot/openshot-2.4.4-r1.ebuild delete mode 100644 media-video/openshot/openshot-2.4.4.ebuild (limited to 'media-video') diff --git a/media-video/openshot/openshot-2.4.0-r1.ebuild b/media-video/openshot/openshot-2.4.0-r1.ebuild index cbde49448910..e426ccbfaa58 100644 --- a/media-video/openshot/openshot-2.4.0-r1.ebuild +++ b/media-video/openshot/openshot-2.4.0-r1.ebuild @@ -21,14 +21,13 @@ SLOT="1" KEYWORDS="amd64 x86" RDEPEND=" - dev-python/httplib2[${PYTHON_USEDEP}] - dev-python/PyQt5[${PYTHON_USEDEP},svg,webkit] - dev-python/pyzmq[${PYTHON_USEDEP}] - dev-python/requests[${PYTHON_USEDEP}] - >=media-libs/libopenshot-0.1.8[python,${PYTHON_USEDEP}] -" -DEPEND=" - dev-python/setuptools[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/httplib2[${PYTHON_MULTI_USEDEP}] + dev-python/PyQt5[${PYTHON_MULTI_USEDEP},svg,webkit] + dev-python/pyzmq[${PYTHON_MULTI_USEDEP}] + dev-python/requests[${PYTHON_MULTI_USEDEP}] + ') + >=media-libs/libopenshot-0.1.8[python,${PYTHON_SINGLE_USEDEP}] " S="${WORKDIR}" diff --git a/media-video/openshot/openshot-2.4.4-r1.ebuild b/media-video/openshot/openshot-2.4.4-r1.ebuild new file mode 100644 index 000000000000..cf2c948c325c --- /dev/null +++ b/media-video/openshot/openshot-2.4.4-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) +PYTHON_REQ_USE=xml +DISTUTILS_SINGLE_IMPL=1 + +inherit distutils-r1 xdg + +MY_PN="${PN}-qt" + +DESCRIPTION="Free, open-source, non-linear video editor to create and edit videos and movies" +HOMEPAGE="https://www.openshot.org/" +SRC_URI="https://github.com/OpenShot/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="1" +KEYWORDS="amd64 x86" +IUSE="doc" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/httplib2[${PYTHON_MULTI_USEDEP}] + dev-python/PyQt5[${PYTHON_MULTI_USEDEP},gui,svg,webkit,widgets] + dev-python/pyzmq[${PYTHON_MULTI_USEDEP}] + dev-python/requests[${PYTHON_MULTI_USEDEP}] + ') + >=media-libs/libopenshot-0.2.3[python,${PYTHON_SINGLE_USEDEP}] +" +BDEPEND=" + $(python_gen_cond_dep ' + doc? ( dev-python/sphinx[${PYTHON_MULTI_USEDEP}] ) + ') +" + +S="${WORKDIR}/${MY_PN}-${PV}" + +src_prepare() { + distutils-r1_python_prepare_all + # prevent setup.py from trying to update MIME databases + sed -i 's/^ROOT =.*/ROOT = False/' setup.py || die +} + +python_compile_all() { + use doc && emake -C doc html +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/_build/html/. ) + distutils-r1_python_install_all +} diff --git a/media-video/openshot/openshot-2.4.4.ebuild b/media-video/openshot/openshot-2.4.4.ebuild deleted file mode 100644 index 954d0061c562..000000000000 --- a/media-video/openshot/openshot-2.4.4.ebuild +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7} ) -PYTHON_REQ_USE=xml -DISTUTILS_SINGLE_IMPL=1 - -inherit distutils-r1 xdg - -MY_PN="${PN}-qt" - -DESCRIPTION="Free, open-source, non-linear video editor to create and edit videos and movies" -HOMEPAGE="https://www.openshot.org/" -SRC_URI="https://github.com/OpenShot/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="GPL-3+" -SLOT="1" -KEYWORDS="amd64 x86" -IUSE="doc" - -RDEPEND=" - dev-python/httplib2[${PYTHON_USEDEP}] - dev-python/PyQt5[${PYTHON_USEDEP},gui,svg,webkit,widgets] - dev-python/pyzmq[${PYTHON_USEDEP}] - dev-python/requests[${PYTHON_USEDEP}] - >=media-libs/libopenshot-0.2.3[python,${PYTHON_USEDEP}] -" -BDEPEND=" - dev-python/setuptools[${PYTHON_USEDEP}] - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) -" - -S="${WORKDIR}/${MY_PN}-${PV}" - -src_prepare() { - distutils-r1_python_prepare_all - # prevent setup.py from trying to update MIME databases - sed -i 's/^ROOT =.*/ROOT = False/' setup.py || die -} - -python_compile_all() { - use doc && emake -C doc html -} - -python_install_all() { - use doc && local HTML_DOCS=( doc/_build/html/. ) - distutils-r1_python_install_all -} -- cgit v1.2.3-65-gdbad