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
|
|
|
homepage 'http://sourceforge.net/projects/hilite/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/hilite/hilite/1.5/hilite.c'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '96d551f1aae966d901e12076b59efd3e350e4192'
|
2010-09-10 04:06:12 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "#{ENV.cc} #{ENV.cflags} hilite.c -o hilite"
|
|
|
|
bin.install 'hilite'
|
|
|
|
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
|