git: ecd4a60699cb - main - textproc/cmark-gfm: New port

From: Zsolt Udvari <uzsolt_at_FreeBSD.org>
Date: Fri, 11 Sep 2026 12:37:55 UTC
The branch main has been updated by uzsolt:

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

commit ecd4a60699cb724e2995eda8689673916645c401
Author:     Zsolt Udvari <uzsolt@FreeBSD.org>
AuthorDate: 2026-09-11 12:32:19 +0000
Commit:     Zsolt Udvari <uzsolt@FreeBSD.org>
CommitDate: 2026-09-11 12:37:33 +0000

    textproc/cmark-gfm: New port
    
    cmark-gfm is an extended version of the C reference implementation of
    CommonMark, a rationalized version of Markdown syntax with a spec. This
    repository adds GitHub Flavored Markdown extensions to the upstream
    implementation, as defined in the spec.
    
    This port is required by graphics/mupdf to handle ebooks properly.
    
    PR:             298338
---
 textproc/Makefile            |  1 +
 textproc/cmark-gfm/Makefile  | 25 +++++++++++++++++++++++++
 textproc/cmark-gfm/distinfo  |  3 +++
 textproc/cmark-gfm/pkg-descr |  4 ++++
 textproc/cmark-gfm/pkg-plist | 21 +++++++++++++++++++++
 5 files changed, 54 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index 70540c743808..1f6a64ca42f6 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -106,6 +106,7 @@
     SUBDIR += cl-ppcre-sbcl
     SUBDIR += clucene
     SUBDIR += cmark
+    SUBDIR += cmark-gfm
     SUBDIR += coccigrep
     SUBDIR += code-minimap
     SUBDIR += code2html
diff --git a/textproc/cmark-gfm/Makefile b/textproc/cmark-gfm/Makefile
new file mode 100644
index 000000000000..6fde2767c76f
--- /dev/null
+++ b/textproc/cmark-gfm/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	cmark-gfm
+DISTVERSION=	0.29.0.gfm.13
+CATEGORIES=	textproc
+
+MAINTAINER=	uzsolt@FreeBSD.org
+COMMENT=	Extended version of the C reference implementation of CommonMark
+WWW=		https://github.com/github/cmark-gfm
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+USES=		cmake:testing pathfix python:test
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	github
+
+USE_LDCONFIG=	yes
+CMAKE_ON=	BUILD_SHARED_LIBS
+PLIST_SUB=	VERSION=${DISTVERSION}
+
+post-install:
+	${INSTALL_DATA} ${WRKSRC}/src/registry.h ${WRKSRC}/src/plugin.h \
+		${STAGEDIR}${PREFIX}/include/
+
+.include <bsd.port.mk>
diff --git a/textproc/cmark-gfm/distinfo b/textproc/cmark-gfm/distinfo
new file mode 100644
index 000000000000..e66c644025ea
--- /dev/null
+++ b/textproc/cmark-gfm/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1789118193
+SHA256 (github-cmark-gfm-0.29.0.gfm.13_GH0.tar.gz) = 5abc61798ebd9de5660bc076443c07abad2b8d15dbc11094a3a79644b8ad243a
+SIZE (github-cmark-gfm-0.29.0.gfm.13_GH0.tar.gz) = 300086
diff --git a/textproc/cmark-gfm/pkg-descr b/textproc/cmark-gfm/pkg-descr
new file mode 100644
index 000000000000..0ac8fa6b7a31
--- /dev/null
+++ b/textproc/cmark-gfm/pkg-descr
@@ -0,0 +1,4 @@
+cmark-gfm is an extended version of the C reference implementation of
+CommonMark, a rationalized version of Markdown syntax with a spec. This
+repository adds GitHub Flavored Markdown extensions to the upstream
+implementation, as defined in the spec.
diff --git a/textproc/cmark-gfm/pkg-plist b/textproc/cmark-gfm/pkg-plist
new file mode 100644
index 000000000000..93cbf589e579
--- /dev/null
+++ b/textproc/cmark-gfm/pkg-plist
@@ -0,0 +1,21 @@
+bin/cmark-gfm
+include/cmark-gfm-core-extensions.h
+include/cmark-gfm-extension_api.h
+include/cmark-gfm.h
+include/cmark-gfm_export.h
+include/cmark-gfm_version.h
+include/plugin.h
+include/registry.h
+lib/cmake-gfm-extensions/cmark-gfm-extensions-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake-gfm-extensions/cmark-gfm-extensions.cmake
+lib/cmake/cmark-gfm-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/cmark-gfm.cmake
+lib/libcmark-gfm-extensions.a
+lib/libcmark-gfm-extensions.so
+lib/libcmark-gfm-extensions.so.%%VERSION%%
+lib/libcmark-gfm.a
+lib/libcmark-gfm.so
+lib/libcmark-gfm.so.%%VERSION%%
+libdata/pkgconfig/libcmark-gfm.pc
+share/man/man1/cmark-gfm.1.gz
+share/man/man3/cmark-gfm.3.gz