Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jun 2023 07:23:26 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: a5789ccf779d - main - textproc/py-m2r: Allow build with py-mistune installed
Message-ID:  <202306300723.35U7NQ2f085329@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a5789ccf779d5adcb9e384f0c5e4712b6acc6d37

commit a5789ccf779d5adcb9e384f0c5e4712b6acc6d37
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-06-30 07:08:57 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-06-30 07:08:57 +0000

    textproc/py-m2r: Allow build with py-mistune installed
    
    - Bump PORTREVISION for package change
    
    PR:             263956
---
 textproc/py-m2r/Makefile            |  1 +
 textproc/py-m2r/files/patch-mistune | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+)

diff --git a/textproc/py-m2r/Makefile b/textproc/py-m2r/Makefile
index 82df827c5045..b9efa5b2d9c6 100644
--- a/textproc/py-m2r/Makefile
+++ b/textproc/py-m2r/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	m2r
 DISTVERSION=	0.3.1
+PORTREVISION=	1
 CATEGORIES=	textproc devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
diff --git a/textproc/py-m2r/files/patch-mistune b/textproc/py-m2r/files/patch-mistune
new file mode 100644
index 000000000000..6b74fff89f4e
--- /dev/null
+++ b/textproc/py-m2r/files/patch-mistune
@@ -0,0 +1,22 @@
+--- m2r.py.orig	2022-11-17 08:04:26 UTC
++++ m2r.py
+@@ -10,7 +10,7 @@ from argparse import ArgumentParser, Namespace
+ from docutils import statemachine, nodes, io, utils
+ from docutils.parsers import rst
+ from docutils.utils import column_width
+-import mistune
++import mistune0 as mistune
+ from urllib.parse import urlparse
+ 
+ __version__ = '0.3.1'
+--- setup.py.orig	2022-11-17 08:04:26 UTC
++++ setup.py
+@@ -16,7 +16,7 @@ except ImportError:
+     with open(readme_file) as f:
+         readme = f.read()
+ 
+-install_requires = ['mistune<2', 'docutils']
++install_requires = ['mistune0<2', 'docutils']
+ test_requirements = ['pygments']
+ 
+ setup(



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306300723.35U7NQ2f085329>