summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2022-08-03 07:44:51 -0400
committerIonen Wolkens <ionen@gentoo.org>2022-08-03 08:26:50 -0400
commitb8cb86345e657e7af1fffa5e68508a64748e1503 (patch)
tree8196e565ab1cb048360d8dc8a0166e296114abd8 /dev-python/PyQt6-WebEngine
parentdev-python/PyQt6-sip: rename from dev-python/PyQt6_sip (diff)
downloadgentoo-b8cb86345e657e7af1fffa5e68508a64748e1503.tar.gz
gentoo-b8cb86345e657e7af1fffa5e68508a64748e1503.tar.bz2
gentoo-b8cb86345e657e7af1fffa5e68508a64748e1503.zip
dev-python/PyQt6-WebEngine: rename from dev-python/PyQt6_WebEngine
Was meant to match to skip MY_P (like dev-python often does), but on second thought it doesn't feel entirely right here given (ignoring pypi tarballs) official website doesn't use underscore (e.g. PyQt-WebEngine). Could probably skip pkgmove (qt6 still masked), but feels messy not to so doing it anyway. Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'dev-python/PyQt6-WebEngine')
-rw-r--r--dev-python/PyQt6-WebEngine/Manifest1
-rw-r--r--dev-python/PyQt6-WebEngine/PyQt6-WebEngine-6.3.1.ebuild64
-rw-r--r--dev-python/PyQt6-WebEngine/metadata.xml16
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..59d365d91651
--- /dev/null
+++ b/dev-python/PyQt6-WebEngine/Manifest
@@ -0,0 +1 @@
+DIST PyQt6_WebEngine-6.3.1.tar.gz 30607 BLAKE2B f07454684ce9c55ed8f477e7d7ba260af6d219b079e68d6752292310d1d8799b642acd3dad94b9259edfc9c41ee6249d2c1b69f57f7e5132dd71bc88e1e1d463 SHA512 61e30b6dbbd5d31dd03498b1d14279005bd00b59fe375f89b13cf318d5bdb6cbbf5449cd910303c9794ed14cbd25b0e63824ab952fc050d8c0451292c6f97be0
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..eca7e68acd20
--- /dev/null
+++ b/dev-python/PyQt6-WebEngine/PyQt6-WebEngine-6.3.1.ebuild
@@ -0,0 +1,64 @@
+# 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
+MY_P="${P/-/_}"
+
+DESCRIPTION="Python bindings for QtWebEngine"
+HOMEPAGE="https://www.riverbankcomputing.com/software/pyqtwebengine/"
+SRC_URI="mirror://pypi/${P::1}/${PN}/${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+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>