abook: use patch DSL

master
Jack Nagel 2014-03-17 22:44:46 -05:00
parent bd40dc19e0
commit 95906f192f
1 changed files with 3 additions and 7 deletions

View File

@ -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}",