git: 57185ef9a619 - main - textproc/py-ansiwrap: New port: Textwrap, but savvy to ANSI colors and styles
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 01 Jan 2024 23:43:24 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=57185ef9a619e47eb830fa950917bd60f7f3f922 commit 57185ef9a619e47eb830fa950917bd60f7f3f922 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2024-01-01 20:39:41 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2024-01-01 23:43:15 +0000 textproc/py-ansiwrap: New port: Textwrap, but savvy to ANSI colors and styles --- textproc/Makefile | 1 + textproc/py-ansiwrap/Makefile | 24 ++++++++++++++++++++++++ textproc/py-ansiwrap/distinfo | 3 +++ textproc/py-ansiwrap/pkg-descr | 2 ++ 4 files changed, 30 insertions(+) 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.