git: 5d7c3745d5cb - main - math/py-colormath2: Fork of abandoned py-colormath

From: Jason W. Bacon <jwb_at_FreeBSD.org>
Date: Tue, 15 Sep 2026 19:36:57 UTC
The branch main has been updated by jwb:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5d7c3745d5cb1de7bbe72c06ffc968691ff30063

commit 5d7c3745d5cb1de7bbe72c06ffc968691ff30063
Author:     Jason W. Bacon <jwb@FreeBSD.org>
AuthorDate: 2026-09-15 19:34:35 +0000
Commit:     Jason W. Bacon <jwb@FreeBSD.org>
CommitDate: 2026-09-15 19:34:35 +0000

    math/py-colormath2: Fork of abandoned py-colormath
    
    Colormath2 is an actively maintained fork of the colormath project
    which has been archived upstream.  Dependent ports will be switched
    to colormath2 and py-colormath will be deprecated.
    
    PR:             298324
---
 math/Makefile                |  1 +
 math/py-colormath2/Makefile  | 23 +++++++++++++++++++++++
 math/py-colormath2/distinfo  |  3 +++
 math/py-colormath2/pkg-descr | 13 +++++++++++++
 4 files changed, 40 insertions(+)

diff --git a/math/Makefile b/math/Makefile
index 553bc278ca84..2fda481c5f85 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -984,6 +984,7 @@
     SUBDIR += py-cmaes
     SUBDIR += py-cmyt
     SUBDIR += py-colormath
+    SUBDIR += py-colormath2
     SUBDIR += py-contourpy
     SUBDIR += py-conway-polynomials
     SUBDIR += py-cryptominisat
diff --git a/math/py-colormath2/Makefile b/math/py-colormath2/Makefile
new file mode 100644
index 000000000000..ac93d8ec01b3
--- /dev/null
+++ b/math/py-colormath2/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	colormath2
+PORTVERSION=	3.0.3
+CATEGORIES=	math python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	jwb@FreeBSD.org
+COMMENT=	Module that spares the user from directly dealing with color math
+WWW=		https://pypi.org/project/colormath2/
+
+LICENSE=	BSD2CLAUSE
+
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.9.2:math/py-numpy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}networkx>=1.9.1:math/py-networkx@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/math/py-colormath2/distinfo b/math/py-colormath2/distinfo
new file mode 100644
index 000000000000..66b2ac2e7bce
--- /dev/null
+++ b/math/py-colormath2/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1788886477
+SHA256 (colormath2-3.0.3.tar.gz) = e797613f4f0b86c6c218a1c7dc50f1259e6934e391581969b689ae27379c2ffa
+SIZE (colormath2-3.0.3.tar.gz) = 51301
diff --git a/math/py-colormath2/pkg-descr b/math/py-colormath2/pkg-descr
new file mode 100644
index 000000000000..30d6f38c8cea
--- /dev/null
+++ b/math/py-colormath2/pkg-descr
@@ -0,0 +1,13 @@
+Colormath2 is a simple Python module that spares the user from directly
+dealing with color math.
+
+Some features include:
+
+* Support for a wide range of color spaces. A good chunk of the CIE
+  spaces, RGB, HSL/HSV, CMY/CMYK, and many more.
+* Conversions between the various color spaces. For example, XYZ to
+  sRGB, Spectral to XYZ, CIE Lab to Adobe RGB.
+* Calculation of color difference. All CIE Delta E functions, plus CMC.
+* Chromatic adaptations (changing illuminants).
+* RGB to hex and vice-versa.
+* 16-bit RGB support.