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
|
|
|
|
sha1 "a12a4553bd78bff070f01be5d3e7062372383e31" => :yosemite
|
|
|
|
sha1 "ce665a144c3c355ae745067e686465f1f6dfafc3" => :mavericks
|
|
|
|
sha1 "24ca70477748c42a71a31df9facc1b21a400c1e1" => :mountain_lion
|
|
|
|
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
|