New formula: vnu 20141013
Closes Homebrew/homebrew#34177. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
ea4fc58b00
commit
02ee1429f0
1 changed files with 29 additions and 0 deletions
29
Formula/vnu.rb
Normal file
29
Formula/vnu.rb
Normal file
|
@ -0,0 +1,29 @@
|
|||
require "formula"
|
||||
|
||||
class Vnu < Formula
|
||||
homepage "https://validator.github.io/validator/"
|
||||
url "https://github.com/validator/validator/releases/download/20141006/vnu-20141013.jar.zip"
|
||||
sha1 "48bfcb41e6faf9130c5f1698497e0ec15ddfd657"
|
||||
version "20141013"
|
||||
|
||||
def install
|
||||
libexec.install "vnu.jar"
|
||||
bin.write_jar_script libexec/"vnu.jar", "vnu"
|
||||
end
|
||||
|
||||
test do
|
||||
path = testpath/"index.html"
|
||||
path.write <<-EOS
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>hi</title>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
||||
EOS
|
||||
|
||||
system bin/"vnu", path
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue