git: 175cbaa2aa37 - main - www/qt6-webview: new port -- Qt WebView lets you display web content inside a QML application

From: Tobias C. Berner <tcberner_at_FreeBSD.org>
Date: Thu, 17 Aug 2023 12:13:13 UTC
The branch main has been updated by tcberner:

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

commit 175cbaa2aa37273afdc4ab2f5514f06713aa369e
Author:     Tobias C. Berner <tcberner@FreeBSD.org>
AuthorDate: 2023-08-17 11:59:56 +0000
Commit:     Tobias C. Berner <tcberner@FreeBSD.org>
CommitDate: 2023-08-17 12:12:14 +0000

    www/qt6-webview: new port -- Qt WebView lets you display web content inside a QML application
---
 Mk/Uses/qt-dist.mk        |  4 +--
 Mk/Uses/qt.mk             |  4 +--
 www/Makefile              |  1 +
 www/qt6-webview/Makefile  | 15 +++++++++
 www/qt6-webview/distinfo  |  3 ++
 www/qt6-webview/pkg-plist | 77 +++++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 100 insertions(+), 4 deletions(-)

diff --git a/Mk/Uses/qt-dist.mk b/Mk/Uses/qt-dist.mk
index b55254b30447..ef63764841d0 100644
--- a/Mk/Uses/qt-dist.mk
+++ b/Mk/Uses/qt-dist.mk
@@ -24,9 +24,9 @@ qmake_ARGS?=	# empty
 _COMMON_DISTS=		3d base charts datavis3d declarative imageformats location multimedia \
 			networkauth quick3d quicktimeline remoteobjects scxml sensors \
 			serialbus serialport speech svg tools translations virtualkeyboard \
-			wayland webchannel webengine websockets
+			wayland webchannel webengine websockets webview
 _QT5_DISTS=		connectivity gamepad graphicaleffects quickcontrols \
-			quickcontrols2 script webglplugin webview \
+			quickcontrols2 script webglplugin \
 			x11extras xmlpatterns
 _QT6_DISTS=		5compat doc httpserver languageserver lottie positioning \
 			quickeffectmaker shadertools
diff --git a/Mk/Uses/qt.mk b/Mk/Uses/qt.mk
index 517373b04dc0..912cc591787d 100644
--- a/Mk/Uses/qt.mk
+++ b/Mk/Uses/qt.mk
@@ -134,7 +134,7 @@ _QT_MK_POST_INCLUDED=	qt.mk
 _USE_QT_COMMON=		3d charts datavis3d declarative doc examples imageformats location \
 			multimedia networkauth quick3d quicktimeline remoteobjects scxml \
 			sensors serialbus serialport speech svg virtualkeyboard wayland \
-			webchannel webengine websockets
+			webchannel webengine websockets webview
 
 _USE_QT5_ONLY=		assistant buildtools concurrent connectivity core dbus \
 			declarative-test designer diag gamepad \
@@ -143,7 +143,7 @@ _USE_QT5_ONLY=		assistant buildtools concurrent connectivity core dbus \
 			qdbus qdbusviewer qdoc qdoc-data qev qmake quickcontrols \
 			quickcontrols2 script scripttools sql sql-mysql sql-odbc \
 			sql-pgsql sql-sqlite2 sql-sqlite3 sql-tds testlib uiplugin \
-			uitools webglplugin webkit websockets-qml webview \
+			uitools webglplugin webkit websockets-qml \
 			widgets x11extras xml xmlpatterns
 .  if ${ARCH} == amd64 || ${ARCH} == i386
 _USE_QT5_ONLY+=		sql-ibase
diff --git a/www/Makefile b/www/Makefile
index cb30a2d60e38..d2d427b33d77 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1855,6 +1855,7 @@
     SUBDIR += qt6-httpserver
     SUBDIR += qt6-webchannel
     SUBDIR += qt6-webengine
+    SUBDIR += qt6-webview
     SUBDIR += qt6-websockets
     SUBDIR += quark
     SUBDIR += qutebrowser
