homebrew-core/Formula/oxipng.rb
2019-03-27 17:08:41 +08:00

23 lines
797 B
Ruby

class Oxipng < Formula
desc "Multithreaded PNG optimizer written in Rust"
homepage "https://github.com/shssoichiro/oxipng"
url "https://github.com/shssoichiro/oxipng/archive/v2.2.1.tar.gz"
sha256 "ee848766b989ed83964c0360eafc39e3434d017bd374dc7283b28e3d1f6533a8"
bottle do
cellar :any_skip_relocation
sha256 "d8f8e682147291929ef495846f8bd5c965b2618846e3f538767c1d58cefb1e6b" => :mojave
sha256 "9e0d074376b2d2a7e07268442e73290030f7e2b997e1b22f5578c780a181cd83" => :high_sierra
sha256 "eeaea2846f35f079899e7085efd0cffca1370062652f0ac4963631dafae5b9a5" => :sierra
end
depends_on "rust" => :build
def install
system "cargo", "install", "--root", prefix, "--path", "."
end
test do
system "#{bin}/oxipng", "--pretend", test_fixtures("test.png")
end
end