Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jun 2023 07:20:52 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: e62ba962ba4d - main - textproc/py-mistune0: Avoid runtime conflict with py-mistune
Message-ID:  <202306300720.35U7Kqov076183@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=e62ba962ba4d0186ab1dbdbef7863d9fab1dfd46

commit e62ba962ba4d0186ab1dbdbef7863d9fab1dfd46
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-06-30 07:05:10 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-06-30 07:05:10 +0000

    textproc/py-mistune0: Avoid runtime conflict with py-mistune
    
    - Build and install mistune as mistune0
    - Bump PORTREVISION for package change
    
    PR:             263956
---
 textproc/py-mistune0/Makefile             |  4 ++++
 textproc/py-mistune0/files/patch-setup.py | 29 +++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+)

diff --git a/textproc/py-mistune0/Makefile b/textproc/py-mistune0/Makefile
index 7f909cf62783..8a6612813d0b 100644
--- a/textproc/py-mistune0/Makefile
+++ b/textproc/py-mistune0/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	mistune
 PORTVERSION=	0.8.4
+PORTREVISION=	1
 CATEGORIES=	textproc python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -23,6 +24,9 @@ CPE_VENDOR=	mistune_project
 
 PORTSCOUT=	limit:^0\.
 
+post-patch:
+	@${MV} ${WRKSRC}/mistune.py ${WRKSRC}/mistune0.py
+
 do-test:
 	cd ${WRKSRC} && ${PYTHON_CMD} -m nose -v
 
diff --git a/textproc/py-mistune0/files/patch-setup.py b/textproc/py-mistune0/files/patch-setup.py
new file mode 100644
index 000000000000..0c6ba0c20482
--- /dev/null
+++ b/textproc/py-mistune0/files/patch-setup.py
@@ -0,0 +1,29 @@
+--- setup.py.orig	2018-10-11 06:57:07 UTC
++++ setup.py
+@@ -1,6 +1,6 @@
+ #!/usr/bin/env python
+ # coding: utf-8
+-import mistune
++import mistune0
+ from setuptools import setup
+ 
+ 
+@@ -10,15 +10,15 @@ def fread(filepath):
+ 
+ 
+ setup(
+-    name='mistune',
+-    version=mistune.__version__,
++    name='mistune0',
++    version=mistune0.__version__,
+     url='https://github.com/lepture/mistune',
+     author='Hsiaoming Yang',
+     author_email='me@lepture.com',
+     description='The fastest markdown parser in pure Python',
+     long_description=fread('README.rst'),
+     license='BSD',
+-    py_modules=['mistune'],
++    py_modules=['mistune0'],
+     zip_safe=False,
+     platforms='any',
+     tests_require=['nose'],



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