From nobody Sun Aug 11 20:37:31 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WhqG41mCFz5S7PT; Sun, 11 Aug 2024 20:37:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WhqG415ktz4k1F; Sun, 11 Aug 2024 20:37:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723408652; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nOAdJAxfBctKgWMDgzH60UG/6v33MeZR+qvsh9lmZGc=; b=eMffy++P3zJKSojDNIoOdIO56EHVhjjesbnPvEoE+MjTEixi01lueKSaLv3IXAFDqP6Op5 /yjDOxzt664pfvDE6uW2kfMy3BxJT2lfkQHMmHYlsuJzNEd330UKHvZWhxgcCxMeosry8+ 6NjRgfv0h9Whpp3ZU+2gWh+oQIEgNLF84cWR2EPtR+MqkF98GJjilrUxiFI+Kx0yE1cjVL v2n9Muo3pqgAXVsPPRbZfQGg2oz/s4bjadsEBNeaS/0cin7XdgXIiNgOlque231QQ8uXcQ usPiH/QIoeEYhTlXaGxYMF3Nrej+m9SYYrrDUkJFyvrrCk0N5CnT/dO9MGxuLA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723408652; a=rsa-sha256; cv=none; b=A6z0KqbebnQHnoaNn+YFzuKrBd2/LSNk4FXiAYnIPJ31jUX4q/FrIxtAKxHZSxAZybIbHT Gs3OcMBbQB3BxpBuaPAsz1JvrKeDCwSEurE8hfrcaxNHqsomLiFfan1VxM6Q6MRh5xf/tF L7oZ0BBCcprPgDAqNLy1QOZxryHFpyBVWtZYWsLIUVwa4WT4T+KyYTMCnyOT8Wl+d4FfIB aaOXxEfGizIG1E+Okh2m2oErrze5mXRsHqfFC4CWTm0K062rqF+a0YUW2l8Q9+RiM/hbBm LL7Ofu404NpAGzF4FU/AIExFoW/TUSX0GDyBW+laozcTgesaEHCl0kbTkVroGQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723408652; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nOAdJAxfBctKgWMDgzH60UG/6v33MeZR+qvsh9lmZGc=; b=qFfMhH6/gd48ZPmftMi3pbGLOp7WO+8KIm5IyclW1DTqY6bomDz78UFxUoMdxKOku0c+jZ ts5SplyzaGzljfw4kJ4ANBig7XQh+wIbxUqBIPiFG5YPObLq0h5UM/srgsZVvsGjsvivml rRZwIfONs2VOxz2SFHvVImXh/4mWyiXyanlw4Qs7d/J9mxsdX76ayVzOB1dY7XeGmEJcY7 XefjD4nG3s4nG+y5JfRdO4f8/SwCUf1Ak1xwFABhmi0tYNHEGFT1y46JKDi9iaCPD9FvX4 Ij4b5oUecXl8itzBg4KegiNNEtP6f/iHZzFwrxOshMemN8QhnTrhfIAf5RppBw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WhqG40ZmczyPC; Sun, 11 Aug 2024 20:37:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47BKbV8l079500; Sun, 11 Aug 2024 20:37:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47BKbV8F079497; Sun, 11 Aug 2024 20:37:31 GMT (envelope-from git) Date: Sun, 11 Aug 2024 20:37:31 GMT Message-Id: <202408112037.47BKbV8F079497@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: c7c9193bbcce - main - x11-toolkits/py-customtkinter: New port: Modern and customizable python UI-library based on Tkinter List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c7c9193bbcce4b48d737cff5a7563fadf8b98bdc Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=c7c9193bbcce4b48d737cff5a7563fadf8b98bdc commit c7c9193bbcce4b48d737cff5a7563fadf8b98bdc Author: Yuri Victorovich AuthorDate: 2024-08-11 20:05:32 +0000 Commit: Yuri Victorovich 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 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.