git: d35ce1ef16b7 - main - textproc/py-ansicolors: New port: ANSI colors for Python
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 01 Jan 2024 23:43:23 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=d35ce1ef16b7a2e8ed3e6ba9219347d1d6e6d232
commit d35ce1ef16b7a2e8ed3e6ba9219347d1d6e6d232
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-01-01 20:36:23 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-01-01 23:43:15 +0000
textproc/py-ansicolors: New port: ANSI colors for Python
---
textproc/Makefile | 1 +
textproc/py-ansicolors/Makefile | 22 ++++++++++++++++++++++
textproc/py-ansicolors/distinfo | 3 +++
textproc/py-ansicolors/pkg-descr | 1 +
4 files changed, 27 insertions(+)
diff --git a/textproc/Makefile b/textproc/Makefile
index 2c74f827da2b..83b074d9ae58 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1298,6 +1298,7 @@
SUBDIR += py-agate-excel
SUBDIR += py-alabaster
SUBDIR += py-ansi2html
+ SUBDIR += py-ansicolors
SUBDIR += py-anyascii
SUBDIR += py-arabic-reshaper
SUBDIR += py-asciinema
diff --git a/textproc/py-ansicolors/Makefile b/textproc/py-ansicolors/Makefile
new file mode 100644
index 000000000000..24fe4c27d785
--- /dev/null
+++ b/textproc/py-ansicolors/Makefile
@@ -0,0 +1,22 @@
+PORTNAME= ansicolors
+DISTVERSION= 1.1.8
+CATEGORIES= textproc python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= ANSI colors for Python
+WWW= https://github.com/jonathaneunice/ansiwrap
+
+LICENSE= APACHE20
+
+TEST_DEPENDS= ${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-ansicolors/distinfo b/textproc/py-ansicolors/distinfo
new file mode 100644
index 000000000000..f87a7f7d1c1f
--- /dev/null
+++ b/textproc/py-ansicolors/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1704141221
+SHA256 (ansicolors-1.1.8.zip) = 99f94f5e3348a0bcd43c82e5fc4414013ccc19d70bd939ad71e0133ce9c372e0
+SIZE (ansicolors-1.1.8.zip) = 23027
diff --git a/textproc/py-ansicolors/pkg-descr b/textproc/py-ansicolors/pkg-descr
new file mode 100644
index 000000000000..92df11eed9bb
--- /dev/null
+++ b/textproc/py-ansicolors/pkg-descr
@@ -0,0 +1 @@
+ansicolors adds ANSI colors and decorations to your strings.