git: 32ceca68d433 - main - www/py-google-cloud-storage: Update to 2.4.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 09 Jun 2022 23:20:34 UTC
The branch main has been updated by sunpoet:

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

commit 32ceca68d43385105b1df16452eab333676db3d9
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-06-09 23:12:23 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-06-09 23:16:13 +0000

    www/py-google-cloud-storage: Update to 2.4.0
    
    - Add PROTOBUF option
    
    Changes:        https://github.com/googleapis/python-storage/releases
---
 www/py-google-cloud-storage/Makefile | 9 +++++++--
 www/py-google-cloud-storage/distinfo | 6 +++---
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/www/py-google-cloud-storage/Makefile b/www/py-google-cloud-storage/Makefile
index 9339f91699b0..9a4a4a4812b8 100644
--- a/www/py-google-cloud-storage/Makefile
+++ b/www/py-google-cloud-storage/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	google-cloud-storage
-PORTVERSION=	2.3.0
+PORTVERSION=	2.4.0
 CATEGORIES=	www python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -14,7 +14,6 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}google-api-core>=1.31.5<3.0:www/py-google-ap
 		${PYTHON_PKGNAMEPREFIX}google-auth>=1.25.0<3.0:security/py-google-auth@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}google-cloud-core>=2.3.0<3.0:www/py-google-cloud-core@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}google-resumable-media>=2.3.2:www/py-google-resumable-media@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}protobuf>=0,1:devel/py-protobuf@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}requests>=2.18.0<3.0.0:www/py-requests@${PY_FLAVOR}
 
 USES=		python:3.7+
@@ -22,4 +21,10 @@ USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 
+OPTIONS_DEFINE=	PROTOBUF
+OPTIONS_DEFINE=	PROTOBUF
+PROTOBUF_DESC=	Protocol buffers support
+
+PROTOBUF_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}protobuf>=0,1<5.0.0,1:devel/py-protobuf@${PY_FLAVOR}
+
 .include <bsd.port.mk>
diff --git a/www/py-google-cloud-storage/distinfo b/www/py-google-cloud-storage/distinfo
index c8b5d36056a6..17bc0777b53f 100644
--- a/www/py-google-cloud-storage/distinfo
+++ b/www/py-google-cloud-storage/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1650228834
-SHA256 (google-cloud-storage-2.3.0.tar.gz) = f4cbb0de5e17228e9c09cdc897d81eaa70e2c396f58513f79de0e824584c8f5b
-SIZE (google-cloud-storage-2.3.0.tar.gz) = 5483414
+TIMESTAMP = 1654774122
+SHA256 (google-cloud-storage-2.4.0.tar.gz) = 5fe26f1381b30e3cc328f46e13531ca8525458f870c1e303c616bdeb7b7f5c66
+SIZE (google-cloud-storage-2.4.0.tar.gz) = 5487549