homebrew-core/Formula/putty.rb

27 lines
800 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
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'
2012-07-24 04:58:06 +00:00
sha1 '5898438614117ee7e3704fc3f30a3c4bf2041380'
2013-02-10 05:53:28 +00:00
depends_on 'pkg-config' => :build
depends_on 'gtk+' => :optional
def install
2012-03-11 21:51:23 +00:00
cd "unix" do
system "./configure", "--prefix=#{prefix}", "--disable-gtktest"
system "make", "VER=-DRELEASE=#{version}",
(build.with?('gtk+') ? "all" : "all-cli")
bin.install %w{ putty puttytel pterm } if build.with? 'gtk+'
2012-03-11 21:51:23 +00:00
bin.install %w{ plink pscp psftp puttygen }
end
2012-03-11 21:51:23 +00:00
cd "doc" do
man1.install %w{ putty.1 puttytel.1 pterm.1 } if build.with? 'gtk+'
2012-03-11 21:51:23 +00:00
man1.install %w{ plink.1 pscp.1 psftp.1 puttygen.1 }
end
end
end