diff --git a/textproc/Makefile b/textproc/Makefile index 715568c4a4..759d82493a 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1398,6 +1398,7 @@ SUBDIR += py-rich SUBDIR += py-rnc2rng SUBDIR += py-rss2gen + SUBDIR += py-rst2ansi SUBDIR += py-rst2html5 SUBDIR += py-scour SUBDIR += py-simplebayes diff --git a/textproc/py-rst2ansi/Makefile b/textproc/py-rst2ansi/Makefile new file mode 100644 index 0000000000..02c4f04521 --- /dev/null +++ b/textproc/py-rst2ansi/Makefile @@ -0,0 +1,27 @@ +PORTNAME= rst2ansi +PORTVERSION= 0.1.5 +DISTVERSIONPREFIX= v +CATEGORIES= textproc python +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 + +USE_GITHUB= yes +GH_ACCOUNT= Snaipe +GH_PROJECT= python-rst2ansi + +NO_ARCH= yes + +do-test: + @cd ${WRKSRC}/ && ${PYTHON_CMD} setup.py test + +.include diff --git a/textproc/py-rst2ansi/distinfo b/textproc/py-rst2ansi/distinfo new file mode 100644 index 0000000000..1b940641da --- /dev/null +++ b/textproc/py-rst2ansi/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1619315288 +SHA256 (Snaipe-python-rst2ansi-v0.1.5_GH0.tar.gz) = 973605f7b602ee839bb028c347af789c0e892ed8a86158c8e86a0f035c58b2bb +SIZE (Snaipe-python-rst2ansi-v0.1.5_GH0.tar.gz) = 15465 diff --git a/textproc/py-rst2ansi/pkg-descr b/textproc/py-rst2ansi/pkg-descr new file mode 100644 index 0000000000..dd6c8ea291 --- /dev/null +++ b/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