class Svgcleaner < Formula desc "Cleans your SVG files by removing unnecessary data." homepage "https://github.com/RazrFalcon/svgcleaner" url "https://github.com/RazrFalcon/svgcleaner/archive/v0.7.1.tar.gz" sha256 "6f79cbe0776dcd00404b26951657ca59b66212de95103e9c68842bf7a8df1875" head "https://github.com/RazrFalcon/svgcleaner.git" bottle do cellar :any_skip_relocation sha256 "75b973c61c68a51293d51c5def7f165de1f191dc1d8d2141e33d10d2335bb3d3" => :sierra sha256 "1bd89bd68e7a8e326b8c3375b44d41522102f16266ad44e1b1ec623875f07559" => :el_capitan sha256 "fe4032b492fae5f2dc4f509d10f9f916c67c2c30d6c3b58cfdd3c20664cd76ff" => :yosemite end depends_on "rust" => :build def install system "cargo", "build", "--release" bin.install "target/release/svgcleaner" end test do (testpath/"in.svg").write <<-EOS.undent EOS system "#{bin}/svgcleaner", "in.svg", "out.svg" end end