diff options
Diffstat (limited to 'dev-python/PyQt6_WebEngine')
-rw-r--r-- | dev-python/PyQt6_WebEngine/Manifest | 3 | ||||
-rw-r--r-- | dev-python/PyQt6_WebEngine/PyQt6_WebEngine-6.3.1.ebuild | 62 | ||||
-rw-r--r-- | dev-python/PyQt6_WebEngine/metadata.xml | 16 |
3 files changed, 81 insertions, 0 deletions
diff --git a/dev-python/PyQt6_WebEngine/Manifest b/dev-python/PyQt6_WebEngine/Manifest new file mode 100644 index 000000000000..6e7e1a4ed21f --- /dev/null +++ b/dev-python/PyQt6_WebEngine/Manifest @@ -0,0 +1,3 @@ +DIST PyQt6_WebEngine-6.3.1.tar.gz 30607 BLAKE2B f07454684ce9c55ed8f477e7d7ba260af6d219b079e68d6752292310d1d8799b642acd3dad94b9259edfc9c41ee6249d2c1b69f57f7e5132dd71bc88e1e1d463 SHA512 61e30b6dbbd5d31dd03498b1d14279005bd00b59fe375f89b13cf318d5bdb6cbbf5449cd910303c9794ed14cbd25b0e63824ab952fc050d8c0451292c6f97be0 +EBUILD PyQt6_WebEngine-6.3.1.ebuild 1683 BLAKE2B a9867225b3f43c9621a5909d82e965f4a653f6e042501295fc894fe0d39947b45c4e9b05d56d58ff4b0557cbb56ac98c291c0c0c2a3c68dd802090c4b04e3895 SHA512 67a12a6339f1bc730c16a0903519b025f6de385a5cc76cb93d5f7ef1005aa74fa4ea4fe3af6ecdfcbadd24e1c9e6369dde75a9ab3f0d452f5e86a9d06b82371b +MISC metadata.xml 572 BLAKE2B d0c911bf7d8f4f33e30daabfafe3447367045dce444dda4d8600ea47a844842996989ee7c64ccee6ce77a033bdbd1e7c58136e16ddd5f76a7b5688681f791d2c SHA512 11a8b7ab3fe9fa8e8a7160658aac5b8148a60f30b49bcba92cb08eee6d8f5021e4d117632dcddab98c9a0ebbbecd256ce09fbbe43f05105f7429355f9120e42f diff --git a/dev-python/PyQt6_WebEngine/PyQt6_WebEngine-6.3.1.ebuild b/dev-python/PyQt6_WebEngine/PyQt6_WebEngine-6.3.1.ebuild new file mode 100644 index 000000000000..f304d9d147f4 --- /dev/null +++ b/dev-python/PyQt6_WebEngine/PyQt6_WebEngine-6.3.1.ebuild @@ -0,0 +1,62 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=sip +PYTHON_COMPAT=( python3_{8..11} ) +inherit distutils-r1 flag-o-matic multiprocessing qmake-utils + +QT_PV="6.3:6" # minimum tested qt version + +DESCRIPTION="Python bindings for QtWebEngine" +HOMEPAGE="https://www.riverbankcomputing.com/software/pyqtwebengine/" +SRC_URI="mirror://pypi/${P::1}/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="debug quick +widgets" + +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.11[${PYTHON_USEDEP}] + >=dev-qt/qtbase-${QT_PV} + sys-devel/gcc" + +src_prepare() { + default + + # hack: qmake wants g++ (not clang), try to respect ${CHOST} #726112 + mkdir "${T}"/cxx || die + ln -s "$(type -P ${CHOST}-g++ || type -P g++ || die)" "${T}"/cxx/g++ || die + PATH=${T}/cxx:${PATH} +} + +src_configure() { + append-cxxflags -std=c++17 # for clang and old gcc that default to <17 + + # hack: currently lacking qt6_get_bindir (or alternatively have + # qmake6 in PATH like qmake5 is so it wouldn't matter) + local qmake6=$(qt5_get_bindir)/qmake6 + qmake6=${qmake6//qt5/qt6} + + DISTUTILS_ARGS=( + --jobs=$(makeopts_jobs) + --qmake="${qmake6}" + --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') + ) +} diff --git a/dev-python/PyQt6_WebEngine/metadata.xml b/dev-python/PyQt6_WebEngine/metadata.xml new file mode 100644 index 000000000000..88c4a67e1477 --- /dev/null +++ b/dev-python/PyQt6_WebEngine/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>ionen@gentoo.org</email> + <name>Ionen Wolkens</name> + </maintainer> + <use> + <flag name="quick">Build bindings for the QtWebEngineQuick module</flag> + <flag name="widgets">Build bindings for the QtWebEngineWidgets module</flag> + </use> + <upstream> + <bugs-to>https://www.riverbankcomputing.com/mailman/listinfo/pyqt/</bugs-to> + <remote-id type="pypi">PyQt6-WebEngine</remote-id> + </upstream> +</pkgmetadata> |