mirror of https://git.freebsd.org/ports.git
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.com2024Q1
parent
5922e4a360
commit
2c93a03bbc
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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},
|
Loading…
Reference in New Issue