From nobody Fri Nov 08 02:26:55 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Xl2rc0JVXz5bryd; Fri, 08 Nov 2024 02:26:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xl2rb6lHQz4h0b; Fri, 8 Nov 2024 02:26:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731032815; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=p/ICJ8L2weekpWN7UTyGOlQZDG+V7vKUWbcNl+UcKAs=; b=GQb9vespx6pnoGReyAnEmikekTveYopI55AZw/jbY41KCt/0OhD6eXQMcn1gxSdEAQv8J3 0TSHcsMmGChtnuccTuDBP0kL0hoI79IZG2pkHhsgJJfCJ0JN5/nyJF540P54wkzt62MpvP Z11EGa/ajzzvqEohQ4Tr7NKc6Phe8HCf6yZUDiycPCiGw2PH4y1njJbJeSiN2UB0MvO2Qt sBDoQZOpMITvcaUhuZbXoXLKU0UYCVb6qV8ADZpuSKL/wEJ/57iAsKrFu1dj3tGbPn0gld ku2YIi2hdh6DEirT4CjAdCY3nCdNkktwAEOvNCxrJvM4NpD1p4VTH2RiqXiTqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731032815; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=p/ICJ8L2weekpWN7UTyGOlQZDG+V7vKUWbcNl+UcKAs=; b=gIYgiyYoqZJRLgFIN9WRL+TVSOhCUs54hdD8MYPi3wYP4PLg6S1ZxTt5JUoAUW6x0D5hIG zgqnhD6wBS6I4JWn3HkaylpRV94axaTsEPVCB5mgXiJ4zya5duDCnizwNH3r0bRoQKNQMA iMPWsZCjSgdfa3a2qY2H9RrMUp8F6DKE/MKT8l9uTkfih8sQ1unpjOkopNYoJO5PLkOkzA sSKbB/vTR5wO0XUQxLkhhj6kBb+OTIK++ow16QNcZnrhrGFE14IL2a5Mtah7OXq/rKjiEu nwxOQ8/1OEx8xww7e+SSQaMzHZjRy3CiVG1VGJAZm7Wcefi+tqAksZnqI05seA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731032815; a=rsa-sha256; cv=none; b=KsapR3eNBuKXVvua/ckGLn6KhiUsEdi8l1ty+p9O3f7M1cnu64YJiUyp7Ca5lomcGUIA3S 3zZFYGpW8BakXWLrI5b4DROO+TjuUVQUi4Iscj0Hqm7QtM9hyND5LlLjnm0g5FUNqOGwqQ QhfYN9eFU3vnItkZvlviw+3E0lFljZh/ud1+bVqwAWmYvLFjvAwJJhcsfuCcjUBaLOqa57 Lj+K+5bLluWLuUXFJuYIKwOTV1lgPFbBYt7xE117j0RvOTfH2wuGfhqBNBVDEwXwLbrN5X GcNsnsmSxi389pdcMornyDwqkK2IbCR57NxXNHfhACQhCts+RkmzPyrBqo1B2Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Xl2rb5sJwz19nH; Fri, 8 Nov 2024 02:26:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A82QtLT067502; Fri, 8 Nov 2024 02:26:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A82Qttk067499; Fri, 8 Nov 2024 02:26:55 GMT (envelope-from git) Date: Fri, 8 Nov 2024 02:26:55 GMT Message-Id: <202411080226.4A82Qttk067499@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jose Alonso Cardenas Marquez Subject: git: 283eb43e76ab - main - www/py-pywebview-qt: New port: Build GUI for your Python program with JavaScript, HTML, and CSS (qt) List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: acm X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 283eb43e76abbb9447ce752b8218e59fa000b1b6 Auto-Submitted: auto-generated The branch main has been updated by acm: URL: https://cgit.FreeBSD.org/ports/commit/?id=283eb43e76abbb9447ce752b8218e59fa000b1b6 commit 283eb43e76abbb9447ce752b8218e59fa000b1b6 Author: Jesús Daniel Colmenares Oviedo AuthorDate: 2024-11-08 02:26:22 +0000 Commit: Jose Alonso Cardenas Marquez CommitDate: 2024-11-08 02:26:22 +0000 www/py-pywebview-qt: New port: Build GUI for your Python program with JavaScript, HTML, and CSS (qt) pywebview is a lightweight cross-platform wrapper around a webview component that allows to display HTML content in its own native GUI window. It gives you the power of web technologies in your desktop application, hiding the fact that the GUI is browser based. Available for Windows, macOS, Linux and Android. You can use pywebview either with a 3rd party web framework or on its own with a two way bridge between Python and DOM. WWW: https://github.com/r0x0r/pywebview PR: 282459 --- www/Makefile | 1 + www/py-pywebview-qt/Makefile | 32 +++++++++++++++++++++++ www/py-pywebview-qt/distinfo | 3 +++ www/py-pywebview-qt/files/patch-webview_guilib.py | 20 ++++++++++++++ www/py-pywebview-qt/pkg-descr | 7 +++++ www/py-pywebview-qt/pkg-message | 8 ++++++ 6 files changed, 71 insertions(+) diff --git a/www/Makefile b/www/Makefile index 7111ef5f0f3f..6feb49a8df25 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1800,6 +1800,7 @@ SUBDIR += py-python-multipart SUBDIR += py-pyweblib SUBDIR += py-pywebview-gtk + SUBDIR += py-pywebview-qt SUBDIR += py-pywikibot SUBDIR += py-pywry SUBDIR += py-qh3 diff --git a/www/py-pywebview-qt/Makefile b/www/py-pywebview-qt/Makefile new file mode 100644 index 000000000000..d471e1ef1302 --- /dev/null +++ b/www/py-pywebview-qt/Makefile @@ -0,0 +1,32 @@ +PORTNAME= pywebview +DISTVERSION= 5.3.2 +CATEGORIES= www python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +PKGNAMESUFFIX= -qt + +MAINTAINER= DtxdF@disroot.org +COMMENT= Build GUI for your Python program with JavaScript, HTML, and CSS (qt) +WWW= https://github.com/r0x0r/pywebview + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=0:devel/py-setuptools-scm@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}bottle>=0:www/py-bottle@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}proxy_tools>=0:www/py-proxy_tools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyside2>=0:devel/pyside2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}QtPy>=0:devel/py-QtPy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR} + +USES= pyqt:5 python +USE_PYQT= webengine:run +USE_PYTHON= autoplist cryptography pep517 + +CONFLICTS_INSTALL= www/py-${PORTNAME}-gtk + +NO_ARCH= yes + +.include diff --git a/www/py-pywebview-qt/distinfo b/www/py-pywebview-qt/distinfo new file mode 100644 index 000000000000..b30de28d91b1 --- /dev/null +++ b/www/py-pywebview-qt/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1730049620 +SHA256 (pywebview-5.3.2.tar.gz) = 77b88a63e65e12913d269205e9c6d357666d4864826749c738bf432bd3ad23d9 +SIZE (pywebview-5.3.2.tar.gz) = 443072 diff --git a/www/py-pywebview-qt/files/patch-webview_guilib.py b/www/py-pywebview-qt/files/patch-webview_guilib.py new file mode 100644 index 000000000000..072cd2d04a60 --- /dev/null +++ b/www/py-pywebview-qt/files/patch-webview_guilib.py @@ -0,0 +1,20 @@ +--- webview/guilib.py.orig 2024-10-27 17:42:14 UTC ++++ webview/guilib.py +@@ -114,7 +114,7 @@ def initialize(forced_gui: GUIType | None = None): + elif hasattr(sys, 'getandroidapilevel'): + try_import([import_android]) + +- elif platform.system() == 'Linux' or platform.system() == 'OpenBSD': ++ elif platform.system() == 'Linux' or platform.system() == 'OpenBSD' or platform.system() == 'FreeBSD': + if forced_gui == 'qt': + guis = [import_qt, import_gtk] + else: +@@ -135,7 +135,7 @@ def initialize(forced_gui: GUIType | None = None): + raise WebViewException('You must have pythonnet installed in order to use pywebview.') + else: + raise WebViewException( +- 'Unsupported platform. Only Windows, Linux, OS X, OpenBSD are supported.' ++ 'Unsupported platform. Only Windows, Linux, OS X, OpenBSD, FreeBSD are supported.' + ) + + guilib.setup_app() diff --git a/www/py-pywebview-qt/pkg-descr b/www/py-pywebview-qt/pkg-descr new file mode 100644 index 000000000000..dd8643f9f8b9 --- /dev/null +++ b/www/py-pywebview-qt/pkg-descr @@ -0,0 +1,7 @@ +pywebview is a lightweight cross-platform wrapper around a webview +component that allows to display HTML content in its own native GUI +window. It gives you the power of web technologies in your desktop +application, hiding the fact that the GUI is browser based. Available +for Windows, macOS, Linux and Android. You can use pywebview either +with a 3rd party web framework or on its own with a two way bridge +between Python and DOM. diff --git a/www/py-pywebview-qt/pkg-message b/www/py-pywebview-qt/pkg-message new file mode 100644 index 000000000000..9a68da360c97 --- /dev/null +++ b/www/py-pywebview-qt/pkg-message @@ -0,0 +1,8 @@ +[ +{ type: install + message: <