aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/msmtp.rb13
1 files changed, 7 insertions, 6 deletions
diff --git a/Library/Formula/msmtp.rb b/Library/Formula/msmtp.rb
index 20669ed04..37bc8728d 100644
--- a/Library/Formula/msmtp.rb
+++ b/Library/Formula/msmtp.rb
@@ -5,15 +5,16 @@ class Msmtp < Formula
url 'http://downloads.sourceforge.net/project/msmtp/msmtp/1.4.28/msmtp-1.4.28.tar.bz2'
sha1 '3fd44b30e8f4ae071b2a5a205d6007f3465fa970'
- depends_on 'pkg-config' => :build
+ option 'with-macosx-keyring', "Support Mac OS X Keyring"
- def options
- [['--with-macosx-keyring', "Support Mac OS X Keyring"]]
- end
+ depends_on 'pkg-config' => :build
def install
- args = [ "--disable-dependency-tracking", "--prefix=#{prefix}" ]
- args << "--with-macosx-keyring" if ARGV.include? '--with-macosx-keyring'
+ args = %W[
+ --disable-dependency-tracking
+ --prefix=#{prefix}
+ ]
+ args << "--with-macosx-keyring" if build.include? 'with-macosx-keyring'
system "./configure", *args
system "make install"