aboutsummaryrefslogtreecommitdiffstats
path: root/Formula
diff options
context:
space:
mode:
authorMax Howell2009-05-22 00:24:53 +0100
committerMax Howell2009-05-22 12:21:02 +0100
commitef0f9b986e833ff9580bb434f001e9b3514bf903 (patch)
tree7a60dce70a1d9c0bb8a16fddfa032173a2609f02 /Formula
parent8faa3a89206fed8a7eef26b74de9ca21476020d4 (diff)
downloadbrew-ef0f9b986e833ff9580bb434f001e9b3514bf903.tar.bz2
Ack formula
Diffstat (limited to 'Formula')
-rw-r--r--Formula/ack.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/Formula/ack.rb b/Formula/ack.rb
new file mode 100644
index 000000000..d2dfc6793
--- /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