diff options
| author | Dmitry Kalinkin | 2015-02-03 14:40:05 -0500 | 
|---|---|---|
| committer | Mike McQuaid | 2015-02-03 21:25:06 +0000 | 
| commit | 6c68c5109774915df006e55993b6faaf7537e87f (patch) | |
| tree | 01d411efee0463dffe665e2cf1af525e82854c8f | |
| parent | 46601a9f5be0c617e5c6cfee202c6cea5418ed5c (diff) | |
| download | homebrew-6c68c5109774915df006e55993b6faaf7537e87f.tar.bz2 | |
putty: add mirrors, fix gtk-less build
Closes #36507.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
| -rw-r--r-- | Library/Formula/putty.rb | 10 | 
1 files changed, 9 insertions, 1 deletions
| diff --git a/Library/Formula/putty.rb b/Library/Formula/putty.rb index 555636513..626f99955 100644 --- a/Library/Formula/putty.rb +++ b/Library/Formula/putty.rb @@ -3,6 +3,8 @@ require "formula"  class Putty < Formula    homepage "http://www.chiark.greenend.org.uk/~sgtatham/putty/"    url "http://the.earth.li/~sgtatham/putty/0.63/putty-0.63.tar.gz" +  mirror "ftp://ftp.chiark.greenend.org.uk/users/sgtatham/putty-latest/putty-0.63.tar.gz" +  mirror "https://fossies.org/linux/misc/putty-0.63.tar.gz"    sha1 "195c0603ef61082b91276faa8d4246ea472bba3b"    head do @@ -22,7 +24,13 @@ class Putty < Formula        system "make", "-C", "doc"      end -    system "./configure", "--prefix=#{prefix}", "--disable-gtktest" +    args = %W{ +       --prefix=#{prefix} +       --disable-gtktest +    } +    args << ((build.with? "gtk+") ? "--with-gtk" : "--without-gtk") + +    system "./configure", *args      build_version = build.head? ? "svn-#{version}" : version      system "make", "VER=-DRELEASE=#{build_version}" | 
