homebrew-core/Formula/getmail.rb
2018-04-02 22:35:01 -07:00

25 lines
967 B
Ruby

class Getmail < Formula
desc "Extensible mail retrieval system with POP3, IMAP4, SSL support"
homepage "http://pyropus.ca/software/getmail/"
url "http://pyropus.ca/software/getmail/old-versions/getmail-5.6.tar.gz"
sha256 "460d2c8834936df88d594095d789c4585edca9b0bdbeded9f6267f0d90dcd59a"
bottle do
cellar :any_skip_relocation
sha256 "e68ba106188d5de7ba03e4cc6335eb920b8fae875770fd33ec9c7f13f6cc25ac" => :high_sierra
sha256 "e68ba106188d5de7ba03e4cc6335eb920b8fae875770fd33ec9c7f13f6cc25ac" => :sierra
sha256 "e68ba106188d5de7ba03e4cc6335eb920b8fae875770fd33ec9c7f13f6cc25ac" => :el_capitan
end
def install
libexec.install %w[getmail getmail_fetch getmail_maildir getmail_mbox]
inreplace Dir[libexec/"*"], %r{^#!/usr/bin/env python$}, "#!/usr/bin/python"
bin.install_symlink Dir["#{libexec}/*"]
libexec.install "getmailcore"
man1.install Dir["docs/*.1"]
end
test do
system bin/"getmail", "--help"
end
end