git: 21391a329118 - main - devel/py-typing-extensions: Update to 4.0.1

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 25 Jan 2022 19:54:09 UTC
The branch main has been updated by sunpoet:

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

commit 21391a32911894893432cf98c37c498963327909
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-01-25 19:21:36 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-01-25 19:50:23 +0000

    devel/py-typing-extensions: Update to 4.0.1
    
    Changes:        https://github.com/python/typing/commits/master/typing_extensions
---
 devel/py-typing-extensions/Makefile       |  5 ++++-
 devel/py-typing-extensions/distinfo       |  6 +++---
 devel/py-typing-extensions/files/setup.py | 18 ++++++++++++++++++
 3 files changed, 25 insertions(+), 4 deletions(-)

diff --git a/devel/py-typing-extensions/Makefile b/devel/py-typing-extensions/Makefile
index f52ec22645a3..860359a6b6eb 100644
--- a/devel/py-typing-extensions/Makefile
+++ b/devel/py-typing-extensions/Makefile
@@ -1,7 +1,7 @@
 # Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
 
 PORTNAME=	typing-extensions
-PORTVERSION=	3.10.0.2
+PORTVERSION=	4.0.1
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -18,4 +18,7 @@ USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 
+post-patch:
+	@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
+
 .include <bsd.port.mk>
diff --git a/devel/py-typing-extensions/distinfo b/devel/py-typing-extensions/distinfo
index b5776cc7c3b9..9fd9c99cb596 100644
--- a/devel/py-typing-extensions/distinfo
+++ b/devel/py-typing-extensions/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1632037164
-SHA256 (typing_extensions-3.10.0.2.tar.gz) = 49f75d16ff11f1cd258e1b988ccff82a3ca5570217d7ad8c5f48205dd99a677e
-SIZE (typing_extensions-3.10.0.2.tar.gz) = 46048
+TIMESTAMP = 1643133781
+SHA256 (typing_extensions-4.0.1.tar.gz) = 4ca091dea149f945ec56afb48dae714f21e8692ef22a395223bcd328961b6a0e
+SIZE (typing_extensions-4.0.1.tar.gz) = 22706
diff --git a/devel/py-typing-extensions/files/setup.py b/devel/py-typing-extensions/files/setup.py
new file mode 100644
index 000000000000..85424de5f5ce
--- /dev/null
+++ b/devel/py-typing-extensions/files/setup.py
@@ -0,0 +1,18 @@
+#!/usr/bin/env python
+# setup.py generated by flit for tools that don't yet use PEP 517
+
+from distutils.core import setup
+
+package_dir = \
+{'': 'src'}
+
+setup(name='typing_extensions',
+      version='%%PORTVERSION%%',
+      description='Backported and Experimental Type Hints for Python 3.6+',
+      author=None,
+      author_email='"Guido van Rossum, Jukka Lehtosalo, Ɓukasz Langa, Michael Lee" <levkivskyi@gmail.com>',
+      url=None,
+      py_modules=['typing_extensions'],
+      package_dir=package_dir,
+      python_requires='>=3.6',
+     )