aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2024-01-01 20:39:41 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2024-01-01 23:43:15 +0000
commit57185ef9a619e47eb830fa950917bd60f7f3f922 (patch)
tree962f6d1cd9d4578b679d6f3650aefac50cd0caf0
parentd35ce1ef16b7a2e8ed3e6ba9219347d1d6e6d232 (diff)
textproc/py-ansiwrap: New port: Textwrap, but savvy to ANSI colors and styles
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/py-ansiwrap/Makefile24
-rw-r--r--textproc/py-ansiwrap/distinfo3
-rw-r--r--textproc/py-ansiwrap/pkg-descr2
4 files changed, 30 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 83b074d9ae58..d9db352bbc8d 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1299,6 +1299,7 @@
SUBDIR += py-alabaster
SUBDIR += py-ansi2html
SUBDIR += py-ansicolors
+ SUBDIR += py-ansiwrap
SUBDIR += py-anyascii
SUBDIR += py-arabic-reshaper
SUBDIR += py-asciinema
diff --git a/textproc/py-ansiwrap/Makefile b/textproc/py-ansiwrap/Makefile
new file mode 100644
index 000000000000..be99387c1eef
--- /dev/null
+++ b/textproc/py-ansiwrap/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= ansiwrap
+DISTVERSION= 0.8.4
+CATEGORIES= textproc python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Textwrap, but savvy to ANSI colors and styles
+WWW= https://github.com/jonathaneunice/ansiwrap
+
+LICENSE= APACHE20
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}textwrap3>=0.9.2:textproc/py-textwrap3@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ansicolors>=1.1.8:textproc/py-ansicolors@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}coverage>=0:devel/py-coverage@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}tox>=0:devel/py-tox@${PY_FLAVOR}
+
+USES= python zip
+USE_PYTHON= distutils autoplist pytest
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/textproc/py-ansiwrap/distinfo b/textproc/py-ansiwrap/distinfo
new file mode 100644
index 000000000000..63ebdba83fca
--- /dev/null
+++ b/textproc/py-ansiwrap/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1704138692
+SHA256 (ansiwrap-0.8.4.zip) = ca0c740734cde59bf919f8ff2c386f74f9a369818cdc60efe94893d01ea8d9b7
+SIZE (ansiwrap-0.8.4.zip) = 17666
diff --git a/textproc/py-ansiwrap/pkg-descr b/textproc/py-ansiwrap/pkg-descr
new file mode 100644
index 000000000000..9bb15d8150c2
--- /dev/null
+++ b/textproc/py-ansiwrap/pkg-descr
@@ -0,0 +1,2 @@
+ansiwrap wraps text, like the standard textwrap module. But it also correctly
+wraps text that contains ANSI control sequences that colorize or style text.