mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
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>
This commit is contained in:
parent
a2bdc2d6ce
commit
9675d0a4f9
2 changed files with 11 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
PORTNAME= hid
|
||||
DISTVERSION= 1.0.4
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= comms python
|
||||
MASTER_SITES= PYPI
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
|
10
comms/py-hid/files/patch-hid_____init____.py
Normal file
10
comms/py-hid/files/patch-hid_____init____.py
Normal file
|
@ -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',
|
Loading…
Add table
Reference in a new issue