guetzli 1.0 (new formula)
Closes #11190. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
03e31b1ea4
commit
7065c85f57
1 changed files with 28 additions and 0 deletions
28
Formula/guetzli.rb
Normal file
28
Formula/guetzli.rb
Normal 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
|
Loading…
Reference in a new issue