aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/msmtp.rb
blob: 169ade2cbaf0017ff434c58b9101195af6ed475f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require 'formula'

class Msmtp < Formula
  homepage 'http://msmtp.sourceforge.net'
  url 'https://downloads.sourceforge.net/project/msmtp/msmtp/1.4.32/msmtp-1.4.32.tar.bz2'
  sha1 '03186a70035dbbf7a31272a20676b96936599704'

  depends_on 'pkg-config' => :build
  depends_on 'openssl'

  def install
    args = %W[
      --disable-dependency-tracking
      --with-macosx-keyring
      --prefix=#{prefix}
      --with-ssl=openssl
    ]

    system "./configure", *args
    system "make", "install"
  end
end