2
0
mirror of https://github.com/gentoo-mirror/gentoo.git synced 2026-02-11 00:10:15 +03:00
Files
gentoo/dev-python/PyQt6-WebEngine/PyQt6-WebEngine-6.5.0.ebuild
Ionen Wolkens 22ba369422 dev-python/PyQt6-WebEngine: use binding operator for qtbase
Seems to rarely be an issue but hit symbol problems when using
PyQt6-6.4.2 with Qt6.5 without a rebuild (otherwise works with
6.5 just fine).

Could happen with 6.6+ too, albeit mitigated by PyQt6 bumps happening
around same time and forcing the rebuild either way.

Going to skip revbump for now given the above and being a slow build
(plus it's masked), uncertain whether it'll even be needed for 6.6.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-04-22 21:21:01 -04:00

63 lines
1.7 KiB
Bash

# Copyright 2022-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=sip
PYPI_NO_NORMALIZE=1
PYPI_PN=${PN/-/_}
PYTHON_COMPAT=( python3_{9..11} )
inherit distutils-r1 flag-o-matic multiprocessing pypi qmake-utils
QT_PV="$(ver_cut 1-2):6"
DESCRIPTION="Python bindings for QtWebEngine"
HOMEPAGE="https://www.riverbankcomputing.com/software/pyqtwebengine/"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="debug quick +widgets"
# can use parts of the Qt private api and "sometimes" needs rebuilds wrt :=
RDEPEND="
>=dev-python/PyQt6-${PV}[gui,ssl,${PYTHON_USEDEP}]
>=dev-qt/qtbase-${QT_PV}=
>=dev-qt/qtwebengine-${QT_PV}[widgets]
quick? ( dev-python/PyQt6[qml] )
widgets? ( dev-python/PyQt6[network,printsupport,webchannel,widgets] )"
DEPEND="${RDEPEND}"
BDEPEND="
>=dev-python/PyQt-builder-1.15[${PYTHON_USEDEP}]
>=dev-qt/qtbase-${QT_PV}
sys-devel/gcc"
src_prepare() {
default
# hack: qmake queries g++ directly for info (not building) and that doesn't
# work with clang, this is to make it at least respect CHOST (bug #726112)
mkdir "${T}"/cxx || die
ln -s "$(type -P ${CHOST}-g++ || type -P g++ || die)" "${T}"/cxx/g++ || die
PATH=${T}/cxx:${PATH}
}
python_configure_all() {
append-cxxflags -std=c++17 # for old gcc / clang that use <17 (bug #892331)
append-cxxflags ${CPPFLAGS} # respect CPPFLAGS
DISTUTILS_ARGS=(
--jobs=$(makeopts_jobs)
--qmake="$(type -P qmake6 || die)"
--qmake-setting="$(qt5_get_qmake_args)"
--verbose
--enable=QtWebEngineCore
$(usex quick --{enable,disable}=QtWebEngineQuick)
$(usex widgets --{enable,disable}=QtWebEngineWidgets)
$(usev debug '--debug --qml-debug --tracing')
)
}