|
|
@ -1,12 +1,11 @@
|
|
|
|
# Copyright 1999-2022 Gentoo Authors
|
|
|
|
# Copyright 1999-2023 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
|
|
|
|
EAPI=8
|
|
|
|
EAPI=8
|
|
|
|
|
|
|
|
|
|
|
|
PYTHON_REQ_USE=xml
|
|
|
|
|
|
|
|
DISTUTILS_SINGLE_IMPL=1
|
|
|
|
DISTUTILS_SINGLE_IMPL=1
|
|
|
|
DISTUTILS_USE_PEP517=setuptools
|
|
|
|
DISTUTILS_USE_PEP517=setuptools
|
|
|
|
PYTHON_COMPAT=( python3_{9..11} )
|
|
|
|
PYTHON_COMPAT=( python3_{10..11} )
|
|
|
|
|
|
|
|
|
|
|
|
inherit distutils-r1 xdg
|
|
|
|
inherit distutils-r1 xdg
|
|
|
|
|
|
|
|
|
|
|
@ -22,13 +21,14 @@ SLOT="1"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
IUSE="doc"
|
|
|
|
IUSE="doc"
|
|
|
|
|
|
|
|
|
|
|
|
RDEPEND="$(python_gen_cond_dep '
|
|
|
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
|
|
|
dev-python/httplib2[${PYTHON_USEDEP}]
|
|
|
|
|
|
|
|
dev-python/PyQt5[${PYTHON_USEDEP},gui,svg,widgets]
|
|
|
|
RDEPEND="${PYTHON_DEPS}
|
|
|
|
dev-python/PyQtWebEngine[${PYTHON_USEDEP}]
|
|
|
|
dev-python/httplib2[${PYTHON_SINGLE_USEDEP}]
|
|
|
|
dev-python/pyzmq[${PYTHON_USEDEP}]
|
|
|
|
dev-python/PyQt5[${PYTHON_SINGLE_USEDEP},gui,svg,widgets]
|
|
|
|
dev-python/requests[${PYTHON_USEDEP}]
|
|
|
|
dev-python/PyQtWebEngine[${PYTHON_SINGLE_USEDEP}]
|
|
|
|
')
|
|
|
|
dev-python/pyzmq[${PYTHON_SINGLE_USEDEP}]
|
|
|
|
|
|
|
|
dev-python/requests[${PYTHON_SINGLE_USEDEP}]
|
|
|
|
>=media-libs/libopenshot-0.3.2:0=[python,${PYTHON_SINGLE_USEDEP}]"
|
|
|
|
>=media-libs/libopenshot-0.3.2:0=[python,${PYTHON_SINGLE_USEDEP}]"
|
|
|
|
DEPEND=""
|
|
|
|
DEPEND=""
|
|
|
|
BDEPEND="$(python_gen_cond_dep '
|
|
|
|
BDEPEND="$(python_gen_cond_dep '
|
|
|
@ -37,12 +37,6 @@ BDEPEND="$(python_gen_cond_dep '
|
|
|
|
|
|
|
|
|
|
|
|
PATCHES=( "${FILESDIR}/${P}-fix-pybuild.patch" )
|
|
|
|
PATCHES=( "${FILESDIR}/${P}-fix-pybuild.patch" )
|
|
|
|
|
|
|
|
|
|
|
|
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() {
|
|
|
|
python_compile_all() {
|
|
|
|
use doc && emake -C doc html
|
|
|
|
use doc && emake -C doc html
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -53,8 +47,6 @@ python_install_all() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
python_test() {
|
|
|
|
python_test() {
|
|
|
|
local -x sitedir=$(python_get_sitedir)
|
|
|
|
cd "${BUILD_DIR}/install$(python_get_sitedir)/${PN}_qt/" || die
|
|
|
|
local -x PYPATH="${BUILD_DIR}/install/${sitedir}/${PN}_qt/"
|
|
|
|
|
|
|
|
cd "${PYPATH}"
|
|
|
|
|
|
|
|
"${EPYTHON}" tests/query_tests.py -v --platform minimal || die
|
|
|
|
"${EPYTHON}" tests/query_tests.py -v --platform minimal || die
|
|
|
|
}
|
|
|
|
}
|
|
|
|