diff --git a/www/qt6-webview/Makefile b/www/qt6-webview/Makefile
new file mode 100644
index 000000000000..d0a7ecb4d350
--- /dev/null
+++ b/www/qt6-webview/Makefile
@@ -0,0 +1,15 @@
+PORTNAME=	webview
+PORTVERSION=	${QT6_VERSION}
+CATEGORIES=	www
+PKGNAMEPREFIX=	qt6-
+
+MAINTAINER=	kde@FreeBSD.org
+COMMENT=	Qt component for displaying web content
+
+LIB_DEPENDS=	libxkbcommon.so:x11/libxkbcommon
+
+USES=		cmake gl pkgconfig qt-dist:6
+USE_GL=		gl opengl
+USE_QT=		base declarative positioning webchannel webengine
+
+.include <bsd.port.mk>
diff --git a/www/qt6-webview/distinfo b/www/qt6-webview/distinfo
new file mode 100644
index 000000000000..9257b84f0135
--- /dev/null
+++ b/www/qt6-webview/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1692273051
+SHA256 (KDE/Qt/6.5.2/qtwebview-everywhere-src-6.5.2.tar.xz) = 5902e072a874ba49f2046a2c4abc113775cb52e4eaa7c8758553cc8ffa0df631
+SIZE (KDE/Qt/6.5.2/qtwebview-everywhere-src-6.5.2.tar.xz) = 145700
diff --git a/www/qt6-webview/pkg-plist b/www/qt6-webview/pkg-plist
new file mode 100644
index 000000000000..898b6c0b809a
--- /dev/null
+++ b/www/qt6-webview/pkg-plist
@@ -0,0 +1,77 @@
+%%QT_INCDIR%%/QtWebView/%%FULLVER%%/QtWebView/private/qabstractwebview_p.h
+%%QT_INCDIR%%/QtWebView/%%FULLVER%%/QtWebView/private/qnativeviewcontroller_p.h
+%%QT_INCDIR%%/QtWebView/%%FULLVER%%/QtWebView/private/qwebview_p.h
+%%QT_INCDIR%%/QtWebView/%%FULLVER%%/QtWebView/private/qwebviewfactory_p.h
+%%QT_INCDIR%%/QtWebView/%%FULLVER%%/QtWebView/private/qwebviewinterface_p.h
+%%QT_INCDIR%%/QtWebView/%%FULLVER%%/QtWebView/private/qwebviewloadrequest_p.h
+%%QT_INCDIR%%/QtWebView/%%FULLVER%%/QtWebView/private/qwebviewplugin_p.h
+%%QT_INCDIR%%/QtWebView/QtWebView
+%%QT_INCDIR%%/QtWebView/QtWebViewDepends
+%%QT_INCDIR%%/QtWebView/QtWebViewVersion
+%%QT_INCDIR%%/QtWebView/qtwebviewfunctions.h
+%%QT_INCDIR%%/QtWebView/qtwebviewversion.h
+%%QT_INCDIR%%/QtWebView/qwebview_global.h
+%%QT_INCDIR%%/QtWebViewQuick/%%FULLVER%%/QtWebViewQuick/private/qquickviewcontroller_p.h
+%%QT_INCDIR%%/QtWebViewQuick/%%FULLVER%%/QtWebViewQuick/private/qquickwebview_p.h
+%%QT_INCDIR%%/QtWebViewQuick/%%FULLVER%%/QtWebViewQuick/private/qquickwebviewloadrequest_p.h
+%%QT_INCDIR%%/QtWebViewQuick/%%FULLVER%%/QtWebViewQuick/private/qquickwebviewsettings_p.h
+%%QT_INCDIR%%/QtWebViewQuick/%%FULLVER%%/QtWebViewQuick/private/qtwebviewquickglobal_p.h
+%%QT_INCDIR%%/QtWebViewQuick/QtWebViewQuick
+%%QT_INCDIR%%/QtWebViewQuick/QtWebViewQuickDepends
+%%QT_INCDIR%%/QtWebViewQuick/QtWebViewQuickVersion
+%%QT_INCDIR%%/QtWebViewQuick/qtwebviewquickversion.h
+lib/cmake/Qt6BuildInternals/StandaloneTests/QtWebViewTestsConfig.cmake
+lib/cmake/Qt6Qml/QmlPlugins/Qt6qtwebviewquickpluginAdditionalTargetInfo.cmake
+lib/cmake/Qt6Qml/QmlPlugins/Qt6qtwebviewquickpluginConfig.cmake
+lib/cmake/Qt6Qml/QmlPlugins/Qt6qtwebviewquickpluginConfigVersion.cmake
+lib/cmake/Qt6Qml/QmlPlugins/Qt6qtwebviewquickpluginConfigVersionImpl.cmake
+lib/cmake/Qt6Qml/QmlPlugins/Qt6qtwebviewquickpluginTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/Qt6Qml/QmlPlugins/Qt6qtwebviewquickpluginTargets.cmake
+lib/cmake/Qt6WebView/Qt6QWebEngineWebViewPluginAdditionalTargetInfo.cmake
+lib/cmake/Qt6WebView/Qt6QWebEngineWebViewPluginConfig.cmake
+lib/cmake/Qt6WebView/Qt6QWebEngineWebViewPluginConfigVersion.cmake
+lib/cmake/Qt6WebView/Qt6QWebEngineWebViewPluginConfigVersionImpl.cmake
+lib/cmake/Qt6WebView/Qt6QWebEngineWebViewPluginTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/Qt6WebView/Qt6QWebEngineWebViewPluginTargets.cmake
+lib/cmake/Qt6WebView/Qt6WebViewAdditionalTargetInfo.cmake
+lib/cmake/Qt6WebView/Qt6WebViewConfig.cmake
+lib/cmake/Qt6WebView/Qt6WebViewConfigVersion.cmake
+lib/cmake/Qt6WebView/Qt6WebViewConfigVersionImpl.cmake
+lib/cmake/Qt6WebView/Qt6WebViewDependencies.cmake
+lib/cmake/Qt6WebView/Qt6WebViewPlugins.cmake
+lib/cmake/Qt6WebView/Qt6WebViewTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/Qt6WebView/Qt6WebViewTargets.cmake
+lib/cmake/Qt6WebView/Qt6WebViewVersionlessTargets.cmake
+lib/cmake/Qt6WebViewQuick/Qt6WebViewQuickAdditionalTargetInfo.cmake
+lib/cmake/Qt6WebViewQuick/Qt6WebViewQuickConfig.cmake
+lib/cmake/Qt6WebViewQuick/Qt6WebViewQuickConfigVersion.cmake
+lib/cmake/Qt6WebViewQuick/Qt6WebViewQuickConfigVersionImpl.cmake
+lib/cmake/Qt6WebViewQuick/Qt6WebViewQuickDependencies.cmake
+lib/cmake/Qt6WebViewQuick/Qt6WebViewQuickTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/Qt6WebViewQuick/Qt6WebViewQuickTargets.cmake
+lib/cmake/Qt6WebViewQuick/Qt6WebViewQuickVersionlessTargets.cmake
+%%DEBUG%%%%QT_LIBDIR%%/libQt5WebView.so.%%FULLVER%%.debug
+%%QT_LIBDIR%%/libQt6WebView.prl
+%%QT_LIBDIR%%/libQt6WebView.so
+%%QT_LIBDIR%%/libQt6WebView.so.6
+%%QT_LIBDIR%%/libQt6WebView.so.%%FULLVER%%
+%%QT_LIBDIR%%/libQt6WebViewQuick.prl
+%%QT_LIBDIR%%/libQt6WebViewQuick.so
+%%QT_LIBDIR%%/libQt6WebViewQuick.so.6
+%%QT_LIBDIR%%/libQt6WebViewQuick.so.%%FULLVER%%
+%%QT_LIBDIR%%/metatypes/qt6webview_%%CMAKE_BUILD_TYPE%%_metatypes.json
+%%QT_LIBDIR%%/metatypes/qt6webviewquick_%%CMAKE_BUILD_TYPE%%_metatypes.json
+%%QT_MKSPECDIR%%/modules/qt_lib_webview.pri
+%%QT_MKSPECDIR%%/modules/qt_lib_webview_private.pri
+%%QT_MKSPECDIR%%/modules/qt_lib_webviewquick.pri
+%%QT_MKSPECDIR%%/modules/qt_lib_webviewquick_private.pri
+%%QT_PLUGINDIR%%/webview/libqtwebview_webengine.so
+%%DEBUG%%%%QT_PLUGINDIR%%/webview/libqtwebview_webengine.so.debug
+%%DEBUG%%%%QT_QMLDIR%%/QtWebView/libdeclarative_webview.so.debug
+%%QT_QMLDIR%%/QtWebView/libqtwebviewquickplugin.so
+%%QT_QMLDIR%%/QtWebView/plugins.qmltypes
+%%QT_QMLDIR%%/QtWebView/qmldir
+libdata/pkgconfig/Qt6WebView.pc
+libdata/pkgconfig/Qt6WebViewQuick.pc
+%%QT_DATADIR%%/modules/WebView.json
+%%QT_DATADIR%%/modules/WebViewQuick.json