2011-03-10 05:11:03 +00:00
|
|
|
class Hilite < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "CLI tool that runs a command and highlights STDERR output"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://sourceforge.net/projects/hilite/"
|
|
|
|
url "https://downloads.sourceforge.net/project/hilite/hilite/1.5/hilite.c"
|
|
|
|
sha256 "e15bdff2605e8d23832d6828a62194ca26dedab691c9d75df2877468c2f6aaeb"
|
2010-09-10 04:06:12 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "#{ENV.cc} #{ENV.cflags} hilite.c -o hilite"
|
2015-08-03 12:55:31 +00:00
|
|
|
bin.install "hilite"
|
2010-09-10 04:06:12 +00:00
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2012-05-15 21:36:45 +00:00
|
|
|
system "#{bin}/hilite", "bash", "-c", "echo 'stderr in red' >&2"
|
2010-09-10 04:06:12 +00:00
|
|
|
end
|
|
|
|
end
|