aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicola Vitale <nivit@FreeBSD.org>2026-02-04 10:52:00 +0000
committerNicola Vitale <nivit@FreeBSD.org>2026-02-04 15:09:07 +0000
commit827f537cfbf70937b904532d6eb5acf6103a81ab (patch)
tree1490c890ec76ad79613e4d70a97015e875d14083
parent1de02a425b8e429437efe8dd686fbe67604855fa (diff)
devel/py-darkdetect: Add new port
The main application of this Python package is to detect the Dark mode from your GUI Python application (Tkinter/wx/pyqt/qt for python (pyside)/...) and apply the needed adjustments to your interface. Darkdetect is particularly useful if your GUI library does not provide a public API for this detection. In addition, this package does not depend on other modules or packages that are not already included in standard Python distributions. https://pypi.org/project/darkdetect/
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-darkdetect/Makefile20
-rw-r--r--devel/py-darkdetect/distinfo3
-rw-r--r--devel/py-darkdetect/pkg-descr6
4 files changed, 30 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index a8e71e86333f..e04a6968400b 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4784,6 +4784,7 @@
SUBDIR += py-daemons
SUBDIR += py-daiquiri
SUBDIR += py-dal
+ SUBDIR += py-darkdetect
SUBDIR += py-darts.util.lru
SUBDIR += py-dask
SUBDIR += py-dask-awkward
diff --git a/devel/py-darkdetect/Makefile b/devel/py-darkdetect/Makefile
new file mode 100644
index 000000000000..8a56e51e93bc
--- /dev/null
+++ b/devel/py-darkdetect/Makefile
@@ -0,0 +1,20 @@
+PORTNAME= darkdetect
+DISTVERSION= 0.8.0
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= nivit@FreeBSD.org
+COMMENT= This Python package allows to detect if the user is using Dark Mode
+WWW= https://pypi.org/project/darkdetect/
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=42:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist pep517
+
+.include <bsd.port.mk>
diff --git a/devel/py-darkdetect/distinfo b/devel/py-darkdetect/distinfo
new file mode 100644
index 000000000000..3156fa3df492
--- /dev/null
+++ b/devel/py-darkdetect/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1770201734
+SHA256 (darkdetect-0.8.0.tar.gz) = b5428e1170263eb5dea44c25dc3895edd75e6f52300986353cd63533fe7df8b1
+SIZE (darkdetect-0.8.0.tar.gz) = 7681
diff --git a/devel/py-darkdetect/pkg-descr b/devel/py-darkdetect/pkg-descr
new file mode 100644
index 000000000000..195f314b537c
--- /dev/null
+++ b/devel/py-darkdetect/pkg-descr
@@ -0,0 +1,6 @@
+The main application of this Python package is to detect the Dark mode from
+your GUI Python application (Tkinter/wx/pyqt/qt for python (pyside)/...) and
+apply the needed adjustments to your interface. Darkdetect is particularly
+useful if your GUI library does not provide a public API for this detection.
+In addition, this package does not depend on other modules or packages that are
+not already included in standard Python distributions.