homebrew-core/Formula/abook.rb

52 lines
1.5 KiB
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Abook < Formula
desc "Address book with mutt support"
homepage "http://abook.sourceforge.net/"
url "https://downloads.sourceforge.net/project/abook/abook/0.5.6/abook-0.5.6.tar.gz"
sha256 "0646f6311a94ad3341812a4de12a5a940a7a44d5cb6e9da5b0930aae9f44756e"
head "git://git.code.sf.net/p/abook/git"
2015-02-22 20:54:45 +00:00
bottle do
2015-11-19 15:45:31 +00:00
sha256 "3aeddea7c0bb71c664a2df2d8974df26d156f25f5a2ff993060396f0af22b574" => :yosemite
sha256 "87ee3c353da4421ac95d43dcf6581a8ee60f9c8b6c2a1821b498dabbab60942e" => :mavericks
sha256 "882983ecabf61b120b50eb313c698bc85806d95dd8712375f64decd2f2ebce59" => :mountain_lion
2015-02-22 20:54:45 +00:00
end
devel do
url "http://abook.sourceforge.net/devel/abook-0.6.0pre2.tar.gz"
sha256 "59d444504109dd96816e003b3023175981ae179af479349c34fa70bc12f6d385"
version "0.6.0pre2"
2014-03-18 03:44:46 +00:00
# Remove `inline` from function implementation for clang compatibility
patch :DATA
end
depends_on "readline"
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
2013-01-26 22:01:15 +00:00
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make", "install"
end
test do
system "#{bin}/abook", "--formats"
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));