git: 3a3eb53b1efd - main - graphics/py-haishoku: Tool for grabbing the representative color palette from an image

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=3a3eb53b1efdd087af317e02be2b6ef4d7a62468

commit 3a3eb53b1efdd087af317e02be2b6ef4d7a62468
Author:     Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org>
AuthorDate: 2023-04-29 14:06:46 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-05-06 08:58:37 +0000

    graphics/py-haishoku: Tool for grabbing the representative color palette from an image
    
    Haishoku is a development tool for grabbing the dominant color or
    representative color palette from an image, it depends on Python3
    and Pillow.
    
    WWW: https://github.com/LanceGin/haishoku/
    
    PR:             266119
---
 graphics/Makefile              |  1 +
 graphics/py-haishoku/Makefile  | 19 +++++++++++++++++++
 graphics/py-haishoku/distinfo  |  3 +++
 graphics/py-haishoku/pkg-descr |  3 +++
 4 files changed, 26 insertions(+)

diff --git a/graphics/Makefile b/graphics/Makefile
index 35749c612821..1c9d125b2e1b 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -878,6 +878,7 @@
     SUBDIR += py-graphy
     SUBDIR += py-gvgen
     SUBDIR += py-h3
+    SUBDIR += py-haishoku
     SUBDIR += py-hiplot
     SUBDIR += py-imageio
     SUBDIR += py-imageio-ffmpeg
diff --git a/graphics/py-haishoku/Makefile b/graphics/py-haishoku/Makefile
new file mode 100644
index 000000000000..27623e0d0e7f
--- /dev/null
+++ b/graphics/py-haishoku/Makefile
@@ -0,0 +1,19 @@
+PORTNAME=	haishoku
+DISTVERSION=	1.1.8
+CATEGORIES=	graphics python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	DtxdF@disroot.org
+COMMENT=	Tool for grabbing the representative color palette from an image
+WWW=		https://github.com/LanceGin/haishoku/
+
+LICENSE=	MIT
+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-haishoku/distinfo b/graphics/py-haishoku/distinfo
new file mode 100644
index 000000000000..72ad42ed5d28
--- /dev/null
+++ b/graphics/py-haishoku/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1661847167
+SHA256 (haishoku-1.1.8.tar.gz) = e4b9a14c03586081b18abcf04b4320168fea93ff611e81b2bccd5d5269ffcbd4
+SIZE (haishoku-1.1.8.tar.gz) = 5628
diff --git a/graphics/py-haishoku/pkg-descr b/graphics/py-haishoku/pkg-descr
new file mode 100644
index 000000000000..d0ea07d75289
--- /dev/null
+++ b/graphics/py-haishoku/pkg-descr
@@ -0,0 +1,3 @@
+Haishoku is a development tool for grabbing the dominant color or
+representative color palette from an image, it depends on Python3
+and Pillow.