diff --git a/comms/Makefile b/comms/Makefile index ed430ecc19cb..2e11f6aa9ecc 100644 --- a/comms/Makefile +++ b/comms/Makefile @@ -135,6 +135,7 @@ SUBDIR += py-hid SUBDIR += py-hidapi SUBDIR += py-libimobiledevice + SUBDIR += py-pymodbus SUBDIR += py-pyserial SUBDIR += py-qt5-sensors SUBDIR += py-qt5-serialport diff --git a/comms/py-pymodbus/Makefile b/comms/py-pymodbus/Makefile new file mode 100644 index 000000000000..b681e0ab2e50 --- /dev/null +++ b/comms/py-pymodbus/Makefile @@ -0,0 +1,37 @@ +PORTNAME= pymodbus +DISTVERSIONPREFIX= v +DISTVERSION= 2.5.2 +CATEGORIES= comms +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= chris@chrullrich.net +COMMENT= Implementation of the Modbus protocol + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +DIRECT_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyserial>0:comms/py-pyserial@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} +BUILD_DEPENDS= ${DIRECT_DEPENDS} +RUN_DEPENDS= ${DIRECT_DEPENDS} + +USES= python:3.6+ +USE_PYTHON= distutils autoplist pythonprefix +USE_GITHUB= yes +GH_ACCOUNT= riptideio + +OPTIONS_DEFINE= REPL TORNADO TWISTED +REPL_DESC= Interactive REPL console +TORNADO_DESC= Support asynchronous client using Tornado +TWISTED_DESC= Support asynchronous client/server using Twisted + +REPL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click>0:devel/py-click@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}prompt-toolkit>0:devel/py-prompt-toolkit@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pygments>0:textproc/py-pygments@${PY_FLAVOR} + +TWISTED_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}twisted>0:devel/py-twisted@${PY_FLAVOR} +TORNADO_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tornado>0:www/py-tornado@${PY_FLAVOR} + +NO_ARCH= yes + +.include diff --git a/comms/py-pymodbus/distinfo b/comms/py-pymodbus/distinfo new file mode 100644 index 000000000000..082b199e5d0f --- /dev/null +++ b/comms/py-pymodbus/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1625030143 +SHA256 (riptideio-pymodbus-v2.5.2_GH0.tar.gz) = df881c8c04750c3abe5a3e565eb1d881499386fc697945023f0362b4658831a8 +SIZE (riptideio-pymodbus-v2.5.2_GH0.tar.gz) = 1135117 diff --git a/comms/py-pymodbus/pkg-descr b/comms/py-pymodbus/pkg-descr new file mode 100644 index 000000000000..666e0250d5c4 --- /dev/null +++ b/comms/py-pymodbus/pkg-descr @@ -0,0 +1,6 @@ +Pymodbus is a full Modbus protocol implementation using twisted for +its asynchronous communications core. It can also be used without any +third party dependencies (aside from pyserial) if a more lightweight +project is needed. + +WWW: https://github.com/riptideio/pymodbus/