From cc3b32d9ba65f25d0e8c59e391289718ae939487 Mon Sep 17 00:00:00 2001 From: Yusuf Yaman Date: Sun, 4 May 2025 02:50:18 +0000 Subject: [PATCH] graphics/py-term-image: New port term-image is a Python utility that enables the display of images directly within the terminal, providing a unique and innovative way to view images without leaving the command line interface. It supports various image formats and can be used in a range of applications, from simple image viewing to more complex terminal-based projects. PR: 285236 Reported by: Yusuf Yaman --- graphics/Makefile | 1 + graphics/py-term-image/Makefile | 24 ++++++++++++++++++++++++ graphics/py-term-image/distinfo | 3 +++ graphics/py-term-image/pkg-descr | 5 +++++ 4 files changed, 33 insertions(+) create mode 100644 graphics/py-term-image/Makefile create mode 100644 graphics/py-term-image/distinfo create mode 100644 graphics/py-term-image/pkg-descr diff --git a/graphics/Makefile b/graphics/Makefile index 597daa073dd3..f2391b439dac 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -1018,6 +1018,7 @@ SUBDIR += py-svg.path SUBDIR += py-svgelements SUBDIR += py-svgwrite + SUBDIR += py-term-image SUBDIR += py-termtosvg SUBDIR += py-tifffile SUBDIR += py-tkcolorpicker diff --git a/graphics/py-term-image/Makefile b/graphics/py-term-image/Makefile new file mode 100644 index 000000000000..2c23c964d8c9 --- /dev/null +++ b/graphics/py-term-image/Makefile @@ -0,0 +1,24 @@ +PORTNAME= term-image +DISTVERSION= 0.7.2 +CATEGORIES= graphics python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= term_image-${DISTVERSION} + +MAINTAINER= nxjoseph@protonmail.com +COMMENT= Display images in the terminal with Python +WWW= https://github.com/AnonymouX47/term-image \ + https://pypi.org/project/term-image + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>=9.1:graphics/py-pillow@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>=2.23<3:www/py-requests@${PY_FLAVOR} + +USES= python:3.7+ +USE_PYTHON= autoplist distutils flavors + +NO_ARCH= yes + +.include diff --git a/graphics/py-term-image/distinfo b/graphics/py-term-image/distinfo new file mode 100644 index 000000000000..5aaf29ef068e --- /dev/null +++ b/graphics/py-term-image/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1741385726 +SHA256 (term_image-0.7.2.tar.gz) = 07320573baa667dcde145d55e94769cbaafeea43b61245245153ff5075b55ffb +SIZE (term_image-0.7.2.tar.gz) = 63946 diff --git a/graphics/py-term-image/pkg-descr b/graphics/py-term-image/pkg-descr new file mode 100644 index 000000000000..b55a590cef49 --- /dev/null +++ b/graphics/py-term-image/pkg-descr @@ -0,0 +1,5 @@ +term-image is a Python utility that enables the display of images directly +within the terminal, providing a unique and innovative way to view images +without leaving the command line interface. It supports various image +formats and can be used in a range of applications, from simple image +viewing to more complex terminal-based projects.