git: c389e5029828 - main - www/py-qt6-webengine: Create new port.

From: Guido Falsi <madpilot_at_FreeBSD.org>
Date: Sun, 15 Jan 2023 20:43:55 UTC
The branch main has been updated by madpilot:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c389e5029828518fe8e2fb6179abb5716faa2f40

commit c389e5029828518fe8e2fb6179abb5716faa2f40
Author:     Guido Falsi <madpilot@FreeBSD.org>
AuthorDate: 2023-01-15 20:42:02 +0000
Commit:     Guido Falsi <madpilot@FreeBSD.org>
CommitDate: 2023-01-15 20:42:02 +0000

    www/py-qt6-webengine: Create new port.
    
    Create new port with python bindings for qt6-webengine.
    
    Assign to kde@
    
    Approved by:    kde (tcberner via email)
---
 Mk/Uses/pyqt.mk                | 12 +++++++++---
 www/Makefile                   |  1 +
 www/py-qt6-webengine/Makefile  | 24 +++++++++++++++++++++++
 www/py-qt6-webengine/distinfo  |  3 +++
 www/py-qt6-webengine/pkg-descr |  2 ++
 www/py-qt6-webengine/pkg-plist | 44 ++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 83 insertions(+), 3 deletions(-)

diff --git a/Mk/Uses/pyqt.mk b/Mk/Uses/pyqt.mk
index f32bf45f6a67..d7df0080e5f3 100644
--- a/Mk/Uses/pyqt.mk
+++ b/Mk/Uses/pyqt.mk
@@ -65,7 +65,9 @@ MASTER_SITES_PYQT5NETWORKAUTH=	https://pypi.python.org/packages/source/P/PyQtNet
 MASTER_SITES_PYQT6NETWORKAUTH=	https://pypi.python.org/packages/source/P/PyQt6-NetworkAuth/
 MASTER_SITES_PYQTNETWORKAUTH=		${MASTER_SITES_PYQT${_PYQT_VERSION}NETWORKAUTH}
 MASTER_SITES_PYQTBUILDER=	https://pypi.io/packages/source/P/PyQt-builder/
-MASTER_SITES_PYQTWEBENGINE=	https://pypi.python.org/packages/source/P/PyQtWebEngine/
+MASTER_SITES_PYQT5WEBENGINE=	https://pypi.python.org/packages/source/P/PyQtWebEngine/
+MASTER_SITES_PYQT6WEBENGINE=	https://pypi.python.org/packages/source/P/PyQt6-WebEngine/
+MASTER_SITES_PYQTWEBENGINE=		${MASTER_SITES_PYQT${_PYQT_VERSION}WEBENGINE}
 #https://www.riverbankcomputing.com/static/Downloads/QScintilla/2.12.0/QScintilla_src-2.12.0.tar.gz
 MASTER_SITES_QSCI2=	RIVERBANK/QScintilla/${PORTVERSION} \
 			SF/pyqt/QScintilla2/QScintilla-${PORTVERSION} \
@@ -88,7 +90,8 @@ PYQT5CHART_VERSION=	5.15.6
 PYQT6CHART_VERSION=	6.4.0
 PYQT5NETWORKAUTH_VERSION=5.15.5
 PYQT6NETWORKAUTH_VERSION=6.4.0
-PYQTWEBENGINE_VERSION=	5.15.6
+PYQT5WEBENGINE_VERSION=	5.15.6
+PYQT6WEBENGINE_VERSION=	6.4.0
 PYQT5SIP_VERSION=	12.11.0
 PYQT6SIP_VERSION=	13.4.0
 PYQTBUILDER_VERSION=	1.14.0
@@ -104,7 +107,8 @@ PYQT6CHART_DISTNAME=	PyQt6_Charts-${PYQT6CHART_VERSION}
 PYQT5NETWORKAUTH_DISTNAME=	PyQtNetworkAuth-${PYQT5NETWORKAUTH_VERSION}
 PYQT6NETWORKAUTH_DISTNAME=	PyQt6_NetworkAuth-${PYQT6NETWORKAUTH_VERSION}
 PYQTBUILDER_DISTNAME=	PyQt-builder-${PYQTBUILDER_VERSION}
-PYQTWEBENGINE_DISTNAME=	PyQtWebEngine-${PYQTWEBENGINE_VERSION}
+PYQT5WEBENGINE_DISTNAME=	PyQtWebEngine-${PYQT5WEBENGINE_VERSION}
+PYQT6WEBENGINE_DISTNAME=	PyQt6_WebEngine-${PYQT6WEBENGINE_VERSION}
 PYQT5_DISTINFO_FILE=	${.CURDIR:H:H}/devel/${PYQT_RELNAME}/distinfo
 PYQT6_DISTINFO_FILE=	${.CURDIR:H:H}/devel/${PYQT_RELNAME}/distinfo
 QSCI2_DISTNAME=		QScintilla_src-${QSCI2_VERSION}
