BSD Ports

textproc/cmark 0.30.3_2 MidnightBSD

CommonMark parsing and rendering library and program in C

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Last update
Commit
7ca860c784
License
bsd2
Categories
textproc

Description

cmark is the C reference implementation of CommonMark, a rationalized version of Markdown syntax with a spec.

It provides a shared library (libcmark) with functions for parsing CommonMark documents to an abstract syntax tree (AST), manipulating the AST, and rendering the document to HTML, groff man, LaTeX, CommonMark, or an XML representation of the AST. It also provides a command-line program (cmark) for parsing and rendering CommonMark documents.

In the other systems

SystemPortVersion
MidnightBSDtextproc/cmark0.30.3_2
FreeBSDtextproc/cmark0.31.1
OpenBSDtextproc/cmark0.30.3p0
NetBSDtextproc/cmark0.31.2
DragonFlytextproc/cmark0.31.1

Install

Binary package:

mport install cmark

From mports:

cd /usr/mports/textproc/cmark && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	cmark>0:textproc/cmark
LIB_DEPENDS=	libcmark.so:textproc/cmark

Dependencies

Required by 1

Configuration

No options to configure.

USES
cmake python:test
Service scripts
none

Files

Manual pages 2
  • cmark(1)
  • cmark(3)
pkg-plist 14
  • bin/cmark
  • include/cmark.h
  • include/cmark_export.h
  • include/cmark_version.h
  • lib/cmake/cmark/cmark-config-version.cmake
  • lib/cmake/cmark/cmark-config.cmake
  • lib/cmake/cmark/cmark-targets-.cmake
  • lib/cmake/cmark/cmark-targets.cmake
  • lib/libcmark.a
  • lib/libcmark.so
  • lib/libcmark.so.
  • libdata/pkgconfig/libcmark.pc
  • share/man/man1/cmark.1.gz
  • share/man/man3/cmark.3.gz
distinfo 1
FileSizeSHA256
commonmark-cmark-0.30.3_GH0.tar.gz24691685e9fb515531cc2c9ae176d693f9871774830cf1f323a6758fb187a5148d7b16

Commit history 1

DateCommitCreditsLog message
7ca860c784 Lucas Holt textproc/cmark, textproc/py-CommonMark: let both install together (#846)
`textproc/cmark` and `textproc/py-CommonMark` both installed `bin/cmark` and each listed the other in `CONFLICTS_INSTALL`, so only one could ever be installed. That is not theoretical: `mail/evolution` needs `libcmark.so` from `textproc/cmark`, and on a system with `py-CommonMark` installed it cannot be rebuilt — ``` mport.install: install failed: Error at check_preconditions.c:(595): /usr/local/bin/cmark is owned by py312-CommonMark; use -f to overwrite. ``` ### Fix Follow FreeBSD's resolution (commit `2c93a03bbcd5`): patch the python port's `setup.py` to name its console script `cmark-py`, then drop `CONFLICTS_INSTALL` from both ports. Users of `py-CommonMark` want the Python module; nothing in the tree calls its `bin/cmark`. …