aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Formula/gobject-introspection.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/Library/Formula/gobject-introspection.rb b/Library/Formula/gobject-introspection.rb
index b84656329..9b4b2a549 100644
--- a/Library/Formula/gobject-introspection.rb
+++ b/Library/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'