diff --git a/Formula/hidapi.rb b/Formula/hidapi.rb index 10b807bcec..0a4ef1ae58 100644 --- a/Formula/hidapi.rb +++ b/Formula/hidapi.rb @@ -5,17 +5,6 @@ class Hidapi < Formula sha256 "3c147200bf48a04c1e927cd81589c5ddceff61e6dac137a605f6ac9793f4af61" head "https://github.com/signal11/hidapi.git" - # 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://github.com/signal11/hidapi/pull/219.patch?full_index=1" - sha256 "c0ff6eb370d6b875c06d72724a1a12fa0bafcbd64b2610014abc50a516760240" - end - bottle do cellar :any rebuild 2 @@ -32,6 +21,17 @@ class Hidapi < Formula depends_on "libtool" => :build depends_on "pkg-config" => :build + # 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://github.com/signal11/hidapi/pull/219.patch?full_index=1" + sha256 "c0ff6eb370d6b875c06d72724a1a12fa0bafcbd64b2610014abc50a516760240" + end + def install system "./bootstrap" system "./configure", "--prefix=#{prefix}"