diff options
Diffstat (limited to 'comms')
-rw-r--r-- | comms/gnokii/Makefile | 2 | ||||
-rw-r--r-- | comms/gnokii/files/patch-configure | 9 | ||||
-rw-r--r-- | comms/hamlib/Makefile | 2 | ||||
-rw-r--r-- | comms/hamlib/distinfo | 6 | ||||
-rw-r--r-- | comms/hamlib/files/patch-tests_rigtestlibusb.c | 43 | ||||
-rw-r--r-- | comms/py-hid/Makefile | 2 | ||||
-rw-r--r-- | comms/py-hidapi/Makefile | 65 | ||||
-rw-r--r-- | comms/py-hidapi/distinfo | 6 | ||||
-rw-r--r-- | comms/py-hidapi/pkg-descr | 2 |
9 files changed, 72 insertions, 65 deletions
diff --git a/comms/gnokii/Makefile b/comms/gnokii/Makefile index a4da40e93f1f..8b8dd01114b1 100644 --- a/comms/gnokii/Makefile +++ b/comms/gnokii/Makefile @@ -1,6 +1,6 @@ PORTNAME= gnokii PORTVERSION= 0.6.31 -PORTREVISION= 15 +PORTREVISION= 16 PORTEPOCH= 1 CATEGORIES= comms MASTER_SITES= http://www.gnokii.org/download/gnokii/ \ diff --git a/comms/gnokii/files/patch-configure b/comms/gnokii/files/patch-configure index 27e7c58a7df6..2154b5a3a921 100644 --- a/comms/gnokii/files/patch-configure +++ b/comms/gnokii/files/patch-configure @@ -93,15 +93,6 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -@@ -17521,7 +17507,7 @@ fi - $as_echo "$ac_cv_lib_Xpm_XpmWriteFileFromXpmImage" >&6; } - if test "x$ac_cv_lib_Xpm_XpmWriteFileFromXpmImage" = xyes; then : - XPM_CFLAGS="$XINCL" -- XPM_LIBS="$XLIBS -lXpm -lX11" -+ XPM_LIBS="$XLIBS -lXpm -lX11 -lroken -lcrypt" - - $as_echo "#define XPM 1" >>confdefs.h - @@ -17556,7 +17542,7 @@ $as_echo "$as_me: WARNING: Disabling xgn fi fi diff --git a/comms/hamlib/Makefile b/comms/hamlib/Makefile index 815ddc85b796..73bfd812c5ed 100644 --- a/comms/hamlib/Makefile +++ b/comms/hamlib/Makefile @@ -1,5 +1,5 @@ PORTNAME= hamlib -PORTVERSION= 4.6.2 +PORTVERSION= 4.6.4 CATEGORIES= comms hamradio MASTER_SITES= SF diff --git a/comms/hamlib/distinfo b/comms/hamlib/distinfo index 1819c1b60421..bffbec620322 100644 --- a/comms/hamlib/distinfo +++ b/comms/hamlib/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1740612702 -SHA256 (hamlib-4.6.2.tar.gz) = b2ac73f44dd1161e95fdee6c95276144757647bf92d7fdb369ee2fe41ed47ae8 -SIZE (hamlib-4.6.2.tar.gz) = 2909790 +TIMESTAMP = 1752936628 +SHA256 (hamlib-4.6.4.tar.gz) = 5a92e93e805b2263c63da40028d67580fda15752b5389c68b237203f29b592bb +SIZE (hamlib-4.6.4.tar.gz) = 2923171 diff --git a/comms/hamlib/files/patch-tests_rigtestlibusb.c b/comms/hamlib/files/patch-tests_rigtestlibusb.c new file mode 100644 index 000000000000..b653eb405f97 --- /dev/null +++ b/comms/hamlib/files/patch-tests_rigtestlibusb.c @@ -0,0 +1,43 @@ +--- tests/rigtestlibusb.c.orig 2025-07-18 18:31:35 UTC ++++ tests/rigtestlibusb.c +@@ -116,8 +116,12 @@ static void print_ss_usb_cap(const struct + printf(" bmAttributes: %02xh\n", ss_usb_cap->bmAttributes); + printf(" wSpeedSupported: %u\n", ss_usb_cap->wSpeedSupported); + printf(" bFunctionalitySupport: %u\n", ss_usb_cap->bFunctionalitySupport); +- printf(" bU1devExitLat: %u\n", ss_usb_cap->bU1DevExitLat); ++ printf(" wU1devExitLat: %u\n", ss_usb_cap->bU1DevExitLat); ++#ifdef __FreeBSD__ ++ printf(" wU2devExitLat: %u\n", ss_usb_cap->wU2DevExitLat); ++#else + printf(" bU2devExitLat: %u\n", ss_usb_cap->bU2DevExitLat); ++#endif + } + + static void print_bos(libusb_device_handle *handle) +@@ -133,11 +137,17 @@ static void print_bos(libusb_device_handle *handle) + return; + } + ++ + printf(" Binary Object Store (BOS):\n"); + printf(" wTotalLength: %u\n", bos->wTotalLength); ++#ifdef __FreeBSD__ ++ printf(" bNumDeviceCapabilities: %u\n", bos->bNumDeviceCapabilities); ++ for (i = 0; i < bos->bNumDeviceCapabilities; i++) ++#else + printf(" bNumDeviceCaps: %u\n", bos->bNumDeviceCaps); +- + for (i = 0; i < bos->bNumDeviceCaps; i++) ++#endif ++ + { + struct libusb_bos_dev_capability_descriptor *dev_cap = bos->dev_capability[i]; + +@@ -172,7 +182,6 @@ static void print_bos(libusb_device_handle *handle) + libusb_free_ss_usb_device_capability_descriptor(ss_dev_cap); + } + } +- + libusb_free_bos_descriptor(bos); + } + diff --git a/comms/py-hid/Makefile b/comms/py-hid/Makefile index 57dee80cff33..7b93c92b3dba 100644 --- a/comms/py-hid/Makefile +++ b/comms/py-hid/Makefile @@ -4,7 +4,7 @@ CATEGORIES= comms python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -MAINTAINER= nxjoseph@protonmail.com +MAINTAINER= sunpoet@FreeBSD.org COMMENT= ctypes bindings for hidapi WWW= https://github.com/apmorton/pyhidapi diff --git a/comms/py-hidapi/Makefile b/comms/py-hidapi/Makefile index e9319adf65e4..5ec5ea17ab2f 100644 --- a/comms/py-hidapi/Makefile +++ b/comms/py-hidapi/Makefile @@ -1,64 +1,37 @@ PORTNAME= hidapi -DISTVERSION= 0.14.0 +PORTVERSION= 0.14.0 +DISTVERSIONSUFFIX= .post4 +PORTREVISION= 1 CATEGORIES= comms python +MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -DISTNAME= ${GH_ACCOUNT}-${PORTVERSION}${EXTRACT_SUFX} -MAINTAINER= ports@FreeBSD.org -COMMENT= Cython interface to comms/hidapi -WWW= https://pypi.org/project/hidapi/ +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Cython interface to the hidapi +WWW= https://github.com/trezor/cython-hidapi LICENSE= BSD3CLAUSE GPLv3 PD -LICENSE_COMB= multi -LICENSE_FILE_BSD3CLAUSE= ${WRKSRC}/LICENSE-bsd.txt +LICENSE_COMB= dual +LICENSE_FILE= ${WRKSRC}/LICENSE.txt +LICENSE_FILE_BSD3CLAUSE=${WRKSRC}/LICENSE-bsd.txt LICENSE_FILE_GPLv3= ${WRKSRC}/LICENSE-gpl3.txt LICENSE_FILE_PD= ${WRKSRC}/LICENSE-orig.txt -LICENSE_FILE= ${WRKSRC}/LICENSE.txt -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cython>0:lang/cython@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}recommonmark>0:textproc/py-recommonmark@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}sphinx_rtd_theme>0:textproc/py-sphinx_rtd_theme@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} LIB_DEPENDS= libhidapi.so:comms/hidapi -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} -TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tox>0:devel/py-tox@${PY_FLAVOR} - -USES= python -USE_GITHUB= yes -GH_ACCOUNT= trezor -GH_PROJECT= cython-hidapi -USE_PYTHON= autoplist cython pep517 pytest - -MAKE_ENV+= DISTUTILS_DEBUG=1 -DOCSDIR= ${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME} +USES= pkgconfig python +USE_PYTHON= autoplist concurrent cython pep517 unittest -PLIST_FILES= share/man/man1/${PORTNAME}.1.gz -PORTDOCS= * - -OPTIONS_DEFINE= DOCS +MAKE_ENV= HIDAPI_SYSTEM_HIDAPI=1 \ + HIDAPI_WITH_LIBUSB=1 post-patch: - @${REINPLACE_CMD} -e 's|usb-1.0|usb|g' ${WRKSRC}/setup.py - -post-build: - (cd ${WRKSRC}/docs && \ - ${SETENV} sphinx-build-${PYTHON_VER} -b man . _build/man) - -post-build-DOCS-on: - (cd ${WRKSRC}/docs && \ - ${SETENV} sphinx-build-${PYTHON_VER} -b html . _build/html) +# Clean up bundled libraries + @${RM} -r ${WRKSRC}/hidapi/ post-install: - ${INSTALL_MAN} ${WRKSRC}/docs/_build/man/${PORTNAME}.1 \ - ${STAGEDIR}${PREFIX}/share/man/man1/ - @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/hid*.so - -post-install-DOCS-on: - ${MKDIR} ${STAGEDIR}${DOCSDIR} - (cd ${WRKSRC}/docs/_build/html && \ - ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/ "-not -name .buildinfo -not -regex ^./.doctrees.* -not -regex ^./_sources.*") + ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + .include <bsd.port.mk> diff --git a/comms/py-hidapi/distinfo b/comms/py-hidapi/distinfo index 5d36d0d636cb..9bbc0c771333 100644 --- a/comms/py-hidapi/distinfo +++ b/comms/py-hidapi/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1705544232 -SHA256 (trezor-cython-hidapi-0.14.0_GH0.tar.gz) = 211b0cb99b1f9724f3d1b09d198d764b7eca77514ae86584e3f3ce872aefff51 -SIZE (trezor-cython-hidapi-0.14.0_GH0.tar.gz) = 22504 +TIMESTAMP = 1751622359 +SHA256 (hidapi-0.14.0.post4.tar.gz) = 48fce253e526d17b663fbf9989c71c7ef7653ced5f4be65f1437c313fb3dbdf6 +SIZE (hidapi-0.14.0.post4.tar.gz) = 174388 diff --git a/comms/py-hidapi/pkg-descr b/comms/py-hidapi/pkg-descr index c282f7186602..02eb3c483226 100644 --- a/comms/py-hidapi/pkg-descr +++ b/comms/py-hidapi/pkg-descr @@ -1 +1 @@ -Cython interface to comms/hidapi. +cython-hidapi is a cython interface to HIDAPI library. |