aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/apngasm.rb
blob: a500de44fd60e628456d145c17ed9c3ba5e1dc1c (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
require "formula"

class Apngasm < Formula
  homepage "https://github.com/apngasm/apngasm"
  url "https://github.com/apngasm/apngasm/archive/3.1.3.tar.gz"
  sha1 "5968640a5610e5ab47ef8464e413e714d2ef64a5"

  bottle do
    cellar :any
    sha1 "5eb0b1a7c88a1196539add4e721cc30dd83f1697" => :mavericks
    sha1 "fc9b6c1e8910aca9282bee642bce50642ee6b976" => :mountain_lion
    sha1 "c568690023e0688e6b71cbe5dc9caab7e816420d" => :lion
  end

  depends_on "cmake" => :build
  depends_on "boost"
  depends_on "libpng"
  depends_on "lzlib"

  def install
    system "cmake", ".", *std_cmake_args
    system "make", "install"
    (share/'test').install "test/samples"
  end

  test do
    system "apngasm", "#{share}/test/samples/clock*.png"
  end
end