aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/putty.rb
blob: 7dd8c906ae27564c21dd39ecf92f8173dc7eb5c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require 'formula'

class Putty < Formula
  homepage 'http://www.chiark.greenend.org.uk/~sgtatham/putty/'
  url 'http://the.earth.li/~sgtatham/putty/0.62/putty-0.62.tar.gz'
  md5 '1344b606a680a9036df0fc3a05e62e71'

  def install
    # use the unix build to make all PuTTY command line tools
    cd "unix" do
      # disable GTK upon configure
      system "./configure", "--prefix=#{prefix}",
                            "--disable-gtktest",
                            "--with-gtk-prefix=/dev/null"
      system "make", "VER=-DRELEASE=#{version}", "all-cli"
      # install manually
      bin.install %w{ plink pscp psftp puttygen }
    end
    cd "doc" do
      man1.install %w{ plink.1 pscp.1 psftp.1 puttygen.1 }
    end
  end

  def caveats
    "This formula did not build the Mac OS X GUI PuTTY.app."
  end
end