2011-03-10 05:11:03 +00:00
|
|
|
class Abook < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Address book with mutt support"
|
2017-02-13 23:55:13 +00:00
|
|
|
homepage "https://abook.sourceforge.io/"
|
2015-02-22 20:41:11 +00:00
|
|
|
url "https://downloads.sourceforge.net/project/abook/abook/0.5.6/abook-0.5.6.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "0646f6311a94ad3341812a4de12a5a940a7a44d5cb6e9da5b0930aae9f44756e"
|
2016-09-17 12:24:51 +00:00
|
|
|
revision 1
|
|
|
|
|
2017-03-09 22:31:48 +00:00
|
|
|
head "https://git.code.sf.net/p/abook/git.git"
|
2010-05-01 01:07:04 +00:00
|
|
|
|
2015-02-22 20:54:45 +00:00
|
|
|
bottle do
|
2016-09-28 22:34:04 +00:00
|
|
|
sha256 "e32cff277928e0b5cd24f201b1b5f94faf5469f263856b48c78f85b539018c86" => :sierra
|
|
|
|
sha256 "fc5e09a73519a20dbe90258d6779bfddb1a02b2fc277fd54b4cd8c80c378539d" => :el_capitan
|
|
|
|
sha256 "2f3a8d37fd17ecdda801f8de53e4048f19d824748e11a34c6f9abca0aae06c3b" => :yosemite
|
2015-02-22 20:54:45 +00:00
|
|
|
end
|
|
|
|
|
2014-03-09 19:51:08 +00:00
|
|
|
devel do
|
2017-03-09 22:31:48 +00:00
|
|
|
url "https://abook.sourceforge.io/devel/abook-0.6.0pre2.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "59d444504109dd96816e003b3023175981ae179af479349c34fa70bc12f6d385"
|
2015-02-22 20:41:11 +00:00
|
|
|
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));
|