2014-10-09 10:44:09 +00:00
|
|
|
class Epeg < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "JPEG/JPG thumbnail scaling"
|
2014-10-09 10:44:09 +00:00
|
|
|
homepage "https://github.com/mattes/epeg"
|
|
|
|
url "https://github.com/mattes/epeg/archive/v0.9.1.042.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "644362f87605e92f1e1cc0c421867252e4402939aeb4b36ad7cb385cc57a137c"
|
2014-10-09 10:44:09 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2014-10-09 10:44:09 +00:00
|
|
|
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
|
|
|
|
system "epeg", "--width=1",
|
|
|
|
"--height=1",
|
|
|
|
test_fixtures("test.jpg")
|
2015-08-03 12:55:31 +00:00
|
|
|
"out.jpg"
|
2014-10-09 10:44:09 +00:00
|
|
|
end
|
|
|
|
end
|