git: 67d28381d2ee - main - devel/py-protobuf4: Add py-protobuf4 4.25.4 (copied from py-protobuf)

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 04 Aug 2024 17:21:42 UTC
The branch main has been updated by sunpoet:

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

commit 67d28381d2eea5b55865462fb4499f70f67f4d35
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-08-04 16:44:02 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-08-04 17:13:51 +0000

    devel/py-protobuf4: Add py-protobuf4 4.25.4 (copied from py-protobuf)
    
    - Add PORTSCOUT
---
 devel/Makefile               |  1 +
 devel/py-protobuf4/Makefile  | 29 +++++++++++++++++++++++++++++
 devel/py-protobuf4/distinfo  |  3 +++
 devel/py-protobuf4/pkg-descr |  3 +++
 4 files changed, 36 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 02d275285a96..aaf67eb0b8ce 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5392,6 +5392,7 @@
     SUBDIR += py-proto-plus
     SUBDIR += py-protobuf
     SUBDIR += py-protobuf-compiler
+    SUBDIR += py-protobuf4
     SUBDIR += py-proxmoxer
     SUBDIR += py-ptable
     SUBDIR += py-ptpython
diff --git a/devel/py-protobuf4/Makefile b/devel/py-protobuf4/Makefile
new file mode 100644
index 000000000000..8d292d87bf08
--- /dev/null
+++ b/devel/py-protobuf4/Makefile
@@ -0,0 +1,29 @@
+PORTNAME=	protobuf
+PORTVERSION=	4.25.4
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+PKGNAMESUFFIX=	4
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Google protobuf Python Client Library
+WWW=		https://protobuf.dev/ \
+		https://github.com/protocolbuffers/protobuf \
+		https://github.com/protocolbuffers/protobuf/tree/main/python
+
+LICENSE=	BSD3CLAUSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
+USES=		cpe python
+USE_PYTHON=	autoplist concurrent pep517
+
+CPE_VENDOR=	google
+
+PORTSCOUT=	limit:^4\.
+
+post-install:
+	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
+
+.include <bsd.port.mk>
diff --git a/devel/py-protobuf4/distinfo b/devel/py-protobuf4/distinfo
new file mode 100644
index 000000000000..ccfe1c4ab6a6
--- /dev/null
+++ b/devel/py-protobuf4/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1722249048
+SHA256 (protobuf-4.25.4.tar.gz) = 0dc4a62cc4052a036ee2204d26fe4d835c62827c855c8a03f29fe6da146b380d
+SIZE (protobuf-4.25.4.tar.gz) = 380283
diff --git a/devel/py-protobuf4/pkg-descr b/devel/py-protobuf4/pkg-descr
new file mode 100644
index 000000000000..73df6ac90a21
--- /dev/null
+++ b/devel/py-protobuf4/pkg-descr
@@ -0,0 +1,3 @@
+Protocol Buffers are a way of encoding structured data in an efficient yet
+extensible format. Google uses Protocol Buffers for almost all of its internal
+RPC protocols and file formats.