2010-05-01 01:07:04 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Abook < Formula
|
2010-05-01 01:07:04 +00:00
|
|
|
homepage 'http://abook.sourceforge.net/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/abook/abook-0.5.6.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '79f04f2264c8bd81bbc952b6560c86d69b21615d'
|
2010-05-01 01:07:04 +00:00
|
|
|
|
2014-03-09 19:51:08 +00:00
|
|
|
devel do
|
|
|
|
url 'https://abook.sourceforge.net/devel/abook-0.6.0pre2.tar.gz'
|
|
|
|
sha1 '42a939fba43e51aa011fa185113c12ec4bc1e1ec'
|
|
|
|
end
|
|
|
|
|
2012-11-11 03:12:26 +00:00
|
|
|
depends_on 'readline'
|
2010-05-01 01:07:04 +00:00
|
|
|
|
2014-03-09 19:51:08 +00:00
|
|
|
def patches
|
|
|
|
if build.devel?
|
|
|
|
# Remove `inline` from function implementation for clang compatibility
|
|
|
|
DATA
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2010-05-01 01:07:04 +00:00
|
|
|
def install
|
2012-02-09 04:58:13 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
2013-01-26 22:01:15 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}"
|
2010-05-01 01:07:04 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2014-03-09 19:51:08 +00:00
|
|
|
|
|
|
|
__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));
|