diff options
| author | Gordon McShane | 2014-04-28 19:12:36 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2014-04-28 20:23:59 -0700 |
| commit | 9b78b1bbc6190069ba7f6c308ed568268cf4d554 (patch) | |
| tree | b7ec2967a80fe84a4582e09be6aa50d44a427d06 /Library/Formula | |
| parent | 5670a850470b7abe64533b21acb3d5d9752b8f3e (diff) | |
| download | homebrew-9b78b1bbc6190069ba7f6c308ed568268cf4d554.tar.bz2 | |
putty: Add build from svn for --HEAD
Closes #28819.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/putty.rb | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/Library/Formula/putty.rb b/Library/Formula/putty.rb index 7afb5d78e..6b8f7aa22 100644 --- a/Library/Formula/putty.rb +++ b/Library/Formula/putty.rb @@ -4,19 +4,36 @@ 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' sha1 '195c0603ef61082b91276faa8d4246ea472bba3b' + head 'svn://svn.tartarus.org/sgt/putty', :using => :svn depends_on 'pkg-config' => :build depends_on 'gtk+' => :optional + if build.head? + depends_on "halibut" => :build + depends_on :automake + depends_on :autoconf + end + def install - cd "unix" do - system "./configure", "--prefix=#{prefix}", "--disable-gtktest" - system "make", "VER=-DRELEASE=#{version}" - bin.install %w{ putty puttytel pterm } if build.with? 'gtk+' - bin.install %w{ plink pscp psftp puttygen } + if build.head? + system "./mkfiles.pl" + system "./mkauto.sh" + + cd "doc" do + system "make" + end end + system "./configure", "--prefix=#{prefix}", "--disable-gtktest" + + 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{ plink pscp psftp puttygen } + cd "doc" do man1.install %w{ putty.1 puttytel.1 pterm.1 } if build.with? 'gtk+' man1.install %w{ plink.1 pscp.1 psftp.1 puttygen.1 } |
