blob: 4209af551b3f6051f1bd61f8be728561cef362e8 (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 | class Gifsicle < Formula
  homepage "http://www.lcdf.org/gifsicle/"
  url "http://www.lcdf.org/gifsicle/gifsicle-1.87.tar.gz"
  sha1 "0c22ba0fb0f5d005bd3bb579c2e07620fdd3ca5f"
  bottle do
    cellar :any
    sha1 "d618aaf92098835824b8dee876fa1953fc4b8ecb" => :yosemite
    sha1 "e4fd24422757c63836e9fa608ac00d9d5345b6c8" => :mavericks
    sha1 "c0fa1e99faced73ee843fd7e0936ebd0a3d2e37b" => :mountain_lion
  end
  head do
    url "https://github.com/kohler/gifsicle.git"
    depends_on "autoconf" => :build
    depends_on "automake" => :build
  end
  option "with-x11", "Install gifview"
  depends_on :x11 => :optional
  def install
    args = %W[
      --disable-dependency-tracking
      --prefix=#{prefix}
    ]
    args << "--disable-gifview" if build.without? "x11"
    system "./bootstrap.sh" if build.head?
    system "./configure", *args
    system "make", "install"
  end
  test do
    system "#{bin}/gifsicle", "--info", test_fixtures("test.gif")
  end
end
 |