From 2911ec24c0e4d7b42f09f0778fd407e8be36767a Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 17 Mar 2014 22:44:46 -0500 Subject: abook: use patch DSL --- Library/Formula/abook.rb | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'Library') diff --git a/Library/Formula/abook.rb b/Library/Formula/abook.rb index d58d96113..cabf75606 100644 --- a/Library/Formula/abook.rb +++ b/Library/Formula/abook.rb @@ -8,17 +8,13 @@ class Abook < Formula devel do url 'https://abook.sourceforge.net/devel/abook-0.6.0pre2.tar.gz' sha1 '42a939fba43e51aa011fa185113c12ec4bc1e1ec' + + # Remove `inline` from function implementation for clang compatibility + patch :DATA end depends_on 'readline' - def patches - if build.devel? - # Remove `inline` from function implementation for clang compatibility - DATA - end - end - def install system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}", -- cgit v1.2.3