guetzli 1.0 (new formula)

Closes #11190.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Florian Kistner 2017-03-16 18:40:52 -04:00 committed by FX Coudert
parent 03e31b1ea4
commit 7065c85f57

28
Formula/guetzli.rb Normal file
View file

@ -0,0 +1,28 @@
class Guetzli < Formula
desc "Perceptual JPEG encoder"
homepage "https://github.com/google/guetzli"
url "https://github.com/google/guetzli/archive/v1.0.tar.gz"
sha256 "9766353d4bcfb9ea1c4018770d23a321986cdf1544d0805d14361686d7592c92"
head "https://github.com/google/guetzli.git"
depends_on "libpng"
depends_on "gflags"
# Linker fails with atom not found in symbolIndex on Yosemite
depends_on :macos => :el_capitan
resource "test_image" do
url "https://github.com/google/guetzli/releases/download/v1.0/bees.png"
sha256 "2c1784bf4efb90c57f00a3ab4898ac8ec4784c60d7a0f70d2ba2c00af910520b"
end
def install
system "make"
bin.install "bin/Release/guetzli"
end
test do
resource("test_image").stage { system "#{bin}/guetzli", "bees.png", "bees.jpg" }
end
end