aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-10-24 13:19:18 -0700
committerAdam Vandenberg2010-10-24 13:19:18 -0700
commit8e59849e4ce17463cd7100bae4bb376347eab438 (patch)
treeb369d30a02c4e17021bf8e444c745a2656292779 /Library
parent45b918dd6db97e9e8a56d7689d75037591adeb6d (diff)
downloadhomebrew-8e59849e4ce17463cd7100bae4bb376347eab438.tar.bz2
Add agrep - 'approximate grep'.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/agrep.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/Library/Formula/agrep.rb b/Library/Formula/agrep.rb
new file mode 100644
index 000000000..14136d668
--- /dev/null
+++ b/Library/Formula/agrep.rb
@@ -0,0 +1,19 @@
+require 'formula'
+
+class Agrep <Formula
+ url 'ftp://ftp.cs.arizona.edu/agrep/agrep-2.04.tar.Z'
+ version '2.04'
+ homepage 'http://en.wikipedia.org/wiki/Agrep'
+ md5 'abc645404d3926a57c3f5e86a6e89ee9'
+
+ def install
+ inreplace "Makefile" do |s|
+ s.change_make_var! "CFLAGS", ENV.cflags
+ end
+
+ system "make"
+
+ bin.install "agrep"
+ man1.install "agrep.1"
+ end
+end