homebrew-core/Formula/msmtp.rb
2018-12-27 10:35:34 +01:00

34 lines
1.1 KiB
Ruby

class Msmtp < Formula
desc "SMTP client that can be used as an SMTP plugin for Mutt"
homepage "https://marlam.de/msmtp/"
url "https://marlam.de/msmtp/releases/msmtp-1.6.6.tar.xz"
sha256 "da15db1f62bd0201fce5310adb89c86188be91cd745b7cb3b62b81a501e7fb5e"
bottle do
sha256 "a2747598c1f5d9d8223a01b8454d15e60d013e303f94e8651fbaab1d14492c90" => :mojave
sha256 "e9161f534cfa50edb5beae511d7689fe02a53b68f90623ebc751a41ba34b4037" => :high_sierra
sha256 "d0b8a2a76d7ee8ed6beda0c383acd28d7a85d9d677c8d89a8a2e6b717055fe70" => :sierra
sha256 "115ce90fcc11a1fbda6bf4496200b50e89d4cccdb32f999cf6b3b749635f8e3e" => :el_capitan
sha256 "6f5227576bf8ac42fed7190c22f2e62b0fb2a3af59fa085e783426661c606758" => :yosemite
end
depends_on "pkg-config" => :build
depends_on "openssl"
def install
args = %W[
--disable-dependency-tracking
--with-macosx-keyring
--prefix=#{prefix}
--with-tls=openssl
]
system "./configure", *args
system "make", "install"
(pkgshare/"scripts").install "scripts/msmtpq"
end
test do
system bin/"msmtp", "--help"
end
end