notmuch 0.11

- Fix library install name issue that upstream is skating around

Closes Homebrew/homebrew#8284.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
master
Jack Nagel 2012-02-21 19:24:48 -06:00
parent 709b50d8a1
commit b760b8cb41
1 changed files with 5 additions and 10 deletions

View File

@ -1,24 +1,19 @@
require 'formula'
class Notmuch < Formula
url 'http://notmuchmail.org/releases/notmuch-0.9.tar.gz'
homepage 'http://notmuchmail.org'
sha1 '988e93545880e9465380383f00d591d8a23c61dd'
url 'http://notmuchmail.org/releases/notmuch-0.11.tar.gz'
sha1 '11eb1d967af089ed36f6816f61ebae308bc19339'
depends_on 'xapian'
depends_on 'talloc'
depends_on 'gmime'
def install
# requires a newer emacs than OS X provides, so disable the bindings
system "./configure", "--prefix=#{prefix}", "--without-emacs"
# 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"
system "make install"
system "install_name_tool", "-change", "libnotmuch.2.dylib",
"#{lib}/libnotmuch.2.dylib", "#{bin}/notmuch"
end
end