git: 0d2aafdd1d2a - main - comms/py-ModbusTCP: Simple Modbus/TCP client for python

From: Xavier Beaudouin <kiwi_at_FreeBSD.org>
Date: Tue, 14 Jan 2025 16:30:15 UTC
The branch main has been updated by kiwi:

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

commit 0d2aafdd1d2ad80f04969d4d7903e1963f741116
Author:     Xavier Beaudouin <kiwi@FreeBSD.org>
AuthorDate: 2025-01-13 15:00:41 +0000
Commit:     Xavier Beaudouin <kiwi@FreeBSD.org>
CommitDate: 2025-01-14 16:29:48 +0000

    comms/py-ModbusTCP: Simple Modbus/TCP client for python
    
    This port is a simple modbus TCP client for python.
    A pure Python code without any extension or external module dependency
    
    Approved by:    0mp (mentor)
    Differential Revision:  https://reviews.freebsd.org/D48417
---
 comms/Makefile               |  1 +
 comms/py-ModbusTCP/Makefile  | 24 ++++++++++++++++++++++++
 comms/py-ModbusTCP/distinfo  |  3 +++
 comms/py-ModbusTCP/pkg-descr |  2 ++
 4 files changed, 30 insertions(+)

diff --git a/comms/Makefile b/comms/Makefile
index c479a42c2ce1..36269913b720 100644
--- a/comms/Makefile
+++ b/comms/Makefile
@@ -140,6 +140,7 @@
     SUBDIR += py-libimobiledevice
     SUBDIR += py-libscrc
     SUBDIR += py-libusbsio
+    SUBDIR += py-ModbusTCP
     SUBDIR += py-nkdfu
     SUBDIR += py-pylink-square
     SUBDIR += py-pymodbus
diff --git a/comms/py-ModbusTCP/Makefile b/comms/py-ModbusTCP/Makefile
new file mode 100644
index 000000000000..542e56367322
--- /dev/null
+++ b/comms/py-ModbusTCP/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	pyModbusTCP
+DISTVERSION=	0.3.0
+CATEGORIES=	comms python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	kiwi@FreeBSD.org
+COMMENT=	Simple Modbus/TCP client library for Python
+WWW=		https://github.com/sourceperl/pyModbusTCP
+
+LICENSE=	MIT
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.16.0:math/py-numpy@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	distutils autoplist
+
+DOCSDIR=	${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
+
+NO_ARCH=	yes
+
+PORTDOCS=	*
+
+.include <bsd.port.mk>
diff --git a/comms/py-ModbusTCP/distinfo b/comms/py-ModbusTCP/distinfo
new file mode 100644
index 000000000000..25543d3141e4
--- /dev/null
+++ b/comms/py-ModbusTCP/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1736512419
+SHA256 (pyModbusTCP-0.3.0.tar.gz) = 893a4d88f6a63af21bd35b2b22061355e74005ea27fefc104e8f9bdb4ce81a04
+SIZE (pyModbusTCP-0.3.0.tar.gz) = 31478
diff --git a/comms/py-ModbusTCP/pkg-descr b/comms/py-ModbusTCP/pkg-descr
new file mode 100644
index 000000000000..60bd6538fb2c
--- /dev/null
+++ b/comms/py-ModbusTCP/pkg-descr
@@ -0,0 +1,2 @@
+A simple Modbus/TCP client library for Python. pyModbusTCP is pure Python
+code without any extension or external module dependency.