aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Piotrowski <0mp@FreeBSD.org>2024-04-11 15:53:25 +0000
committerMateusz Piotrowski <0mp@FreeBSD.org>2024-04-11 15:55:47 +0000
commit9675d0a4f943418c1dce991da3ad87734ed09152 (patch)
treedf305773c3837f66e22bce6e2711fbe8f073830c
parenta2bdc2d6ce4ca125bd9acb76fe9f3e7dd339ce10 (diff)
downloadports-9675d0a4f943418c1dce991da3ad87734ed09152.tar.gz
ports-9675d0a4f943418c1dce991da3ad87734ed09152.zip
comms/py-hid: Add libhidapi.so to library_paths
dennis <drac7ft@gmail.com> reportsed that py-hid would fail due to not finding libhidapi.so. The "library_paths" variable in the installed __init__.py did not have a path for any suitable library for it to use. PR: 278086 Reported by: dennis <drac7ft@gmail.com>
-rw-r--r--comms/py-hid/Makefile1
-rw-r--r--comms/py-hid/files/patch-hid_____init____.py10
2 files changed, 11 insertions, 0 deletions
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,5 +1,6 @@
PORTNAME= hid
DISTVERSION= 1.0.4
+PORTREVISION= 1
CATEGORIES= comms python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
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',