Skip to content

Commit

Permalink
putty: add mirrors, fix gtk-less build
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#36507.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
veprbl authored and MikeMcQuaid committed Feb 3, 2015
1 parent 35e0190 commit 1add4a6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Formula/putty.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
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
Expand All @@ -22,7 +24,13 @@ def install
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}"
Expand Down

0 comments on commit 1add4a6

Please sign in to comment.