homebrew-core/Formula/notmuch.rb
2019-12-06 11:15:35 +00: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.3.tar.xz"
sha256 "d5f704b9a72395e43303de9b1f4d8e14dd27bf3646fdbb374bb3dbb7d150dc35"
head "https://git.notmuchmail.org/git/notmuch", :using => :git
bottle do
cellar :any
sha256 "7abcdbcd0cb0bb8769038d6d5071605fe3b30cf92a2cb02fe99b021ae3258a25" => :catalina
sha256 "e8b7c72755336b60de167c3735347124141afa70e2bc5b67cc5d986a7ee6a459" => :mojave
sha256 "0b3af768a7e46d41285220c422ef60c729353d45774b0af609c7e3260506b71b" => :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