summaryrefslogtreecommitdiff
path: root/textproc/py-textual-image
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/py-textual-image')
-rw-r--r--textproc/py-textual-image/Makefile25
-rw-r--r--textproc/py-textual-image/distinfo3
-rw-r--r--textproc/py-textual-image/pkg-descr13
3 files changed, 41 insertions, 0 deletions
diff --git a/textproc/py-textual-image/Makefile b/textproc/py-textual-image/Makefile
new file mode 100644
index 000000000000..990f9c659a98
--- /dev/null
+++ b/textproc/py-textual-image/Makefile
@@ -0,0 +1,25 @@
+PORTNAME= textual-image
+PORTVERSION= 0.8.4
+CATEGORIES= textproc python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= textual_image-${PORTVERSION}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Render images via Kitty's Terminal Graphics Protocol with Rich and Textual
+WWW= https://github.com/lnqs/textual-image
+
+LICENSE= LGPL3
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>=10.3.0:graphics/py-pillow@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}rich>=13.4.0:textproc/py-rich@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent pep517
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/textproc/py-textual-image/distinfo b/textproc/py-textual-image/distinfo
new file mode 100644
index 000000000000..28c573aa29d4
--- /dev/null
+++ b/textproc/py-textual-image/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1759816482
+SHA256 (textual_image-0.8.4.tar.gz) = d13f960da07659cfac9d9e417ca7057b3ac0c17a7827ae8e47c3b164d43776fc
+SIZE (textual_image-0.8.4.tar.gz) = 109056
diff --git a/textproc/py-textual-image/pkg-descr b/textproc/py-textual-image/pkg-descr
new file mode 100644
index 000000000000..c7392882efdf
--- /dev/null
+++ b/textproc/py-textual-image/pkg-descr
@@ -0,0 +1,13 @@
+textual-image renders images directly in your terminal using Textual and Rich.
+
+textual-image offers both Rich renderables and Textual Widgets that leverage the
+Terminal Graphics Protocol (TGP) and Sixel protocols to display images in your
+terminal. For terminals that don't support these protocols, fallback rendering
+using Unicode characters is available.
+
+Supported Terminals:
+- Terminal Graphics Protocol (TGP): Initially introduced by the Kitty terminal
+ emulator. While support is partially available in other terminals, it doesn't
+ seem to be really usable there.
+- Sixel Graphics: Supported by various terminal emulators including xterm and a
+ lot of others.