homebrew-core/Formula/tidy-html5.rb
2018-08-22 11:58:24 +02:00

30 lines
1.1 KiB
Ruby

class TidyHtml5 < Formula
desc "Granddaddy of HTML tools, with support for modern standards"
homepage "https://www.html-tidy.org/"
url "https://github.com/htacg/tidy-html5/archive/5.6.0.tar.gz"
sha256 "08a63bba3d9e7618d1570b4ecd6a7daa83c8e18a41c82455b6308bc11fe34958"
head "https://github.com/htacg/tidy-html5.git", :branch => "next"
bottle do
cellar :any
sha256 "bd3ca7dc82a913c8576716cbcc957260251132f6dd7b8c526c9ef0c4674faf0f" => :mojave
sha256 "af9633f1578980fe3d4351c3d71b4b83cc79f814d87310e4b7d05830c53c9621" => :high_sierra
sha256 "6c8f843d25d6964b18d4c2fa15aaf2606b36decbbe65c31b38a7982e499a9d28" => :sierra
sha256 "48416711a2f1a080e9eae1ecba30773ee48eae98181e25c6ae5ace07cb7ac8ee" => :el_capitan
end
depends_on "cmake" => :build
def install
cd "build/cmake"
system "cmake", "../..", *std_cmake_args
system "make"
system "make", "install"
end
test do
output = pipe_output(bin/"tidy -q", "<!doctype html><title></title>")
assert_match /^<!DOCTYPE html>/, output
assert_match /HTML Tidy for HTML5/, output
end
end