git: 269cbbcee43b - main - editors/py-babi: Update version 0.0.24=>1.5.3

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Fri, 14 Apr 2023 20:57:14 UTC
The branch main has been updated by bofh:

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

commit 269cbbcee43b5712f7f7924c085c72959796885d
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-04-14 19:16:21 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-04-14 20:56:54 +0000

    editors/py-babi: Update version 0.0.24=>1.5.3
    
    Changelog: https://github.com/asottile/babi/releases/tag/v1.5.3
---
 editors/py-babi/Makefile | 13 +++++++++----
 editors/py-babi/distinfo |  6 +++---
 2 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/editors/py-babi/Makefile b/editors/py-babi/Makefile
index 192d7ec2bcff..179d11defc54 100644
--- a/editors/py-babi/Makefile
+++ b/editors/py-babi/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	babi
-PORTVERSION=	0.0.24
+PORTVERSION=	1.5.3
 CATEGORIES=	editors python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -13,11 +13,9 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}babi_grammars>=0:devel/py-babi_grammars@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}identify>=0:devel/py-identify@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}onigurumacffi>=0.0.18:devel/py-onigurumacffi@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}babi_grammars>=0:devel/py-babi_grammars@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}identify>=0:devel/py-identify@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}onigurumacffi>=0.0.18:devel/py-onigurumacffi@${PY_FLAVOR}
 
 USES=		python:3.7+
@@ -25,4 +23,11 @@ USE_PYTHON=	autoplist distutils flavors
 
 NO_ARCH=	yes
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 30800
+BUILD_DEPENDS+=   ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
+RUN_DEPENDS+=   ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/editors/py-babi/distinfo b/editors/py-babi/distinfo
index 9c6f44fe5459..7fd5cd8d07aa 100644
--- a/editors/py-babi/distinfo
+++ b/editors/py-babi/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1636167756
-SHA256 (babi-0.0.24.tar.gz) = b32620b4acf1f19d3211ff8d6bec544b7e16c6a47d506b76d2805863b40a329b
-SIZE (babi-0.0.24.tar.gz) = 37147
+TIMESTAMP = 1681499660
+SHA256 (babi-1.5.3.tar.gz) = 609ffe42b7bb57a550d9179dc7e0e4bf45bab177e00ef991a6f9bfaeac18aa53
+SIZE (babi-1.5.3.tar.gz) = 47100