65 lines
2.1 KiB
Ruby
65 lines
2.1 KiB
Ruby
class Notmuch < Formula
|
|
desc "Thread-based email index, search, and tagging"
|
|
homepage "https://notmuchmail.org/"
|
|
url "https://notmuchmail.org/releases/notmuch-0.31.4.tar.xz"
|
|
sha256 "8661b66567660fd630af10c4647c30327fdd1b34a988cab80d614328a5b74f55"
|
|
license "GPL-3.0-or-later"
|
|
head "https://git.notmuchmail.org/git/notmuch", using: :git
|
|
|
|
livecheck do
|
|
url "https://notmuchmail.org/releases/"
|
|
regex(/href=.*?notmuch[._-]v?(\d+(?:\.\d+)+)\.t/i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 cellar: :any, arm64_big_sur: "1586671b82d5034834e193d2567df96bc5a22126c21f129d217970fc828df867"
|
|
sha256 cellar: :any, big_sur: "6a4e93016764cd241fd6fcfe7de3c1fad5f7c974059e6e0eae26acbaa1ad3135"
|
|
sha256 cellar: :any, catalina: "8e44512a3da374635e4c8a1c64e616b194aab6c44f801ebe8b597a24b62523de"
|
|
sha256 cellar: :any, mojave: "665555b527990f222c945e630d7fd8e9a1b97e0c9fb996932f53a35c426b4a13"
|
|
end
|
|
|
|
depends_on "doxygen" => :build
|
|
depends_on "libgpg-error" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "sphinx-doc" => :build
|
|
depends_on "glib"
|
|
depends_on "gmime"
|
|
depends_on "python@3.9"
|
|
depends_on "talloc"
|
|
depends_on "xapian"
|
|
depends_on "zlib"
|
|
|
|
def install
|
|
args = %W[
|
|
--prefix=#{prefix}
|
|
--mandir=#{man}
|
|
--emacslispdir=#{elisp}
|
|
--emacsetcdir=#{elisp}
|
|
--bashcompletiondir=#{bash_completion}
|
|
--zshcompletiondir=#{zsh_completion}
|
|
--without-ruby
|
|
]
|
|
|
|
ENV.append_path "PYTHONPATH", Formula["sphinx-doc"].opt_libexec/"lib/python3.9/site-packages"
|
|
|
|
system "./configure", *args
|
|
system "make", "V=1", "install"
|
|
|
|
bash_completion.install "completion/notmuch-completion.bash"
|
|
|
|
(prefix/"vim/plugin").install "vim/notmuch.vim"
|
|
(prefix/"vim/doc").install "vim/notmuch.txt"
|
|
(prefix/"vim").install "vim/syntax"
|
|
|
|
cd "bindings/python" do
|
|
system Formula["python@3.9"].opt_bin/"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
|