@@ -120,12 +124,14 @@ _USE_PYQTBUILDER=	qtbuilder
 PYQT_VERSION=		${PYQT${_PYQT_VERSION}_VERSION}
 PYQTCHART_VERSION=	${PYQT${_PYQT_VERSION}CHART_VERSION}
 PYQTNETWORKAUTH_VERSION=${PYQT${_PYQT_VERSION}NETWORKAUTH_VERSION}
+PYQTWEBENGINE_VERSION=${PYQT${_PYQT_VERSION}WEBENGINE_VERSION}
 PYQT_RELNAME=		py-qt${_PYQT_VERSION}
 PYQT_PY_RELNAME=	${PYTHON_PKGNAMEPREFIX}qt${_PYQT_VERSION}
 PYQT_MASTERSITES=	${MASTER_SITES_PYQT${_PYQT_VERSION}}
 PYQT_DISTNAME=		${PYQT${_PYQT_VERSION}_DISTNAME}
 PYQTCHART_DISTNAME=	${PYQT${_PYQT_VERSION}CHART_DISTNAME}
 PYQTNETWORKAUTH_DISTNAME=${PYQT${_PYQT_VERSION}NETWORKAUTH_DISTNAME}
+PYQTWEBENGINE_DISTNAME=${PYQT${_PYQT_VERSION}WEBENGINE_DISTNAME}
 PYQT_DISTINFO_FILE=	${PYQT${_PYQT_VERSION}_DISTINFO_FILE}
 PYQT_LICENSE=		${PYQT${_PYQT_VERSION}_LICENSE}
 
diff --git a/www/Makefile b/www/Makefile
index ec41817f4aa2..cc3a86ccf1ce 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1728,6 +1728,7 @@
     SUBDIR += py-pyweblib
     SUBDIR += py-pywikibot
     SUBDIR += py-qt5-webengine
+    SUBDIR += py-qt6-webengine
     SUBDIR += py-quilt3
     SUBDIR += py-recaptcha
     SUBDIR += py-requests
