aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/msmtp.rb
blob: 2a5754a5ff1aee727a674d7d1ea46e2fb1eabc6b (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 'http://downloads.sourceforge.net/project/msmtp/msmtp/1.4.30/msmtp-1.4.30.tar.bz2'
  sha1 'fd469bae0c3394b30b771780e62bbd41c4d5d175'

  option 'with-macosx-keyring', "Support Mac OS X Keyring"

  depends_on 'pkg-config' => :build

  def install
    args = %W[
      --disable-dependency-tracking
      --prefix=#{prefix}
    ]
    args << "--with-macosx-keyring" if build.include? 'with-macosx-keyring'

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