2010-11-22 00:05:43 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Notmuch < Formula
|
2011-10-26 01:28:32 +00:00
|
|
|
url 'http://notmuchmail.org/releases/notmuch-0.9.tar.gz'
|
2010-11-22 00:05:43 +00:00
|
|
|
homepage 'http://notmuchmail.org'
|
2011-10-26 01:28:32 +00:00
|
|
|
sha1 '988e93545880e9465380383f00d591d8a23c61dd'
|
2010-11-22 00:05:43 +00:00
|
|
|
|
|
|
|
depends_on 'xapian'
|
|
|
|
depends_on 'talloc'
|
|
|
|
depends_on 'gmime'
|
|
|
|
|
|
|
|
def install
|
2011-10-26 02:24:19 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--without-emacs"
|
2010-11-22 00:05:43 +00:00
|
|
|
|
|
|
|
# notmuch requires a newer emacs than macosx provides. So we either
|
|
|
|
# disable the emacs bindings or make notmuch depend on the homebrew
|
|
|
|
# emacs package.
|
|
|
|
# And there is a race condition in the makefile, so we have to either
|
|
|
|
# deparallelize the process or run make and make install separately.
|
|
|
|
|
2011-10-26 02:24:19 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
2010-11-22 00:05:43 +00:00
|
|
|
end
|
|
|
|
end
|