Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jun 2026 04:22:49 +0000
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 38125176c5cd - main - textproc/py-commonmark: New port: Python parser for the CommonMark Markdown spec
Message-ID:  <6a28e699.304cf.282ca327@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=38125176c5cd301751fa740d78a1c9ea60ba471a

commit 38125176c5cd301751fa740d78a1c9ea60ba471a
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-06-10 03:44:02 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-06-10 04:22:43 +0000

    textproc/py-commonmark: New port: Python parser for the CommonMark Markdown spec
---
 textproc/Makefile                |  1 +
 textproc/py-commonmark/Makefile  | 27 +++++++++++++++++++++++++++
 textproc/py-commonmark/distinfo  |  3 +++
 textproc/py-commonmark/pkg-descr |  6 ++++++
 4 files changed, 37 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index 282307322f45..360cd0033754 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1362,6 +1362,7 @@
     SUBDIR += py-cloud_sptheme
     SUBDIR += py-cmarkgfm
     SUBDIR += py-collective.checkdocs
+    SUBDIR += py-commonmark
     SUBDIR += py-conllu
     SUBDIR += py-creole
     SUBDIR += py-cssselect2
diff --git a/textproc/py-commonmark/Makefile b/textproc/py-commonmark/Makefile
new file mode 100644
index 000000000000..39fbc1bd4525
--- /dev/null
+++ b/textproc/py-commonmark/Makefile
@@ -0,0 +1,27 @@
+PORTNAME=	commonmark
+DISTVERSION=	0.9.2
+CATEGORIES=	textproc python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Python parser for the CommonMark Markdown spec
+WWW=		https://github.com/rtfd/commonmark.py
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist pep517
+
+NO_ARCH=	yes
+
+do-test:
+	@cd ${WRKSRC} && ${SETENV} PYTHONPATH=${WRKSRC} ${PYTHON_CMD} commonmark/tests/run_spec_tests.py
+
+# tests as of 0.9.2: 649 passed, 0 failed
+
+.include <bsd.port.mk>
diff --git a/textproc/py-commonmark/distinfo b/textproc/py-commonmark/distinfo
new file mode 100644
index 000000000000..a6d202d559e6
--- /dev/null
+++ b/textproc/py-commonmark/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1781061938
+SHA256 (commonmark-0.9.2.tar.gz) = 194d693e0c1ac49e83c26455bdeeb2483235e6280313c58b11d0b71c19f58ed1
+SIZE (commonmark-0.9.2.tar.gz) = 97077
diff --git a/textproc/py-commonmark/pkg-descr b/textproc/py-commonmark/pkg-descr
new file mode 100644
index 000000000000..806fd74bf5de
--- /dev/null
+++ b/textproc/py-commonmark/pkg-descr
@@ -0,0 +1,6 @@
+Python parser for the CommonMark Markdown spec.
+
+Pure Python port of the reference implementation of CommonMark, a
+strongly specified, highly compatible specification of Markdown.
+Provides a parser and renderer for CommonMark-compliant Markdown
+text, with support for converting to HTML and other output formats.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a28e699.304cf.282ca327>