29 lines
1,006 B
Ruby
29 lines
1,006 B
Ruby
class TidyHtml5 < Formula
|
|
desc "Granddaddy of HTML tools, with support for modern standards"
|
|
homepage "http://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 "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
|