Skip to content

Commit

Permalink
New port: textproc/py-rst2ansi: RST converter to ansi-decorated conso…
Browse files Browse the repository at this point in the history
…le output

PR:		255382
Submitted by:	Henry <PopularMoment@protonmail.com>
  • Loading branch information
neelchauhan committed Apr 28, 2021
1 parent 5d4a672 commit dc47039
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions textproc/Makefile
Expand Up @@ -1399,6 +1399,7 @@
SUBDIR += py-rich
SUBDIR += py-rnc2rng
SUBDIR += py-rss2gen
SUBDIR += py-rst2ansi
SUBDIR += py-rst2html5
SUBDIR += py-scour
SUBDIR += py-simplebayes
Expand Down
23 changes: 23 additions & 0 deletions textproc/py-rst2ansi/Makefile
@@ -0,0 +1,23 @@
PORTNAME= rst2ansi
PORTVERSION= 0.1.5
CATEGORIES= textproc python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= PopularMoment@protonmail.com
COMMENT= RST converter to ansi-decorated console output

LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE

RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}docutils>=0.14:textproc/py-docutils@${PY_FLAVOR}

USES= python:3.6+
USE_PYTHON= distutils concurrent autoplist

NO_ARCH= yes

do-test:
@cd ${WRKSRC}/ && ${PYTHON_CMD} setup.py test

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions textproc/py-rst2ansi/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1619631513
SHA256 (rst2ansi-0.1.5.tar.gz) = 1b17fb9a628d40f57933ad1a3aa952346444be069469508e73e95060da33fe6f
SIZE (rst2ansi-0.1.5.tar.gz) = 9989
3 changes: 3 additions & 0 deletions textproc/py-rst2ansi/pkg-descr
@@ -0,0 +1,3 @@
rst2ansi is a library for rendering reStructuredText (RST) in a terminal.

WWW: https://github.com/Snaipe/python-rst2ansi

0 comments on commit dc47039

Please sign in to comment.