Skip to content

Commit

Permalink
tidy-html5 4.9.26
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#39010.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
rstacruz authored and MikeMcQuaid committed Apr 27, 2015
1 parent 9c0c896 commit a75c4f4
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Formula/tidy-html5.rb
@@ -0,0 +1,20 @@
class TidyHtml5 < Formula
homepage "http://www.html-tidy.org/"
url "https://github.com/htacg/tidy-html5/archive/4.9.26.tar.gz"
sha256 "28674745db53b6ef1aa4b8466e6e231915dcd596672ec40515d0ab53ee0c33f6"

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

0 comments on commit a75c4f4

Please sign in to comment.