From ef0f9b986e833ff9580bb434f001e9b3514bf903 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 22 May 2009 00:24:53 +0100 Subject: [PATCH] Ack formula --- Formula/ack.rb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Formula/ack.rb diff --git a/Formula/ack.rb b/Formula/ack.rb new file mode 100644 index 0000000000..d2dfc6793c --- /dev/null +++ b/Formula/ack.rb @@ -0,0 +1,24 @@ +$:.unshift "#{File.dirname __FILE__}/../Cellar/homebrew" #rubysucks +require 'brewkit' +require 'fileutils' + +homepage='http://betterthangrep.com/' + +class UncompressedFormula < Formula + def initialize + @name='ack' + @version='1.88' + @url='http://ack.googlecode.com/svn/tags/1.88/ack' + @md5='8009a13ab0fc66047bea0ea2ad89419c' + end + + def uncompress path + path.dirname + end +end + +UncompressedFormula.new.brew do |prefix| + bin=prefix+'bin' + FileUtils.mkpath bin + FileUtils.cp 'ack', bin +end \ No newline at end of file