2015-04-21 07:45:30 +00:00
|
|
|
class JpegArchive < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Utilities for archiving JPEGs for long term storage"
|
2015-04-21 07:45:30 +00:00
|
|
|
homepage "https://github.com/danielgtaylor/jpeg-archive"
|
|
|
|
url "https://github.com/danielgtaylor/jpeg-archive/archive/2.1.1.tar.gz"
|
|
|
|
sha256 "494534f5308f99743f11f3a7c151a8d5ca8a5f1f8b61ea119098511d401bc618"
|
|
|
|
|
2015-04-23 22:19:34 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha256 "09a1ace83762b6f6f03eef2d86508d2c318f92657ec4ee6b763f2112003f02c2" => :yosemite
|
|
|
|
sha256 "2edb74f1692d640928729274949d673740dc08963e7abc99bb249da1bc1a2923" => :mavericks
|
|
|
|
sha256 "d28abe9b06370bce61d4520aa0c7943fc61eb70a847a01a3c541d211b542a22d" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-04-21 07:45:30 +00:00
|
|
|
depends_on "mozjpeg"
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "make", "install", "PREFIX=#{prefix}"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/jpeg-recompress", test_fixtures("test.jpg"), "output.jpg"
|
|
|
|
end
|
|
|
|
end
|