aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesús Daniel Colmenares Oviedo <DtxdF@disroot.org>2023-05-01 12:39:09 +0000
committerRobert Clausecker <fuz@FreeBSD.org>2023-05-06 08:58:37 +0000
commit45c4a99d6feb9016f74e565749619132e0a84799 (patch)
tree2421b9a2acdb037802d186db94cf343edf2b6207
parentb8d0c0db8c8a075925f04150001a92db787961f5 (diff)
downloadports-45c4a99d6feb9016f74e565749619132e0a84799.tar.gz
ports-45c4a99d6feb9016f74e565749619132e0a84799.zip
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
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/py-colorthief/Makefile19
-rw-r--r--graphics/py-colorthief/distinfo3
-rw-r--r--graphics/py-colorthief/pkg-descr4
4 files changed, 27 insertions, 0 deletions
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.