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

class Msmtp <Formula
  url 'http://downloads.sourceforge.net/project/msmtp/msmtp/1.4.20/msmtp-1.4.20.tar.bz2'
  homepage 'http://msmtp.sourceforge.net'
  md5 '065042eaaee40c2779cf0bcfffe72aae'

  def options
    [['--with-macosx-keyring', "Support Mac OS X Keyring"]]
  end

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

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