git: 45c4a99d6feb - main - graphics/py-colorthief: New port: Module for grabbing the color palette from an image

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Sat, 06 May 2023 09:01:45 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=45c4a99d6feb9016f74e565749619132e0a84799

commit 45c4a99d6feb9016f74e565749619132e0a84799
Author:     Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org>
AuthorDate: 2023-05-01 12:39:09 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-05-06 08:58:37 +0000

    graphics/py-colorthief: New port: Module for grabbing the color palette from an image
    
    colorthief is a minimalistic python module that can be used without
    adding overhead or many dependencies to your script for grabbing
    the dominant color or a representative color palette of an image
    using Pillow.
    
    WWW: https://github.com/fengsp/color-thief-py/
    
    PR:             266118
---
 graphics/Makefile                |  1 +
 graphics/py-colorthief/Makefile  | 19 +++++++++++++++++++
 graphics/py-colorthief/distinfo  |  3 +++
 graphics/py-colorthief/pkg-descr |  4 ++++
 4 files changed, 27 insertions(+)

diff --git a/graphics/Makefile b/graphics/Makefile
index 1c9d125b2e1b..c1b9c6a412cc 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -852,6 +852,7 @@
     SUBDIR += py-cartopy
     SUBDIR += py-cogdumper
     SUBDIR += py-colorcet
+    SUBDIR += py-colorthief
     SUBDIR += py-colour
     SUBDIR += py-descartes
     SUBDIR += py-django-easy-thumbnails
diff --git a/graphics/py-colorthief/Makefile b/graphics/py-colorthief/Makefile
new file mode 100644
index 000000000000..e176b4599920
--- /dev/null
+++ b/graphics/py-colorthief/Makefile
@@ -0,0 +1,19 @@
+PORTNAME=	colorthief
+DISTVERSION=	0.2.1
+CATEGORIES=	graphics python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	DtxdF@disroot.org
+COMMENT=	Module for grabbing the color palette from an image
+WWW=		https://github.com/fengsp/color-thief-py/
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist distutils
+
+.include <bsd.port.mk>
diff --git a/graphics/py-colorthief/distinfo b/graphics/py-colorthief/distinfo
new file mode 100644
index 000000000000..f13bdae8ca38
--- /dev/null
+++ b/graphics/py-colorthief/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1661850976
+SHA256 (colorthief-0.2.1.tar.gz) = 079cb0c95bdd669c4643e2f7494de13b0b6029d5cdbe2d74d5d3c3386bd57221
+SIZE (colorthief-0.2.1.tar.gz) = 6164
diff --git a/graphics/py-colorthief/pkg-descr b/graphics/py-colorthief/pkg-descr
new file mode 100644
index 000000000000..0a7554a56270
--- /dev/null
+++ b/graphics/py-colorthief/pkg-descr
@@ -0,0 +1,4 @@
+colorthief is a minimalistic python module that can be used without
+adding overhead or many dependencies to your script for grabbing
+the dominant color or a representative color palette of an image
+using Pillow.