From cc156c9bc69d19ce0438cf0a157b02980bce7213 Mon Sep 17 00:00:00 2001 From: FX Coudert Date: Mon, 21 Oct 2019 19:20:32 +0200 Subject: [PATCH] libhid: fix patch --- Formula/libhid.rb | 29 ++++------------------------- 1 file changed, 4 insertions(+), 25 deletions(-) diff --git a/Formula/libhid.rb b/Formula/libhid.rb index 35a1effc5d..17e342c6c7 100644 --- a/Formula/libhid.rb +++ b/Formula/libhid.rb @@ -20,7 +20,10 @@ class Libhid < Formula depends_on "libusb-compat" # Fix compilation error on 10.9 - patch :DATA + patch do + url "https://raw.githubusercontent.com/Homebrew/formula-patches/85fa66a9/libhid/0.2.16.patch" + sha256 "443a3218902054b7fc7a9f91fd1601d50e2cc7bdca3f16e75419b3b60f2dab81" + end def install system "./configure", "--disable-debug", "--disable-dependency-tracking", @@ -42,27 +45,3 @@ class Libhid < Formula system "./test" end end - -__END__ ---- libhid-0.2.16/src/Makefile.am.org 2014-01-02 19:20:33.000000000 +0200 -+++ libhid-0.2.16/src/Makefile.am 2014-01-02 19:21:15.000000000 +0200 -@@ -17,7 +17,7 @@ else - if OS_DARWIN - OS_SUPPORT_SOURCE = darwin.c - AM_CFLAGS += -no-cpp-precomp --AM_LDFLAGS += -lIOKit -framework "CoreFoundation" -+AM_LDFLAGS += -framework IOKit -framework "CoreFoundation" - else - OS_SUPPORT = - endif ---- libhid-0.2.16/src/Makefile.in.org 2014-01-02 19:20:35.000000000 +0200 -+++ libhid-0.2.16/src/Makefile.in 2014-01-02 19:21:24.000000000 +0200 -@@ -39,7 +39,7 @@ POST_UNINSTALL = : - build_triplet = @build@ - host_triplet = @host@ - @OS_BSD_FALSE@@OS_DARWIN_TRUE@@OS_LINUX_FALSE@@OS_SOLARIS_FALSE@am__append_1 = -no-cpp-precomp --@OS_BSD_FALSE@@OS_DARWIN_TRUE@@OS_LINUX_FALSE@@OS_SOLARIS_FALSE@am__append_2 = -lIOKit -framework "CoreFoundation" -+@OS_BSD_FALSE@@OS_DARWIN_TRUE@@OS_LINUX_FALSE@@OS_SOLARIS_FALSE@am__append_2 = -framework IOKit -framework "CoreFoundation" - bin_PROGRAMS = libhid-detach-device$(EXEEXT) - subdir = src - DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \