git: 474275eccd5e - main - devel/py-usbtmc: New port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 01 Mar 2025 18:10:26 UTC
The branch main has been updated by joerg: URL: https://cgit.FreeBSD.org/ports/commit/?id=474275eccd5e46a02a3ca5ec1f6602335e596568 commit 474275eccd5e46a02a3ca5ec1f6602335e596568 Author: Joerg Wunsch <joerg@FreeBSD.org> AuthorDate: 2025-03-01 18:08:00 +0000 Commit: Joerg Wunsch <joerg@FreeBSD.org> CommitDate: 2025-03-01 18:10:22 +0000 devel/py-usbtmc: New port Python USBTMC provides a pure Python USBTMC driver for controlling instruments over USB. It is an alternative to pyvisa, and it has the pulse command (control_in) which is not implemented in the pyvisa-py backend. (quote from https://github.com/xyphro/UsbGpib/blob/master/SW/NiceGUI/readme.md) --- devel/Makefile | 1 + devel/py-usbtmc/Makefile | 24 ++++++++++++++++++++++++ devel/py-usbtmc/distinfo | 3 +++ devel/py-usbtmc/pkg-descr | 2 ++ 4 files changed, 30 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 8e7a6e71e142..e0fd6ba157b8 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -6115,6 +6115,7 @@ SUBDIR += py-urwidgets SUBDIR += py-urwidtrees SUBDIR += py-us + SUBDIR += py-usbtmc SUBDIR += py-user_agents SUBDIR += py-userpath SUBDIR += py-usort diff --git a/devel/py-usbtmc/Makefile b/devel/py-usbtmc/Makefile new file mode 100644 index 000000000000..b0bc8cc9a19c --- /dev/null +++ b/devel/py-usbtmc/Makefile @@ -0,0 +1,24 @@ +PORTNAME= usbtmc +DISTVERSIONPREFIX= v +DISTVERSION= 0.8 +CATEGORIES= devel python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= joerg@FreeBSD.org +COMMENT= Pure Python USBTMC driver for controlling instruments over USB +WWW= https://github.com/python-ivi/python-usbtmc + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +BUILD_DEPENDS= ${PY_SETUPTOOLS} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyusb>=0:devel/py-pyusb@${PY_FLAVOR} + +USES= python +USE_GITHUB= yes +USE_PYTHON= autoplist distutils + +GH_ACCOUNT= python-ivi +GH_PROJECT= python-usbtmc + +.include <bsd.port.mk> diff --git a/devel/py-usbtmc/distinfo b/devel/py-usbtmc/distinfo new file mode 100644 index 000000000000..05ec78b62d4b --- /dev/null +++ b/devel/py-usbtmc/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1740852068 +SHA256 (python-ivi-python-usbtmc-v0.8_GH0.tar.gz) = dc13aa4ae0c0e4545e2ef83ae181d08528de176ee1522e6d66856449cf91c491 +SIZE (python-ivi-python-usbtmc-v0.8_GH0.tar.gz) = 15511 diff --git a/devel/py-usbtmc/pkg-descr b/devel/py-usbtmc/pkg-descr new file mode 100644 index 000000000000..b96dcb0fcc90 --- /dev/null +++ b/devel/py-usbtmc/pkg-descr @@ -0,0 +1,2 @@ +Python USBTMC provides a pure Python USBTMC driver for controlling +instruments over USB.