homebrew-core/Formula/notmuch.rb
2019-10-24 14:50:57 -04:00

53 lines
1.5 KiB
Ruby

class Notmuch < Formula
desc "Thread-based email index, search, and tagging"
homepage "https://notmuchmail.org/"
url "https://notmuchmail.org/releases/notmuch-0.29.2.tar.xz"
sha256 "1bda6149b2fb0840f4d146391cab89e541d30a778f1f6e6fa95b456097cd55de"
head "https://git.notmuchmail.org/git/notmuch", :using => :git
bottle do
cellar :any
sha256 "78f157dd3499a8a30a3b7d2f7d582e09c7e81351d7c30e51b9e2bf75ca927034" => :catalina
sha256 "4fce6bdaf3d5bb978630523ed631f262dbc4ecdd5fdb92bc9c1755c96826b692" => :mojave
sha256 "140259b5ba23c7302218a74e19eea1b75c6efbdce5c2d5af6c4a22c4ed0258a1" => :high_sierra
end
depends_on "doxygen" => :build
depends_on "libgpg-error" => :build
depends_on "pkg-config" => :build
depends_on "sphinx-doc" => :build
depends_on "emacs"
depends_on "glib"
depends_on "gmime"
depends_on "python"
depends_on "talloc"
depends_on "xapian"
depends_on "zlib"
def install
args = %W[
--prefix=#{prefix}
--mandir=#{man}
--with-emacs
--emacslispdir=#{elisp}
--emacsetcdir=#{elisp}
--without-ruby
]
# Emacs and parallel builds aren't friends
ENV.deparallelize
system "./configure", *args
system "make", "V=1", "install"
cd "bindings/python" do
system "python3", *Language::Python.setup_install_args(prefix)
end
end
test do
(testpath/".notmuch-config").write "[database]\npath=#{testpath}/Mail"
(testpath/"Mail").mkpath
assert_match "0 total", shell_output("#{bin}/notmuch new")
end
end