homebrew-core/Formula/htmlcleaner.rb

19 lines
571 B
Ruby
Raw Normal View History

2014-09-22 01:09:35 +00:00
require "formula"
class Htmlcleaner < Formula
2014-09-22 01:09:35 +00:00
homepage "http://htmlcleaner.sourceforge.net/index.php"
url "https://downloads.sourceforge.net/project/htmlcleaner/htmlcleaner/htmlcleaner%20v2.9/htmlcleaner-2.9.zip"
sha1 "62444799192574d47d3264a48518237685e05667"
def install
libexec.install "htmlcleaner-#{version}.jar"
bin.write_jar_script libexec/"htmlcleaner-#{version}.jar", "htmlcleaner"
end
test do
path = testpath/"index.html"
path.write "<html>"
2014-05-04 19:12:41 +00:00
assert shell_output("#{bin}/htmlcleaner src=#{path}").include?("</html>")
end
end