homebrew-core/Formula/hilite.rb
Jack Nagel caa5dbe6ad hilite: use full path in test
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-06 01:07:46 -05:00

17 lines
407 B
Ruby

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
`#{bin}/hilite bash -c "echo 'stderr in red' >&2"`
end
end