homebrew-core/Formula/epeg.rb
Alex Dunn 2b511fb411 epeg 0.9.2
Closes #8079.

Signed-off-by: Tomasz Pajor <tomek@polishgeeks.com>
2016-12-21 11:11:46 +01:00

36 lines
1.3 KiB
Ruby

class Epeg < Formula
desc "JPEG/JPG thumbnail scaling"
homepage "https://github.com/mattes/epeg"
url "https://github.com/mattes/epeg/archive/v0.9.2.tar.gz"
sha256 "f8285b94dd87fdc67aca119da9fc7322ed6902961086142f345a39eb6e0c4e29"
head "https://github.com/mattes/epeg.git"
bottle do
cellar :any
sha256 "17be20c46c7c9253312469a158a2546685e5a1eceaa889179fc01b57f125fab7" => :sierra
sha256 "b2d3f25d28280107b503d31ebfdb59bf452fc117d027fa136934b621a922b0a4" => :el_capitan
sha256 "f7abbd3547174648e37bd74d73e5ec0a6e4f8391c97a1153d0ed63adc7b02193" => :yosemite
sha256 "617efb3a645d90f883921752c45d298178e26f535270c38fb46c44a46e3fcc9d" => :mavericks
sha256 "3caf1686250bbd6933e5c5e1cc03c79eeffff3877e07087549acd75334319547" => :mountain_lion
end
depends_on "automake" => :build
depends_on "autoconf" => :build
depends_on "libtool" => :build
depends_on "jpeg"
depends_on "libexif"
def install
system "./autogen.sh", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
test do
system "#{bin}/epeg", "--width=1", "--height=1", test_fixtures("test.jpg"), "out.jpg"
assert File.exist? testpath/"out.jpg"
end
end