2015-04-24 19:24:57 +00:00
|
|
|
class TidyHtml5 < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Granddaddy of HTML tools, with support for modern standards"
|
2015-04-24 19:24:57 +00:00
|
|
|
homepage "http://www.html-tidy.org/"
|
2015-06-14 01:02:02 +00:00
|
|
|
url "https://github.com/htacg/tidy-html5/archive/4.9.35.tar.gz"
|
|
|
|
sha256 "d4309a094627efdb184772df0b4ea22e8cd01c4704b56721300951d6f04d94b3"
|
2015-04-24 19:24:57 +00:00
|
|
|
|
2015-04-26 08:58:10 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-06-14 01:56:59 +00:00
|
|
|
sha256 "abf02d8fef99158cfc1ed0d0d1b62cccb8739e3aeb9b36fcfe5c4605423b5438" => :yosemite
|
|
|
|
sha256 "fac7e1a2a9bc6e567417b9d47d63bf68c46aa05937d051ff79a9e11a5c1e393f" => :mavericks
|
|
|
|
sha256 "8b255c26049e12deca58ce8d386567f2aef061f606da4fe0161d8a4278c4718d" => :mountain_lion
|
2015-04-26 08:58:10 +00:00
|
|
|
end
|
|
|
|
|
2015-04-24 19:24:57 +00:00
|
|
|
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/"tidy5 -q", "<!doctype html><title></title>")
|
|
|
|
assert_match /^<!DOCTYPE html>/, output
|
|
|
|
assert_match /HTML Tidy for HTML5/, output
|
|
|
|
end
|
|
|
|
end
|