aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/putty.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2012-03-11 14:51:23 -0700
committerAdam Vandenberg2012-03-11 14:51:23 -0700
commit46028468fe6d6153378a6051d927b262a61bb6ad (patch)
tree65a6678536554cbaeb3ce0ceb5182da01d3478e7 /Library/Formula/putty.rb
parent6dabda44fff8608363db34937a9a95bd7dd0f648 (diff)
downloadhomebrew-46028468fe6d6153378a6051d927b262a61bb6ad.tar.bz2
putty: use block cd
Diffstat (limited to 'Library/Formula/putty.rb')
-rw-r--r--Library/Formula/putty.rb24
1 files changed, 13 insertions, 11 deletions
diff --git a/Library/Formula/putty.rb b/Library/Formula/putty.rb
index d47e05f19..d6eedc435 100644
--- a/Library/Formula/putty.rb
+++ b/Library/Formula/putty.rb
@@ -1,22 +1,24 @@
require 'formula'
class Putty < Formula
- url 'http://the.earth.li/~sgtatham/putty/0.61/putty-0.61.tar.gz'
homepage 'http://www.chiark.greenend.org.uk/~sgtatham/putty/'
+ url 'http://the.earth.li/~sgtatham/putty/0.61/putty-0.61.tar.gz'
md5 'db0e37f6b82ea62f0ace87927d29b2a4'
def install
# use the unix build to make all PuTTY command line tools
- cd "unix"
- # disable GTK upon configure
- system "./configure", "--disable-debug", "--disable-dependency-tracking",
- "--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 }
- cd "../doc"
- man1.install %w{ plink.1 pscp.1 psftp.1 puttygen.1 }
+ 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