2009-11-30 03:36:38 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Msmtp < Formula
|
2011-11-30 14:32:39 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/msmtp/msmtp/1.4.26/msmtp-1.4.26.tar.bz2'
|
2009-11-30 03:36:38 +00:00
|
|
|
homepage 'http://msmtp.sourceforge.net'
|
2011-11-30 14:32:39 +00:00
|
|
|
md5 '35734268c883aa06388742f902d95676'
|
2009-11-30 03:36:38 +00:00
|
|
|
|
2012-02-18 12:01:26 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
|
2010-01-28 22:14:05 +00:00
|
|
|
def options
|
2010-04-07 05:58:35 +00:00
|
|
|
[['--with-macosx-keyring', "Support Mac OS X Keyring"]]
|
2010-01-28 22:14:05 +00:00
|
|
|
end
|
|
|
|
|
2009-11-30 03:36:38 +00:00
|
|
|
def install
|
2011-01-10 00:55:30 +00:00
|
|
|
args = [ "--disable-dependency-tracking", "--prefix=#{prefix}" ]
|
2010-04-07 05:58:35 +00:00
|
|
|
args << "--with-macosx-keyring" if ARGV.include? '--with-macosx-keyring'
|
2010-01-28 22:14:05 +00:00
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
system "./configure", *args
|
2009-11-30 03:36:38 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|