aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/msmtp.rb
blob: c7f1030a2338f43ce5f147ae95937c3c61a5a063 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
    configure_args = [
      "--prefix=#{prefix}",
      "--disable-debug",
      "--disable-dependency-tracking",
    ]

    configure_args << "--with-macosx-keyring" if ARGV.include? '--with-macosx-keyring'

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