blob: 4dbcddbeadfd046e7e1bd376a50361e6149f00b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
class Jpegoptim < Formula
homepage "https://github.com/tjko/jpegoptim"
url "https://github.com/tjko/jpegoptim/archive/RELEASE.1.4.1.tar.gz"
sha1 "07561b8a06806c4a2172a62e3f5e45b961353b2d"
head "https://github.com/tjko/jpegoptim.git"
bottle do
cellar :any
sha1 "dca2904e50276aa6ef58dbd0ee6abb909c2c179d" => :mavericks
sha1 "90e9948dc8dbed0d143315c38e83c57c225cefb3" => :mountain_lion
sha1 "9907f652fb2e72447ddbb192bd83988e382d8271" => :lion
end
depends_on "jpeg"
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
ENV.j1 # Install is not parallel-safe
system "make", "install"
end
test do
assert_match /OK/, shell_output("#{bin}/jpegoptim --noaction #{test_fixtures("test.jpg")}")
end
end
|