Skip to content

Instantly share code, notes, and snippets.

@gordonmcshane
Created April 28, 2014 01:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gordonmcshane/11359791 to your computer and use it in GitHub Desktop.
Save gordonmcshane/11359791 to your computer and use it in GitHub Desktop.
A head-only putty formula for brew
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