git: 006cc4655640 - main - www/py-grip: Fix runtime with py-markdown 3.4+

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 21 Feb 2024 15:39:15 UTC
The branch main has been updated by sunpoet:

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

commit 006cc465564001640379410341b7e12686345e07
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-02-21 15:03:53 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-02-21 15:15:29 +0000

    www/py-grip: Fix runtime with py-markdown 3.4+
    
    - Update version requirement of RUN_DEPENDS: Make sure py-markdown 3.4+ is used
    - Bump PORTREVISION for package change
    
    from [1]:
    In addition, the md_globals parameter of
    Markdown.extensions.Extension.extendMarkdown() is no longer recognized as a
    valid parameter and will raise an error if provided.
    
    Reference:      https://github.com/Python-Markdown/markdown/blob/master/docs/changelog.md [1]
---
 www/py-grip/Makefile             |  1 +
 www/py-grip/files/patch-markdown | 11 +++++++++++
 2 files changed, 12 insertions(+)

diff --git a/www/py-grip/Makefile b/www/py-grip/Makefile
index 80fab3e483cd..03d9fce1ebe6 100644
--- a/www/py-grip/Makefile
+++ b/www/py-grip/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	grip
 PORTVERSION=	4.6.2
+PORTREVISION=	1
 CATEGORIES=	www python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
diff --git a/www/py-grip/files/patch-markdown b/www/py-grip/files/patch-markdown
new file mode 100644
index 000000000000..bc6be0723d1c
--- /dev/null
+++ b/www/py-grip/files/patch-markdown
@@ -0,0 +1,11 @@
+--- grip/vendor/mdx_urlize.py.orig	2016-04-09 07:45:36 UTC
++++ grip/vendor/mdx_urlize.py
+@@ -74,7 +74,7 @@ class UrlizeExtension(markdown.Extension):
+     """
+     Urlize Extension for Python-Markdown.
+     """
+-    def extendMarkdown(self, md, md_globals):
++    def extendMarkdown(self, md):
+         """
+         Replace autolink with UrlizePattern
+         """