git: ab318add9bc9 - main - games/kajongg: add missing dependence on QtPy
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 26 Jun 2025 09:31:08 UTC
The branch main has been updated by makc:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ab318add9bc97032ee1b38855fc623543802f96e
commit ab318add9bc97032ee1b38855fc623543802f96e
Author: Max Brazhnikov <makc@FreeBSD.org>
AuthorDate: 2025-06-26 09:11:35 +0000
Commit: Max Brazhnikov <makc@FreeBSD.org>
CommitDate: 2025-06-26 09:30:32 +0000
games/kajongg: add missing dependence on QtPy
Add provide options to choose between PyQt and PySide bindings
PR: 287800
Reported by: ykla
---
games/kajongg/Makefile | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/games/kajongg/Makefile b/games/kajongg/Makefile
index 252e434cc5bc..5bfc698eb250 100644
--- a/games/kajongg/Makefile
+++ b/games/kajongg/Makefile
@@ -1,5 +1,6 @@
PORTNAME= kajongg
DISTVERSION= ${KDE_APPLICATIONS_VERSION}
+PORTREVISION= 1
CATEGORIES= games kde kde-applications
MAINTAINER= kde@FreeBSD.org
@@ -8,7 +9,8 @@ WWW= https://apps.kde.org/kajongg/
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}twisted>=16.6.0:devel/py-twisted@${PY_FLAVOR}
LIB_DEPENDS= libKMahjongg6.so:games/libkmahjongg
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}twisted>=16.6.0:devel/py-twisted@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}twisted>=16.6.0:devel/py-twisted@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}QtPy>=2.2:devel/py-QtPy@${PY_FLAVOR}
USES= cmake compiler:c++11-lang gettext kde:6 python \
qt:6 shebangfix tar:xz
@@ -20,6 +22,18 @@ SHEBANG_FILES= src/kajongg.py \
src/kajonggserver.py
OPTIONS_DEFINE= DOCS
+OPTIONS_MULTI= QTPY
+OPTIONS_MULTI_QTPY= PYQT PYSIDE
+OPTIONS_DEFAULT= PYQT
+
+QTPY_DESC= QtPy backend
+
+PYQT_DESC= Install PyQt bindings
+PYQT_USES= pyqt:6
+PYQT_USE= PYQT=pyqt6
+
+PYSIDE_DESC= Install PySide bindings
+PYSIDE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyside6>0:devel/pyside6@${PY_FLAVOR}
.include <${.CURDIR}/../kdegames/Makefile.common>
.include <bsd.port.mk>