View | Details | Raw Unified | Return to bug 282459 | Differences between
and this patch

Collapse All | Expand All

(-)b/www/py-pywebview-qt/Makefile (+32 lines)
Added Link Here
1
PORTNAME=	pywebview
2
DISTVERSION=	5.3.2
3
CATEGORIES=	www python
4
MASTER_SITES=	PYPI
5
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
6
PKGNAMESUFFIX=	-qt
7
8
MAINTAINER=	DtxdF@disroot.org
9
COMMENT=	Build GUI for your Python program with JavaScript, HTML, and CSS (qt)
10
WWW=		https://github.com/r0x0r/pywebview
11
12
LICENSE=	BSD3CLAUSE
13
LICENSE_FILE=	${WRKSRC}/LICENSE
14
15
BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools-scm>=0:devel/py-setuptools-scm@${PY_FLAVOR} \
16
		${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
17
		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
18
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}bottle>=0:www/py-bottle@${PY_FLAVOR} \
19
		${PYTHON_PKGNAMEPREFIX}proxy_tools>=0:www/py-proxy_tools@${PY_FLAVOR} \
20
		${PYTHON_PKGNAMEPREFIX}pyside2>=0:devel/pyside2@${PY_FLAVOR} \
21
		${PYTHON_PKGNAMEPREFIX}QtPy>=0:devel/py-QtPy@${PY_FLAVOR} \
22
		${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
23
24
USES=		pyqt:5 python
25
USE_PYQT=	webengine:run
26
USE_PYTHON=	autoplist cryptography pep517
27
28
CONFLICTS_INSTALL=	www/py-${PORTNAME}-gtk
29
30
NO_ARCH=	yes
31
32
.include <bsd.port.mk>
(-)b/www/py-pywebview-qt/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1730049620
2
SHA256 (pywebview-5.3.2.tar.gz) = 77b88a63e65e12913d269205e9c6d357666d4864826749c738bf432bd3ad23d9
3
SIZE (pywebview-5.3.2.tar.gz) = 443072
(-)b/www/py-pywebview-qt/files/patch-webview_guilib.py (+20 lines)
Added Link Here
1
--- webview/guilib.py.orig	2024-10-27 17:42:14 UTC
2
+++ webview/guilib.py
3
@@ -114,7 +114,7 @@ def initialize(forced_gui: GUIType | None = None):
4
     elif hasattr(sys, 'getandroidapilevel'):
5
         try_import([import_android])
6
 
7
-    elif platform.system() == 'Linux' or platform.system() == 'OpenBSD':
8
+    elif platform.system() == 'Linux' or platform.system() == 'OpenBSD' or platform.system() == 'FreeBSD':
9
         if forced_gui == 'qt':
10
             guis = [import_qt, import_gtk]
11
         else:
12
@@ -135,7 +135,7 @@ def initialize(forced_gui: GUIType | None = None):
13
             raise WebViewException('You must have pythonnet installed in order to use pywebview.')
14
     else:
15
         raise WebViewException(
16
-            'Unsupported platform. Only Windows, Linux, OS X, OpenBSD are supported.'
17
+            'Unsupported platform. Only Windows, Linux, OS X, OpenBSD, FreeBSD are supported.'
18
         )
19
 
20
     guilib.setup_app()
(-)b/www/py-pywebview-qt/pkg-descr (+7 lines)
Added Link Here
1
pywebview is a lightweight cross-platform wrapper around a webview
2
component that allows to display HTML content in its own native GUI
3
window. It gives you the power of web technologies in your desktop
4
application, hiding the fact that the GUI is browser based. Available
5
for Windows, macOS, Linux and Android. You can use pywebview either
6
with a 3rd party web framework or on its own with a two way bridge
7
between Python and DOM.
(-)b/www/py-pywebview-qt/pkg-message (-1 / +8 lines)
Added Link Here
0
- 
1
[
2
{ type: install
3
  message: <<EOM
4
If the error 'Could not initialize GLX' is displayed, set the 'QT_XCB_GL_INTEGRATION=none'
5
environment variable or install 'graphics/mesa-dri' and add your user to the 'video' group.
6
EOM
7
}
8
]

Return to bug 282459