BSD Ports

textproc/py-CommonMark 0.9.1_2 MidnightBSD

Python parser for the CommonMark Markdown spec

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

Description

CommonMark-py is a pure Python port of jgm's commonmark.js, a Markdown parser and renderer for the CommonMark specification, using only native modules.

In the other systems

SystemPortVersion
MidnightBSDtextproc/py-CommonMark0.9.1_2
FreeBSDtextproc/py-CommonMark0.9.1_2
DragonFlytextproc/py-CommonMark0.9.1_2

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}CommonMark

From mports:

cd /usr/mports/textproc/py-CommonMark && make install clean

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

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}CommonMark>0:textproc/py-CommonMark

Dependencies

As this port's Makefile names them.

Runtime 1

Run dependencies 1
Required by 1

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
commonmark-0.9.1.tar.gz95764452f9dc859be7f06631ddcb328b6919c67984aca654e5fefb3914d54691aed60
Master sites 1
  • PYPI

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`. …