diff --git a/comms/py-hid/Makefile b/comms/py-hid/Makefile index a0bc082abfe8..b7728794a578 100644 --- a/comms/py-hid/Makefile +++ b/comms/py-hid/Makefile @@ -1,20 +1,21 @@ PORTNAME= hid DISTVERSION= 1.0.4 +PORTREVISION= 1 CATEGORIES= comms python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= ports@FreeBSD.org COMMENT= Ctypes bindings to comms/hidapi WWW= https://github.com/apmorton/pyhidapi LICENSE= MIT RUN_DEPENDS= hidapi>0:comms/hidapi USES= python USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes .include diff --git a/comms/py-hid/files/patch-hid_____init____.py b/comms/py-hid/files/patch-hid_____init____.py new file mode 100644 index 000000000000..119b2cd4dd9b --- /dev/null +++ b/comms/py-hid/files/patch-hid_____init____.py @@ -0,0 +1,10 @@ +--- hid/__init__.py.orig 2024-04-11 03:39:41 UTC ++++ hid/__init__.py +@@ -7,6 +7,7 @@ library_paths = ( + + hidapi = None + library_paths = ( ++ 'libhidapi.so', + 'libhidapi-hidraw.so', + 'libhidapi-hidraw.so.0', + 'libhidapi-libusb.so',