aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2024-08-11 20:05:32 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2024-08-11 20:37:28 +0000
commitc7c9193bbcce4b48d737cff5a7563fadf8b98bdc (patch)
treeaae36cf8391a38c88188482d521d1f5f3c00b4af
parent5eebf1e6ad94d8aa4104d75be836ccdefa8ffd2a (diff)
x11-toolkits/py-customtkinter: New port: Modern and customizable python UI-library based on Tkinter
-rw-r--r--x11-toolkits/Makefile1
-rw-r--r--x11-toolkits/py-customtkinter/Makefile22
-rw-r--r--x11-toolkits/py-customtkinter/distinfo3
-rw-r--r--x11-toolkits/py-customtkinter/files/patch-customtkinter_windows_widgets_appearance__mode_appearance__mode__tracker.py19
-rw-r--r--x11-toolkits/py-customtkinter/pkg-descr1
5 files changed, 46 insertions, 0 deletions
diff --git a/x11-toolkits/Makefile b/x11-toolkits/Makefile
index 2d3ad2b6eeed..d19ca278a99f 100644
--- a/x11-toolkits/Makefile
+++ b/x11-toolkits/Makefile
@@ -167,6 +167,7 @@
SUBDIR += py-AnyQt
SUBDIR += py-Pmw
SUBDIR += py-awesometkinter
+ SUBDIR += py-customtkinter
SUBDIR += py-easygui
SUBDIR += py-fltk
SUBDIR += py-guietta
diff --git a/x11-toolkits/py-customtkinter/Makefile b/x11-toolkits/py-customtkinter/Makefile
new file mode 100644
index 000000000000..8a76da3f78e9
--- /dev/null
+++ b/x11-toolkits/py-customtkinter/Makefile
@@ -0,0 +1,22 @@
+PORTNAME= customtkinter
+DISTVERSION= 5.2.2
+CATEGORIES= x11-toolkits python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Modern and customizable python UI-library based on Tkinter
+WWW= https://customtkinter.tomschimansky.com/
+
+LICENSE= PSFL
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 autoplist
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/x11-toolkits/py-customtkinter/distinfo b/x11-toolkits/py-customtkinter/distinfo
new file mode 100644
index 000000000000..67fc914c85e6
--- /dev/null
+++ b/x11-toolkits/py-customtkinter/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1723403379
+SHA256 (customtkinter-5.2.2.tar.gz) = fd8db3bafa961c982ee6030dba80b4c2e25858630756b513986db19113d8d207
+SIZE (customtkinter-5.2.2.tar.gz) = 261999
diff --git a/x11-toolkits/py-customtkinter/files/patch-customtkinter_windows_widgets_appearance__mode_appearance__mode__tracker.py b/x11-toolkits/py-customtkinter/files/patch-customtkinter_windows_widgets_appearance__mode_appearance__mode__tracker.py
new file mode 100644
index 000000000000..95c255b27584
--- /dev/null
+++ b/x11-toolkits/py-customtkinter/files/patch-customtkinter_windows_widgets_appearance__mode_appearance__mode__tracker.py
@@ -0,0 +1,19 @@
+--- customtkinter/windows/widgets/appearance_mode/appearance_mode_tracker.py.orig 2024-08-11 19:14:14 UTC
++++ customtkinter/windows/widgets/appearance_mode/appearance_mode_tracker.py
+@@ -1,6 +1,6 @@ from typing import Callable
+ import tkinter
+ from typing import Callable
+-import darkdetect
++#import darkdetect
+
+
+ class AppearanceModeTracker:
+@@ -45,7 +45,7 @@ class AppearanceModeTracker:
+ @staticmethod
+ def detect_appearance_mode() -> int:
+ try:
+- if darkdetect.theme() == "Dark":
++ if True:
+ return 1 # Dark
+ else:
+ return 0 # Light
diff --git a/x11-toolkits/py-customtkinter/pkg-descr b/x11-toolkits/py-customtkinter/pkg-descr
new file mode 100644
index 000000000000..2a2538b4c2fc
--- /dev/null
+++ b/x11-toolkits/py-customtkinter/pkg-descr
@@ -0,0 +1 @@
+CustomTkinter is a modern and customizable python UI-library based on Tkinter.