aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorRaphaƫl P. Barazzutti2015-04-08 07:58:54 +0200
committerMike McQuaid2015-04-09 08:13:56 +0100
commit6011106c9733925a0b2a1ee4529c1c2b901f5dd0 (patch)
tree0327acfe9fd3b52dcb3af0b66b35e3d29b0320f6 /Library/Formula
parent390d49d3a8a5cf0a4cfc857d04755363b09427f8 (diff)
downloadhomebrew-6011106c9733925a0b2a1ee4529c1c2b901f5dd0.tar.bz2
hidapi: apply patch to fix IOHidManager.
Closes #38461.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/hidapi.rb17
1 files changed, 14 insertions, 3 deletions
diff --git a/Library/Formula/hidapi.rb b/Library/Formula/hidapi.rb
index c1e08de2d..c6e17a7a1 100644
--- a/Library/Formula/hidapi.rb
+++ b/Library/Formula/hidapi.rb
@@ -1,9 +1,20 @@
require 'formula'
class Hidapi < Formula
- homepage 'https://github.com/signal11/hidapi'
- url 'https://github.com/signal11/hidapi/archive/hidapi-0.8.0-rc1.tar.gz'
- sha1 '5e72a4c7add8b85c8abcdd360ab8b1e1421da468'
+ homepage "https://github.com/signal11/hidapi"
+ url "https://github.com/signal11/hidapi/archive/hidapi-0.8.0-rc1.tar.gz"
+ sha1 "5e72a4c7add8b85c8abcdd360ab8b1e1421da468"
+
+ # This patch addresses a bug discovered in the HidApi IOHidManager back-end
+ # that is being used with Macs.
+ # The bug was dramatically changing the behaviour of the function
+ # "hid_get_feature_report". As a consequence, many applications working
+ # with HidApi were not behaving correctly on OSX.
+ # pull request on Hidapi's repo: https://github.com/signal11/hidapi/pull/219
+ patch do
+ url "https://patch-diff.githubusercontent.com/raw/signal11/hidapi/pull/219.diff"
+ sha256 "82631c8a6ec307482c09c133f9da89672c781665704304aa0ef286467b7fe5c2"
+ end
bottle do
cellar :any