2009-11-30 03:36:38 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Msmtp < Formula
|
2009-11-30 03:36:38 +00:00
|
|
|
homepage 'http://msmtp.sourceforge.net'
|
2013-05-23 14:27:52 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/msmtp/msmtp/1.4.31/msmtp-1.4.31.tar.bz2'
|
|
|
|
sha1 'c0edce1e1951968853f15209c8509699ff9e9ab5'
|
2009-11-30 03:36:38 +00:00
|
|
|
|
2012-09-03 20:51:13 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2013-09-30 17:23:42 +00:00
|
|
|
depends_on 'curl-ca-bundle' => :optional
|
2010-01-28 22:14:05 +00:00
|
|
|
|
2013-06-24 18:05:46 +00:00
|
|
|
# msmtp enables OS X Keychain support by default, so no need to ask for it.
|
|
|
|
|
2009-11-30 03:36:38 +00:00
|
|
|
def install
|
2013-06-24 20:00:19 +00:00
|
|
|
# Msmtp will build against gnutls by default if it exists on the
|
|
|
|
# system. This sets up problems if the user later removes gnutls.
|
|
|
|
# So explicitly ask for openssl, and ye shall receive it whether
|
|
|
|
# or not gnutls is present.
|
2012-09-03 20:51:13 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
2013-06-24 20:00:19 +00:00
|
|
|
--with-ssl=openssl
|
2012-09-03 20:51:13 +00:00
|
|
|
]
|
2010-01-28 22:14:05 +00:00
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
system "./configure", *args
|
2013-06-24 18:05:46 +00:00
|
|
|
system "make", "install"
|
2009-11-30 03:36:38 +00:00
|
|
|
end
|
|
|
|
end
|