24 lines
810 B
Ruby
24 lines
810 B
Ruby
class Jpeg < Formula
|
|
desc "Image manipulation library"
|
|
homepage "http://www.ijg.org"
|
|
url "http://www.ijg.org/files/jpegsrc.v9c.tar.gz"
|
|
sha256 "1f3a3f610f57e88ff3f1f9db530c605f3949ee6e78002552e324d493cf086ad4"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "178200fd8aa50d5db22c5faa4ca403652d2bf912616c34dfbc6b035a456c2fc6" => :high_sierra
|
|
sha256 "8ecc3407d188472a7f775bb44314fff40f0e3b17a83da1666f3fa306d8fffeec" => :sierra
|
|
sha256 "931236302e58c53a9728dde5cb93a896b8a39b16d1f195c85381da04ea17c407" => :el_capitan
|
|
end
|
|
|
|
def install
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--disable-silent-rules",
|
|
"--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/djpeg", test_fixtures("test.jpg")
|
|
end
|
|
end
|