textproc/py-CommonMark: Allow installation with textproc/cmark

Both ports install bin/cmark.  Users of textproc/py-CommonMark are
supposely more interested in the python module rather than the command
line tool: nothing in the ports tree seems to use bin/cmark from this
port.

Rename the command to cmark-py to fix conflict

PR:		274848
Reported by:	jcfyecrayz@liamekaens.com
2024Q1
Romain Tartière 2023-11-10 15:42:15 -10:00
parent 5922e4a360
commit 2c93a03bbc
No known key found for this signature in database
GPG Key ID: BA4D1D955112336F
3 changed files with 12 additions and 4 deletions

View File

@ -14,8 +14,6 @@ USE_GITHUB= yes
GH_ACCOUNT= commonmark
USE_LDCONFIG= yes
CONFLICTS_INSTALL= py*-CommonMark # bin/cmark
CMAKE_ARGS= -DCMAKE_INSTALL_LIBDIR:STRING="lib"
PLIST_SUB= VERSION=${PORTVERSION}
TEST_TARGET= test

View File

@ -1,5 +1,6 @@
PORTNAME= CommonMark
PORTVERSION= 0.9.1
PORTREVISION= 1
CATEGORIES= textproc python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -14,8 +15,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}future>0:devel/py-future@${PY_FLAVOR}
CONFLICTS_INSTALL= cmark
USES= python
USE_PYTHON= autoplist concurrent distutils

View File

@ -0,0 +1,11 @@
--- setup.py.orig 2023-11-11 01:20:49 UTC
+++ setup.py
@@ -48,7 +48,7 @@ setup(
keywords=["markup", "markdown", "commonmark"],
entry_points={
'console_scripts': [
- 'cmark = commonmark.cmark:main',
+ 'cmark-py = commonmark.cmark:main',
]
},
cmdclass={'test': Test},