aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel G. Taylor2015-04-21 00:45:30 -0700
committerMike McQuaid2015-04-24 10:24:36 +0100
commite8ac953d8203ed62837e2bf289d0199770af7959 (patch)
tree449920141d09d3626e98aa3d074502365fc44136
parent7cfa33be67488991fd7d0c0194c0681e6b29fcba (diff)
downloadhomebrew-e8ac953d8203ed62837e2bf289d0199770af7959.tar.bz2
jpeg-archive 2.1.1 (new formula)
Closes #38888. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
-rw-r--r--Library/Formula/jpeg-archive.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/Library/Formula/jpeg-archive.rb b/Library/Formula/jpeg-archive.rb
new file mode 100644
index 000000000..ad81089eb
--- /dev/null
+++ b/Library/Formula/jpeg-archive.rb
@@ -0,0 +1,15 @@
+class JpegArchive < Formula
+ homepage "https://github.com/danielgtaylor/jpeg-archive"
+ url "https://github.com/danielgtaylor/jpeg-archive/archive/2.1.1.tar.gz"
+ sha256 "494534f5308f99743f11f3a7c151a8d5ca8a5f1f8b61ea119098511d401bc618"
+
+ 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