git: d9f757463f09 - main - deskutils/py-taskw: Add support for Python 3.9

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Fri, 19 Jan 2024 15:14:24 UTC
The branch main has been updated by bofh:

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

commit d9f757463f097e6fc6e27a05d1d5d2c28523bf32
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-19 09:43:43 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-19 15:14:10 +0000

    deskutils/py-taskw: Add support for Python 3.9
    
    - Switch MASTERS_SITES to GH for getting latest development snapshots
    - Add supports upto python 3.12
---
 deskutils/py-taskw/Makefile | 17 ++++++++---------
 deskutils/py-taskw/distinfo |  8 +++++---
 2 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/deskutils/py-taskw/Makefile b/deskutils/py-taskw/Makefile
index b94acbffaf34..bb3d21aacfbe 100644
--- a/deskutils/py-taskw/Makefile
+++ b/deskutils/py-taskw/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	taskw
-PORTVERSION=	2.0.0
+DISTVERSION=	2.0.0
+PORTREVISION=	1
 CATEGORIES=	deskutils python
-MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	bofh@FreeBSD.org
@@ -11,6 +11,9 @@ WWW=		https://github.com/ralphbean/taskw
 LICENSE=	GPLv3+
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
+PATCH_SITES=    https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/pull/
+PATCHFILES+=    168.patch:-p1
+
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}kitchen>0:devel/py-kitchen@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz@${PY_FLAVOR}
@@ -18,17 +21,13 @@ TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}nose>=1.3.4,<2:devel/py-nose@${PY_FLAVOR} \
 		task:deskutils/taskwarrior
 
 USES=		python
+USE_GITHUB=	yes
+GH_ACCOUNT=	ralphbean
 USE_PYTHON=	autoplist distutils
 
 NO_ARCH=	yes
 
-.include <bsd.port.pre.mk>
-
-.if ${PYTHON_REL} > 30900
-BROKEN=		python-3.9 is not supported
-.endif
-
 do-test:
 	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/deskutils/py-taskw/distinfo b/deskutils/py-taskw/distinfo
index 659ee46e2708..7441be66b67a 100644
--- a/deskutils/py-taskw/distinfo
+++ b/deskutils/py-taskw/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1654190595
-SHA256 (taskw-2.0.0.tar.gz) = 1109bdf9bde7a9b32a5007a302c878303ff65188b64225ac74a3289a4c548bdd
-SIZE (taskw-2.0.0.tar.gz) = 42577
+TIMESTAMP = 1705657220
+SHA256 (ralphbean-taskw-2.0.0_GH0.tar.gz) = 194c469d2be96cd47c7e0f6de214e752b195111fd4edd0731ab059baa3a2bebd
+SIZE (ralphbean-taskw-2.0.0_GH0.tar.gz) = 58235
+SHA256 (168.patch) = cca07d97a3d4b87f8dedbacfde4c2e828e5fb5cd9ec3f37ff9036787148f7df8
+SIZE (168.patch) = 8634