diff --git a/Formula/gobject-introspection.rb b/Formula/gobject-introspection.rb index b84656329a..9b4b2a549b 100644 --- a/Formula/gobject-introspection.rb +++ b/Formula/gobject-introspection.rb @@ -22,9 +22,10 @@ class GobjectIntrospection < Formula depends_on 'cairo' => :build if build.with? 'tests' # Allow tests to execute on OS X (.so => .dylib) - def patches - "https://gist.github.com/krrk/6958869/raw/de8d83009d58eefa680a590f5839e61a6e76ff76/gobject-introspection-tests.patch" - end if build.with? 'tests' + patch do + url "https://gist.github.com/krrk/6958869/raw/de8d83009d58eefa680a590f5839e61a6e76ff76/gobject-introspection-tests.patch" + sha1 "1f57849db76cd2ca26ddb35dc36c373606414dfc" + end if build.with? "tests" def install ENV['GI_SCANNER_DISABLE_CACHE'] = 'true'