git: b7d4f97d3808 - main - textproc/py-docstring-to-markdown: Add new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 05 Nov 2022 12:41:37 UTC
The branch main has been updated by rhurlin:
URL: https://cgit.FreeBSD.org/ports/commit/?id=b7d4f97d3808b8bf7fd9176a2e477190e8374827
commit b7d4f97d3808b8bf7fd9176a2e477190e8374827
Author: Rainer Hurling <rhurlin@FreeBSD.org>
AuthorDate: 2022-11-05 12:34:45 +0000
Commit: Rainer Hurling <rhurlin@FreeBSD.org>
CommitDate: 2022-11-05 12:41:20 +0000
textproc/py-docstring-to-markdown: Add new port
On the fly conversion of Python docstrings to markdown
- Currently can recognise reStructuredText and convert multiple of its
features to Markdown
- in the future will be able to convert Google docstrings too
Needed as dependency for next version of textproc/py-python-lsp-server.
https://github.com/python-lsp/docstring-to-markdown
---
textproc/Makefile | 1 +
textproc/py-docstring-to-markdown/Makefile | 21 +++++++++++++++++++++
textproc/py-docstring-to-markdown/distinfo | 3 +++
textproc/py-docstring-to-markdown/pkg-descr | 5 +++++
4 files changed, 30 insertions(+)
diff --git a/textproc/Makefile b/textproc/Makefile
index ca4784525275..b80b50a58fba 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1310,6 +1310,7 @@
SUBDIR += py-diff-match-patch
SUBDIR += py-docrepr
SUBDIR += py-docstring-parser
+ SUBDIR += py-docstring-to-markdown
SUBDIR += py-docutils
SUBDIR += py-docx2txt
SUBDIR += py-dominate
diff --git a/textproc/py-docstring-to-markdown/Makefile b/textproc/py-docstring-to-markdown/Makefile
new file mode 100644
index 000000000000..8e226ba97b8d
--- /dev/null
+++ b/textproc/py-docstring-to-markdown/Makefile
@@ -0,0 +1,21 @@
+PORTNAME= docstring-to-markdown
+DISTVERSION= 0.10
+CATEGORIES= textproc python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= rhurlin@FreeBSD.org
+COMMENT= On the fly conversion of Python docstrings to markdown
+WWW= https://github.com/python-lsp/docstring-to-markdown
+
+LICENSE= LGPL21+
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mypy>0:devel/py-mypy@${PY_FLAVOR}
+
+USES= python:3.7+
+USE_PYTHON= autoplist distutils
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/textproc/py-docstring-to-markdown/distinfo b/textproc/py-docstring-to-markdown/distinfo
new file mode 100644
index 000000000000..d37f42b88cd5
--- /dev/null
+++ b/textproc/py-docstring-to-markdown/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1667640521
+SHA256 (docstring-to-markdown-0.10.tar.gz) = 12f75b0c7b7572defea2d9e24b57ef7ac38c3e26e91c0e5547cfc02b1c168bf6
+SIZE (docstring-to-markdown-0.10.tar.gz) = 17947
diff --git a/textproc/py-docstring-to-markdown/pkg-descr b/textproc/py-docstring-to-markdown/pkg-descr
new file mode 100644
index 000000000000..6084b703573c
--- /dev/null
+++ b/textproc/py-docstring-to-markdown/pkg-descr
@@ -0,0 +1,5 @@
+On the fly conversion of Python docstrings to markdown.
+
+- Currently can recognise reStructuredText and convert multiple
+ of its features to Markdown
+- In the future will be able to convert Google docstrings too