Skip to content

Commit

Permalink
devel/py-mrkd: Allow build with py-mistune installed
Browse files Browse the repository at this point in the history
- Bump PORTREVISION for package change

PR:		263956
  • Loading branch information
sunpoet committed Jun 30, 2023
1 parent 2416ef0 commit 36a2aa6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
3 changes: 1 addition & 2 deletions devel/py-mrkd/Makefile
@@ -1,6 +1,6 @@
PORTNAME= mrkd
PORTVERSION= 0.2.0
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
Expand All @@ -14,7 +14,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE

BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=21.3:devel/py-packaging@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyparsing>=3.0.6:devel/py-pyparsing@${PY_FLAVOR}

RUN_DEPENDS= ${BUILD_DEPENDS} \
${PYTHON_PKGNAMEPREFIX}Jinja2>=3.0.1:devel/py-Jinja2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}mistune0>=0.8.4:textproc/py-mistune0@${PY_FLAVOR} \
Expand Down
22 changes: 22 additions & 0 deletions devel/py-mrkd/files/patch-mistune
@@ -0,0 +1,22 @@
--- mrkd/__init__.py.orig 2021-05-16 23:32:18 UTC
+++ mrkd/__init__.py
@@ -5,7 +5,7 @@ import ast
import configparser
import io
import jinja2
-import mistune
+import mistune0 as mistune
import os
import pkg_resources
import pygments
--- setup.py.orig 2021-05-29 00:57:43 UTC
+++ setup.py
@@ -18,7 +18,7 @@ setup(
'console_scripts': ['mrkd=mrkd:main'],
},
include_package_data=True,
- install_requires=['Jinja2', 'mistune', 'pygments'],
+ install_requires=['Jinja2', 'mistune0', 'pygments'],
classifiers=[
'Programming Language :: Python :: 3 :: Only',
'License :: OSI Approved :: BSD License',

0 comments on commit 36a2aa6

Please sign in to comment.