git: c7c9193bbcce - main - x11-toolkits/py-customtkinter: New port: Modern and customizable python UI-library based on Tkinter
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 11 Aug 2024 20:37:31 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c7c9193bbcce4b48d737cff5a7563fadf8b98bdc
commit c7c9193bbcce4b48d737cff5a7563fadf8b98bdc
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-08-11 20:05:32 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-08-11 20:37:28 +0000
x11-toolkits/py-customtkinter: New port: Modern and customizable python UI-library based on Tkinter
---
x11-toolkits/Makefile | 1 +
x11-toolkits/py-customtkinter/Makefile | 22 ++++++++++++++++++++++
x11-toolkits/py-customtkinter/distinfo | 3 +++
...s_appearance__mode_appearance__mode__tracker.py | 19 +++++++++++++++++++
x11-toolkits/py-customtkinter/pkg-descr | 1 +
5 files changed, 46 insertions(+)
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.