git: 3feaaedcf85b - main - textproc/py-pymdown-extensions: Update to 9.5

From: Kai Knoblich <kai_at_FreeBSD.org>
Date: Sun, 27 Nov 2022 14:33:34 UTC
The branch main has been updated by kai:

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

commit 3feaaedcf85b87139ec549a4450230a9aa41519e
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2022-11-27 14:32:02 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2022-11-27 14:32:02 +0000

    textproc/py-pymdown-extensions: Update to 9.5
    
    * Add a "post-patch" target that adds the actual version to "setup.py"
      to prevent editing it with each update.
    
    Changelog:
    
    https://github.com/facelessuser/pymdown-extensions/releases/tag/9.5
---
 textproc/py-pymdown-extensions/Makefile             | 5 ++++-
 textproc/py-pymdown-extensions/distinfo             | 6 +++---
 textproc/py-pymdown-extensions/files/patch-setup.py | 2 +-
 3 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/textproc/py-pymdown-extensions/Makefile b/textproc/py-pymdown-extensions/Makefile
index 18398944be4d..d36c0399d9ea 100644
--- a/textproc/py-pymdown-extensions/Makefile
+++ b/textproc/py-pymdown-extensions/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	pymdown-extensions
-DISTVERSION=	9.4
+DISTVERSION=	9.5
 CATEGORIES=	textproc python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -23,4 +23,7 @@ NO_ARCH=	yes
 post-extract:
 	@${MV} ${WRKSRC}/pyproject.toml ${WRKSRC}/pyproject.toml.dist
 
+post-patch:
+	@${REINPLACE_CMD} -e 's/%%DISTVERSION%%/${DISTVERSION}/' ${WRKSRC}/setup.py
+
 .include <bsd.port.mk>
diff --git a/textproc/py-pymdown-extensions/distinfo b/textproc/py-pymdown-extensions/distinfo
index a81e1f4ba320..33a6f4969cbe 100644
--- a/textproc/py-pymdown-extensions/distinfo
+++ b/textproc/py-pymdown-extensions/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1668854734
-SHA256 (pymdown_extensions-9.4.tar.gz) = 1baa22a60550f731630474cad28feb0405c8101f1a7ddc3ec0ed86ee510bcc43
-SIZE (pymdown_extensions-9.4.tar.gz) = 741111
+TIMESTAMP = 1669552457
+SHA256 (pymdown_extensions-9.5.tar.gz) = 3ef2d998c0d5fa7eb09291926d90d69391283561cf6306f85cd588a5eb5befa0
+SIZE (pymdown_extensions-9.5.tar.gz) = 738533
diff --git a/textproc/py-pymdown-extensions/files/patch-setup.py b/textproc/py-pymdown-extensions/files/patch-setup.py
index 20eabc148567..e9091bddbf99 100644
--- a/textproc/py-pymdown-extensions/files/patch-setup.py
+++ b/textproc/py-pymdown-extensions/files/patch-setup.py
@@ -13,7 +13,7 @@ to setup.py and then run "hatchling build".
 +
 +setup(
 +    name='pymdown-extensions',
-+    version='9.4',
++    version='%%DISTVERSION%%',
 +    description='Extension pack for Python Markdown.',
 +    long_description='',
 +    author_email='Isaac Muse <Isaac.Muse@gmail.com>',