homebrew-core/Formula/epeg.rb

37 lines
1.2 KiB
Ruby
Raw Normal View History

class Epeg < Formula
desc "JPEG/JPG thumbnail scaling"
homepage "https://github.com/mattes/epeg"
url "https://github.com/mattes/epeg/archive/v0.9.1.042.tar.gz"
sha256 "644362f87605e92f1e1cc0c421867252e4402939aeb4b36ad7cb385cc57a137c"
head "https://github.com/mattes/epeg.git"
2014-12-07 07:08:41 +00:00
bottle do
cellar :any
2016-09-26 16:29:05 +00:00
sha256 "17be20c46c7c9253312469a158a2546685e5a1eceaa889179fc01b57f125fab7" => :sierra
2016-02-24 01:33:28 +00:00
sha256 "b2d3f25d28280107b503d31ebfdb59bf452fc117d027fa136934b621a922b0a4" => :el_capitan
2015-11-19 15:45:31 +00:00
sha256 "f7abbd3547174648e37bd74d73e5ec0a6e4f8391c97a1153d0ed63adc7b02193" => :yosemite
sha256 "617efb3a645d90f883921752c45d298178e26f535270c38fb46c44a46e3fcc9d" => :mavericks
sha256 "3caf1686250bbd6933e5c5e1cc03c79eeffff3877e07087549acd75334319547" => :mountain_lion
2014-12-07 07:08:41 +00:00
end
depends_on "automake" => :build
depends_on "jpeg"
depends_on "libexif"
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
test do
2016-11-17 17:46:40 +00:00
system "#{bin}/epeg", "--width=1",
"--height=1",
test_fixtures("test.jpg")
"out.jpg"
end
end