--- b/comms/Makefile +++ b/comms/Makefile @@ -140,6 +140,7 @@ SUBDIR += py-hidapi SUBDIR += py-libimobiledevice SUBDIR += py-lirc + SUBDIR += py-pymodbus SUBDIR += py-pyserial SUBDIR += py-qt5-sensors SUBDIR += py-qt5-serialport --- /dev/null +++ b/comms/py-pymodbus/Makefile @@ -0,0 +1,39 @@ +# $FreeBSD$ + +PORTNAME= pymodbus +DISTVERSIONPREFIX= v +DISTVERSION= 2.5.1 +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 --- /dev/null +++ b/comms/py-pymodbus/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1617259178 +SHA256 (riptideio-pymodbus-v2.5.1_GH0.tar.gz) = 7a3050fa3c2b5d77c8bb54b5ea89e274535c88a5f90ecc80dde95b26aef844bd +SIZE (riptideio-pymodbus-v2.5.1_GH0.tar.gz) = 1134939 --- /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/