aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/notmuch.rb
blob: e2fad474837b73efc3d90700d43f568e38177ed2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require 'formula'

class Notmuch < Formula
  url 'http://notmuchmail.org/releases/notmuch-0.5.tar.gz'
  homepage 'http://notmuchmail.org'
  md5 '983cd907a7bf5ee0d12ebfb54cff784f'

  depends_on 'xapian'
  depends_on 'talloc'
  depends_on 'gmime'

  def install
    system "./configure", "--prefix=#{prefix}"

    # 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.

    system "make HAVE_EMACS=0"
    system "make install HAVE_EMACS=0"
  end
end