2010-09-10 04:06:12 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Hilite < Formula
|
2010-09-10 04:06:12 +00:00
|
|
|
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
|
2012-05-06 05:52:46 +00:00
|
|
|
`#{bin}/hilite bash -c "echo 'stderr in red' >&2"`
|
2010-09-10 04:06:12 +00:00
|
|
|
end
|
|
|
|
end
|