aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2014-03-09 12:51:08 -0700
committerAdam Vandenberg2014-03-09 13:04:32 -0700
commitf2c3c1b783de746dcea7ef832d6a8f7cb036488e (patch)
tree493fcbe5e1432b9b744ce95da3f256230dce7254 /Library
parent3176897dabcad9ad17c3d345cf7db45a446e0959 (diff)
downloadhomebrew-f2c3c1b783de746dcea7ef832d6a8f7cb036488e.tar.bz2
abook --devel 0.6.0-pre2
Closes #27338.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/abook.rb27
1 files changed, 27 insertions, 0 deletions
diff --git a/Library/Formula/abook.rb b/Library/Formula/abook.rb
index fd1054d0c..d58d96113 100644
--- a/Library/Formula/abook.rb
+++ b/Library/Formula/abook.rb
@@ -5,8 +5,20 @@ class Abook < Formula
url 'https://downloads.sourceforge.net/abook/abook-0.5.6.tar.gz'
sha1 '79f04f2264c8bd81bbc952b6560c86d69b21615d'
+ devel do
+ url 'https://abook.sourceforge.net/devel/abook-0.6.0pre2.tar.gz'
+ sha1 '42a939fba43e51aa011fa185113c12ec4bc1e1ec'
+ 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}",
@@ -14,3 +26,18 @@ class Abook < Formula
system "make install"
end
end
+
+__END__
+diff --git a/database.c b/database.c
+index 7c47ab6..53bdb9f 100644
+--- a/database.c
++++ b/database.c
+@@ -762,7 +762,7 @@ item_duplicate(list_item dest, list_item src)
+ */
+
+ /* quick lookup by "standard" field number */
+-inline int
++int
+ field_id(int i)
+ {
+ assert((i >= 0) && (i < ITEM_FIELDS));