diff --git a/www/py-qt6-webengine/Makefile b/www/py-qt6-webengine/Makefile
new file mode 100644
index 000000000000..7a1ca87559b3
--- /dev/null
+++ b/www/py-qt6-webengine/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	webengine
+DISTVERSION=	${PYQTWEBENGINE_VERSION}
+CATEGORIES=	www devel python
+MASTER_SITES=	${MASTER_SITES_PYQTWEBENGINE}
+PKGNAMEPREFIX=	${PYQT_PY_RELNAME}-
+DISTNAME=	${PYQTWEBENGINE_DISTNAME}
+
+PYQT_DIST=	yes
+
+MAINTAINER=	kde@FreeBSD.org
+COMMENT=	Python bindings for the Qt5 toolkit, QtWebEngine module
+WWW=		https://riverbankcomputing.com/software/pyqt
+
+LICENSE=	GPLv3
+
+USES=		gl python:3.8+ pyqt:6 qt:6
+USE_GL=		gl
+USE_PYQT=	sip:build pyqt6
+USE_PYTHON=	concurrent flavors py3kplist
+USE_QT=		base declarative positioning webchannel webengine
+
+PLIST_SUB=		PYQT_WEBENGINE_VERSION=${DISTVERSION}
+
+.include <bsd.port.mk>
diff --git a/www/py-qt6-webengine/distinfo b/www/py-qt6-webengine/distinfo
new file mode 100644
index 000000000000..0e42a99b7fc7
--- /dev/null
+++ b/www/py-qt6-webengine/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1668532436
+SHA256 (PyQt6_WebEngine-6.4.0.tar.gz) = 4c71c130860abcd11e04cafb22e33983fa9a3aee8323c51909b15a1701828e21
+SIZE (PyQt6_WebEngine-6.4.0.tar.gz) = 31180
diff --git a/www/py-qt6-webengine/pkg-descr b/www/py-qt6-webengine/pkg-descr
new file mode 100644
index 000000000000..1b640f0df6fc
--- /dev/null
+++ b/www/py-qt6-webengine/pkg-descr
@@ -0,0 +1,2 @@
+PyQt5 is a set of Python bindings for Qt5 application framework.
+This package provides the QtWebKit module.
diff --git a/www/py-qt6-webengine/pkg-plist b/www/py-qt6-webengine/pkg-plist
new file mode 100644
index 000000000000..5b1dfcdf41b0
--- /dev/null
+++ b/www/py-qt6-webengine/pkg-plist
@@ -0,0 +1,44 @@
+%%PYQT_APIDIR%%/PyQt6-WebEngine.api
+%%PYQT_SIPDIR%%/QtWebEngineCore/QtWebEngineCoremod.sip
+%%PYQT_SIPDIR%%/QtWebEngineCore/qtwebenginecoreglobal.sip
+%%PYQT_SIPDIR%%/QtWebEngineCore/qwebenginecertificateerror.sip
+%%PYQT_SIPDIR%%/QtWebEngineCore/qwebengineclientcertificateselection.sip
+%%PYQT_SIPDIR%%/QtWebEngineCore/qwebengineclientcertificatestore.sip
+%%PYQT_SIPDIR%%/QtWebEngineCore/qwebenginecontextmenurequest.sip
+%%PYQT_SIPDIR%%/QtWebEngineCore/qwebenginecookiestore.sip
+%%PYQT_SIPDIR%%/QtWebEngineCore/qwebenginedownloadrequest.sip
+%%PYQT_SIPDIR%%/QtWebEngineCore/qwebenginefilesystemaccessrequest.sip
+%%PYQT_SIPDIR%%/QtWebEngineCore/qwebenginefindtextresult.sip
+%%PYQT_SIPDIR%%/QtWebEngineCore/qwebenginefullscreenrequest.sip
+%%PYQT_SIPDIR%%/QtWebEngineCore/qwebenginehistory.sip
+%%PYQT_SIPDIR%%/QtWebEngineCore/qwebenginehttprequest.sip
+%%PYQT_SIPDIR%%/QtWebEngineCore/qwebengineloadinginfo.sip
+%%PYQT_SIPDIR%%/QtWebEngineCore/qwebenginenavigationrequest.sip
+%%PYQT_SIPDIR%%/QtWebEngineCore/qwebenginenewwindowrequest.sip
+%%PYQT_SIPDIR%%/QtWebEngineCore/qwebenginenotification.sip
+%%PYQT_SIPDIR%%/QtWebEngineCore/qwebenginepage.sip
+%%PYQT_SIPDIR%%/QtWebEngineCore/qwebengineprofile.sip
+%%PYQT_SIPDIR%%/QtWebEngineCore/qwebenginequotarequest.sip
+%%PYQT_SIPDIR%%/QtWebEngineCore/qwebengineregisterprotocolhandlerrequest.sip
+%%PYQT_SIPDIR%%/QtWebEngineCore/qwebenginescript.sip
+%%PYQT_SIPDIR%%/QtWebEngineCore/qwebenginescriptcollection.sip
+%%PYQT_SIPDIR%%/QtWebEngineCore/qwebenginesettings.sip
+%%PYQT_SIPDIR%%/QtWebEngineCore/qwebengineurlrequestinfo.sip
+%%PYQT_SIPDIR%%/QtWebEngineCore/qwebengineurlrequestinterceptor.sip
+%%PYQT_SIPDIR%%/QtWebEngineCore/qwebengineurlrequestjob.sip
+%%PYQT_SIPDIR%%/QtWebEngineCore/qwebengineurlscheme.sip
+%%PYQT_SIPDIR%%/QtWebEngineCore/qwebengineurlschemehandler.sip
+%%PYQT_SIPDIR%%/QtWebEngineQuick/QtWebEngineQuick.toml
+%%PYQT_SIPDIR%%/QtWebEngineQuick/QtWebEngineQuickmod.sip
+%%PYQT_SIPDIR%%/QtWebEngineQuick/qquickwebengineprofile.sip
+%%PYQT_SIPDIR%%/QtWebEngineQuick/qtwebenginequickglobal.sip
+%%PYQT_SIPDIR%%/QtWebEngineWidgets/QtWebEngineWidgetsmod.sip
+%%PYQT_SIPDIR%%/QtWebEngineWidgets/qwebengineview.sip
+%%PYTHON_SITELIBDIR%%/PyQt6/QtWebEngineCore.abi%%PYTHON_MAJOR_VER%%.so
+%%PYTHON_SITELIBDIR%%/PyQt6/QtWebEngineQuick.abi%%PYTHON_MAJOR_VER%%.so
+%%PYTHON_SITELIBDIR%%/PyQt6/QtWebEngineWidgets.abi%%PYTHON_MAJOR_VER%%.so
+%%PYTHON_SITELIBDIR%%/PyQt6/bindings/QtWebEngineCore/QtWebEngineCore.toml
+%%PYTHON_SITELIBDIR%%/PyQt6/bindings/QtWebEngineWidgets/QtWebEngineWidgets.toml
+%%PYTHON_SITELIBDIR%%/PyQt6_WebEngine-%%PYQT_WEBENGINE_VERSION%%.dist-info/INSTALLER
+%%PYTHON_SITELIBDIR%%/PyQt6_WebEngine-%%PYQT_WEBENGINE_VERSION%%.dist-info/METADATA
+%%PYTHON_SITELIBDIR%%/PyQt6_WebEngine-%%PYQT_WEBENGINE_VERSION%%.dist-info/RECORD