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.4 KiB
56 lines
1.4 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
4 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
3 years ago
|
PYTHON_COMPAT=( python3_{8,9} )
|
||
4 years ago
|
PYTHON_REQ_USE=xml
|
||
|
DISTUTILS_SINGLE_IMPL=1
|
||
|
|
||
|
inherit distutils-r1 xdg
|
||
|
|
||
|
MY_PN="${PN}-qt"
|
||
|
|
||
3 years ago
|
DESCRIPTION="Award-winning free and open-source video editor"
|
||
|
HOMEPAGE="https://openshot.org/"
|
||
4 years ago
|
SRC_URI="https://github.com/OpenShot/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||
3 years ago
|
S="${WORKDIR}/${MY_PN}-${PV}"
|
||
4 years ago
|
|
||
|
LICENSE="GPL-3+"
|
||
|
SLOT="1"
|
||
3 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
4 years ago
|
IUSE="doc"
|
||
|
|
||
3 years ago
|
RDEPEND="$(python_gen_cond_dep '
|
||
|
dev-python/httplib2[${PYTHON_MULTI_USEDEP}]
|
||
|
dev-python/PyQt5[${PYTHON_MULTI_USEDEP},gui,svg,widgets]
|
||
|
dev-python/PyQtWebEngine[${PYTHON_MULTI_USEDEP}]
|
||
|
dev-python/pyzmq[${PYTHON_MULTI_USEDEP}]
|
||
|
dev-python/requests[${PYTHON_MULTI_USEDEP}]
|
||
4 years ago
|
')
|
||
3 years ago
|
>=media-libs/libopenshot-0.2.6:0=[python,${PYTHON_SINGLE_USEDEP}]"
|
||
|
DEPEND=""
|
||
|
BDEPEND="$(python_gen_cond_dep '
|
||
|
doc? ( dev-python/sphinx[${PYTHON_MULTI_USEDEP}] )
|
||
|
')"
|
||
4 years ago
|
|
||
|
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
|
||
|
}
|
||
3 years ago
|
|
||
|
python_test() {
|
||
|
distutils_install_for_testing
|
||
|
"${EPYTHON}" src/tests/query_tests.py -v --platform minimal || die
|
||
|
}
|