diff options
| author | Jack Nagel | 2014-05-24 19:59:24 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-05-24 20:00:00 -0500 |
| commit | 405cbcdfb89db66f5b34b3f1815ba2448f873563 (patch) | |
| tree | faa13a0dd0175311eb75d3e02d773b2ad299edbc /Library | |
| parent | 191791cea3eb18d2cd7ef23bfd44a7b91950802f (diff) | |
| download | homebrew-405cbcdfb89db66f5b34b3f1815ba2448f873563.tar.bz2 | |
putty: use head block
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/putty.rb | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/Library/Formula/putty.rb b/Library/Formula/putty.rb index cf8d7c178..555636513 100644 --- a/Library/Formula/putty.rb +++ b/Library/Formula/putty.rb @@ -1,29 +1,25 @@ -require 'formula' +require "formula" class Putty < Formula - homepage 'http://www.chiark.greenend.org.uk/~sgtatham/putty/' - head 'svn://svn.tartarus.org/sgt/putty' - url 'http://the.earth.li/~sgtatham/putty/0.63/putty-0.63.tar.gz' - sha1 '195c0603ef61082b91276faa8d4246ea472bba3b' + homepage "http://www.chiark.greenend.org.uk/~sgtatham/putty/" + url "http://the.earth.li/~sgtatham/putty/0.63/putty-0.63.tar.gz" + sha1 "195c0603ef61082b91276faa8d4246ea472bba3b" - depends_on 'pkg-config' => :build - depends_on 'gtk+' => :optional - - if build.head? + head do + url "svn://svn.tartarus.org/sgt/putty" depends_on "halibut" => :build - depends_on :automake - depends_on :autoconf + depends_on "autoconf" => :build + depends_on "automake" => :build end - def install + depends_on "pkg-config" => :build + depends_on "gtk+" => :optional + def install if build.head? system "./mkfiles.pl" system "./mkauto.sh" - - cd "doc" do - system "make" - end + system "make", "-C", "doc" end system "./configure", "--prefix=#{prefix}", "--disable-gtktest" @@ -31,11 +27,11 @@ class Putty < Formula build_version = build.head? ? "svn-#{version}" : version system "make", "VER=-DRELEASE=#{build_version}" - bin.install %w{ putty puttytel pterm } if build.with? 'gtk+' + bin.install %w{ putty puttytel pterm } if build.with? "gtk+" bin.install %w{ plink pscp psftp puttygen } cd "doc" do - man1.install %w{ putty.1 puttytel.1 pterm.1 } if build.with? 'gtk+' + man1.install %w{ putty.1 puttytel.1 pterm.1 } if build.with? "gtk+" man1.install %w{ plink.1 pscp.1 psftp.1 puttygen.1 } end end |
