Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jun 2023 07:23:23 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: 2ceae76cdadf - main - textproc/lookatme: Allow build with py-mistune installed
Message-ID:  <202306300723.35U7NN5d085291@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=2ceae76cdadfe9823c92051904a6f9929a02181f

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

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

diff --git a/textproc/lookatme/Makefile b/textproc/lookatme/Makefile
index cb6ed9fdd83e..1f2b60065d01 100644
--- a/textproc/lookatme/Makefile
+++ b/textproc/lookatme/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	lookatme
 PORTVERSION=	2.5.5
+PORTREVISION=	1
 CATEGORIES=	textproc python
 MASTER_SITES=	PYPI
 
diff --git a/textproc/lookatme/files/patch-mistune b/textproc/lookatme/files/patch-mistune
new file mode 100644
index 000000000000..14ca231aa856
--- /dev/null
+++ b/textproc/lookatme/files/patch-mistune
@@ -0,0 +1,32 @@
+--- lookatme/parser.py.orig	2022-12-30 04:38:38 UTC
++++ lookatme/parser.py
+@@ -7,7 +7,7 @@ import re
+ from collections import defaultdict
+ from typing import AnyStr, Callable, Dict, List, Tuple
+ 
+-import mistune
++import mistune0 as mistune
+ 
+ from lookatme.schemas import MetaSchema
+ from lookatme.slide import Slide
+--- lookatme/render/markdown_block.py.orig	2022-12-30 04:38:38 UTC
++++ lookatme/render/markdown_block.py
+@@ -4,7 +4,7 @@ representations
+ """
+ 
+ 
+-import mistune
++import mistune0 as mistune
+ import pygments
+ import pygments.styles
+ import urwid
+--- requirements.txt.orig	2022-12-30 04:38:38 UTC
++++ requirements.txt
+@@ -1,6 +1,6 @@
+ marshmallow>=3.17.0,<4
+ Click>=7,<9
+ PyYAML>=5,<6
+-mistune>=0.8,<1
++mistune0>=0.8,<1
+ urwid>=2,<3
+ Pygments>=2,<3



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