git: f20ad8f42903 - main - devel/b2: Update to 4.2.0

From: Craig Leres <leres_at_FreeBSD.org>
Date: Thu, 14 Nov 2024 01:27:12 UTC
The branch main has been updated by leres:

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

commit f20ad8f429039a55cdd42a87957a386cd28bd628
Author:     Craig Leres <leres@FreeBSD.org>
AuthorDate: 2024-11-14 01:26:51 +0000
Commit:     Craig Leres <leres@FreeBSD.org>
CommitDate: 2024-11-14 01:26:51 +0000

    devel/b2: Update to 4.2.0
    
    Many changes since 1.3.8 (January, 2020).
    
        https://github.com/Backblaze/B2_Command_Line_Tool/releases
---
 devel/b2/Makefile | 26 +++++++++++++++++---------
 devel/b2/distinfo |  6 +++---
 2 files changed, 20 insertions(+), 12 deletions(-)

diff --git a/devel/b2/Makefile b/devel/b2/Makefile
index 1390f2c81935..e3ae8a41d3b2 100644
--- a/devel/b2/Makefile
+++ b/devel/b2/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	b2
 DISTVERSIONPREFIX=	v
-DISTVERSION=	1.3.8
-PORTREVISION=	1
+DISTVERSION=	4.2.0
 CATEGORIES=	devel
 
 MAINTAINER=	leres@FreeBSD.org
@@ -11,15 +10,22 @@ WWW=		https://www.backblaze.com/b2/docs/quick_command_line.html
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}arrow>=0.8.0:devel/py-arrow@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}logfury>=0.1.2:devel/py-logfury@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}requests>=2.9.1:www/py-requests@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}six>=1.10:devel/py-six@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}tqdm>=4.5.0:misc/py-tqdm@${PY_FLAVOR}
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pdm-backend>=0:devel/py-pdm-backend@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}tabulate==0.9.0:devel/py-tabulate@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}argcomplete>=2:devel/py-argcomplete@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}arrow>=1.0.2:devel/py-arrow@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}b2sdk>=2.5.0:devel/py-b2sdk@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}docutils>=0.18.1:textproc/py-docutils@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}idna>=3.4:dns/py-idna@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}importlib-metadata>=3.4:devel/py-importlib-metadata@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}phx-class-registry>=4.0:devel/py-phx-class-registry@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}platformdirs>=3.11.0:devel/py-platformdirs@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}rst2ansi==0.1.5:textproc/py-rst2ansi@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}tabulate==0.9.0:devel/py-tabulate@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}tqdm>=4.65.0:misc/py-tqdm@${PY_FLAVOR}
 
 USES=		python
-USE_PYTHON=	distutils autoplist concurrent optsuffix
+USE_PYTHON=	autoplist concurrent pep517
 
 CONFLICTS_INSTALL=	boost_build
 
@@ -29,4 +35,6 @@ USE_GITHUB=	yes
 GH_ACCOUNT=	Backblaze
 GH_PROJECT=	B2_Command_Line_Tool
 
+MAKE_ENV=	PDM_BUILD_SCM_VERSION=${DISTVERSION}
+
 .include <bsd.port.mk>
diff --git a/devel/b2/distinfo b/devel/b2/distinfo
index 71388002e346..dd1efd8b74b7 100644
--- a/devel/b2/distinfo
+++ b/devel/b2/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1549472013
-SHA256 (Backblaze-B2_Command_Line_Tool-v1.3.8_GH0.tar.gz) = 2ed276b9eb6796470280e4be27ef96018e338a87efa9cd70115ffbb6b030a6ae
-SIZE (Backblaze-B2_Command_Line_Tool-v1.3.8_GH0.tar.gz) = 138948
+TIMESTAMP = 1731546986
+SHA256 (Backblaze-B2_Command_Line_Tool-v4.2.0_GH0.tar.gz) = b242101f8484931e49b0e4dcd08a60521ddd100ae10df00eb6bdc35d8c810d8c
+SIZE (Backblaze-B2_Command_Line_Tool-v4.2.0_GH0.tar.gz) = 209209