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.9.0.tar.gz" sha256 "04190e3269f64499c2383d5d31ec06790d3ac83a835cb7764176c658622f9252" head "https://github.com/RazrFalcon/svgcleaner.git" bottle do cellar :any_skip_relocation sha256 "15ddb0a036c475fb50aea4d0e3e1bbc9f2cf72e197aafe4ed95e213093af2e78" => :sierra sha256 "f54c2e895dd670200768356d8bd8208e3b84a5927e7d1c20fef06dc5e7a5aede" => :el_capitan sha256 "daad56eafd53428772d394dc84694de182f18b6720e2c74f7f17567acaabb877" => :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