File:  [cvs.NetBSD.org] / pkgsrc / net / py-modbus-cli / Makefile
Revision 1.1: download - view: text, annotated - select for diffs
Tue Nov 5 11:14:10 2024 UTC (6 months, 1 week ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2024Q4-base, pkgsrc-2024Q4, HEAD
net/py-modbus-cli: import py-modbus_cli-0.1.9

Read and write registers of Modbus devices.

Access both TCP and RTU (i.e. serial) devices and encode and decode
types larger than 16 bits (e.g. floats) into Modbus 16 bits registers.

Optionally access registers by symbolic names, as defined in a
registers file. Symbolic names for enumerations and bitfields are
supported too.

Designed to work nicely with other standard UNIX tools (watch,
socat, etc.), see the examples.

# $NetBSD: Makefile,v 1.1 2024/11/05 11:14:10 wiz Exp $

DISTNAME=	modbus_cli-0.1.9
PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
CATEGORIES=	net python
MASTER_SITES=	${MASTER_SITE_PYPI:=m/modbus_cli/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://github.com/favalex/modbus-cli
COMMENT=	Command line tool to access Modbus devices
LICENSE=	mpl-2.0

DEPENDS+=	${PYPKGPREFIX}-setuptools>=0:../../devel/py-setuptools
DEPENDS+=	${PYPKGPREFIX}-colorama>=0:../../comms/py-colorama
DEPENDS+=	${PYPKGPREFIX}-uModbus>=0:../../net/py-uModbus

USE_LANGUAGES=	# none

# as of 0.1.9
# 2 failed, 12 passed
# https://github.com/favalex/modbus-cli/issues/33

post-install:
	cd ${DESTDIR}${PREFIX}/bin && ${MV} modbus modbus-${PYVERSSUFFIX} || ${TRUE}

.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>