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

Collapse All | Expand All

(-)b/www/py-pywebview-gtk/Makefile (+31 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=	-gtk
7
8
MAINTAINER=	DtxdF@disroot.org
9
COMMENT=	Build GUI for your Python program with JavaScript, HTML, and CSS (gtk)
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
LIB_DEPENDS=	libwebkit2gtk-4.0.so:www/webkit2-gtk3
19
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}bottle>=0:www/py-bottle@${PY_FLAVOR} \
20
		${PYTHON_PKGNAMEPREFIX}proxy_tools>=0:www/py-proxy_tools@${PY_FLAVOR} \
21
		${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
22
23
USES=		gnome python
24
USE_GNOME+=	gtk30:run pygobject3:run
25
USE_PYTHON=	autoplist cryptography pep517
26
27
CONFLICTS_INSTALL=	www/py-${PORTNAME}-qt
28
29
NO_ARCH=	yes
30
31
.include <bsd.port.mk>
(-)b/www/py-pywebview-gtk/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-gtk/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-gtk/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-gtk/pkg-message (-1 / +7 lines)
Added Link Here
0
- 
1
[
2
{ type: install
3
  message: <<EOM
4
You need at least one font installed on your system or you will see a blank window.
5
EOM
6
}
7
]

Return to bug 282459