hidapi: apply patch to fix IOHidManager.

Closes Homebrew/homebrew#38461.
This commit is contained in:
Raphaël P. Barazzutti 2015-04-08 07:58:54 +02:00 committed by Mike McQuaid
parent fca71c11c3
commit c0afce8d93

View file

@ -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