homebrew-core/Formula/vnu.rb
Igor Kapkov 9c30456ee5 vnu 18.11.5
Closes #33804.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
2018-11-06 08:28:23 +01:00

30 lines
721 B
Ruby

class Vnu < Formula
desc "Nu Markup Checker: command-line and server HTML validator"
homepage "https://validator.github.io/validator/"
url "https://github.com/validator/validator/releases/download/18.11.5/vnu.jar_18.11.5.zip"
sha256 "b9785a3ab51671509c8d418cc84298b1389ca2d82107aa0537544090a7c51862"
version_scheme 1
bottle :unneeded
depends_on :java => "1.8+"
def install
libexec.install "vnu.jar"
bin.write_jar_script libexec/"vnu.jar", "vnu"
end
test do
(testpath/"index.html").write <<~EOS
<!DOCTYPE html>
<html>
<head>
<title>hi</title>
</head>
<body>
</body>
</html>
EOS
system bin/"vnu", testpath/"index.html"
end
end