aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorPaul Traylor2010-09-09 21:06:12 -0700
committerAdam Vandenberg2010-11-06 18:13:22 -0700
commit488c702d1194187134c567cb796758f7228ec832 (patch)
tree0c641ae8f04de96b549b7e43eb38ef7fa52dd867 /Library/Formula
parent2688f237b7d2ac65e184450b1ee56383148391e7 (diff)
downloadhomebrew-488c702d1194187134c567cb796758f7228ec832.tar.bz2
New Formula: hilite
Signed-off-by: Adam Vandenberg <flangy@gmail.com> * Added test.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/hilite.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Formula/hilite.rb b/Library/Formula/hilite.rb
new file mode 100644
index 000000000..044298c14
--- /dev/null
+++ b/Library/Formula/hilite.rb
@@ -0,0 +1,17 @@
+require 'formula'
+
+class Hilite <Formula
+ url 'http://downloads.sourceforge.net/project/hilite/hilite/1.5/hilite.c'
+ version '1.5'
+ homepage 'http://sourceforge.net/projects/hilite/'
+ md5 '0214a3ef553cf4cf1e41f9c3bf93ca83'
+
+ def install
+ system "#{ENV.cc} #{ENV.cflags} hilite.c -o hilite"
+ bin.install 'hilite'
+ end
+
+ def test
+ `hilite bash -c "echo 'stderr in red' >&2"`
+ end
+end