Created
April 28, 2014 01:35
-
-
Save gordonmcshane/11359791 to your computer and use it in GitHub Desktop.
A head-only putty formula for brew
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Putty < Formula | |
homepage 'http://www.chiark.greenend.org.uk/~sgtatham/putty/' | |
head 'svn://svn.tartarus.org/sgt/putty', :using => :svn | |
depends_on 'pkg-config' => :build | |
depends_on "halibut" => :build | |
depends_on :automake | |
depends_on :autoconf | |
depends_on 'gtk+' => :optional | |
def install | |
system "./mkfiles.pl" | |
system "./mkauto.sh" | |
system "./configure", "--prefix=#{prefix}", "--disable-gtktest" | |
cd "doc" do | |
system "make" | |
end | |
system "make", "VER=-DRELEASE=#{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 } | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment