diff options
| author | Adam Vandenberg | 2012-09-03 13:51:13 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-09-03 13:51:13 -0700 |
| commit | 42b01afe069822469e5c58dfb9f95cf28a186dc9 (patch) | |
| tree | 7c8972c58ecb7924d27abb5d96a3769cf9f1741f /Library/Formula | |
| parent | 1503ae7ad2ac0d97bda59592f9f4f8a30d8d4523 (diff) | |
| download | homebrew-42b01afe069822469e5c58dfb9f95cf28a186dc9.tar.bz2 | |
msmtp: use new dsl
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/msmtp.rb | 13 |
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" |
