homebrew-core/Formula/linklint.rb

21 lines
508 B
Ruby

class Linklint < Formula
desc "Link checker and web site maintenance tool"
homepage "http://linklint.org"
url "http://linklint.org/download/linklint-2.3.5.tar.gz"
sha256 "ecaee456a3c2d6a3bd18a580d6b09b6b7b825df3e59f900270fe3f84ec3ac9c7"
bottle :unneeded
def install
mv "READ_ME.txt", "README"
doc.install "README"
bin.install "linklint-#{version}" => "linklint"
end
test do
(testpath/"index.html").write('<a href="/">Home</a>')
system "#{bin}/linklint", "/"
end
end