2011-03-10 05:11:03 +00:00
|
|
|
class Abook < Formula
|
2015-02-22 20:41:11 +00:00
|
|
|
homepage "http://abook.sourceforge.net/"
|
|
|
|
url "https://downloads.sourceforge.net/project/abook/abook/0.5.6/abook-0.5.6.tar.gz"
|
|
|
|
sha1 "79f04f2264c8bd81bbc952b6560c86d69b21615d"
|
|
|
|
head "git://git.code.sf.net/p/abook/git"
|
2010-05-01 01:07:04 +00:00
|
|
|
|
2015-02-22 20:54:45 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "79a5f0c68339b53df2558854ffef927aa1ef9b29" => :yosemite
|
|
|
|
sha1 "2b71a4c791d982933129d096468e9faf365cf35a" => :mavericks
|
|
|
|
sha1 "9d84e27e92763c9c9d45f4af89e433e6f5b77a49" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2014-03-09 19:51:08 +00:00
|
|
|
devel do
|
2015-02-22 20:41:11 +00:00
|
|
|
url "http://abook.sourceforge.net/devel/abook-0.6.0pre2.tar.gz"
|
|
|
|
sha1 "42a939fba43e51aa011fa185113c12ec4bc1e1ec"
|
|
|
|
version "0.6.0pre2"
|
2014-03-18 03:44:46 +00:00
|
|
|
|
|
|
|
# Remove `inline` from function implementation for clang compatibility
|
|
|
|
patch :DATA
|
2014-03-09 19:51:08 +00:00
|
|
|
end
|
|
|
|
|
2015-02-22 20:41:11 +00:00
|
|
|
depends_on "readline"
|
2010-05-01 01:07:04 +00:00
|
|
|
|
|
|
|
def install
|
2015-02-22 20:41:11 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
2013-01-26 22:01:15 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}"
|
2015-02-22 20:41:11 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/abook", "--formats"
|
2010-05-01 01:07:04 +00:00
|
|
|
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));
|