aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/jp2a.rb
blob: b457164fc19f3c030295079be897c099734db45a (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
class Jp2a < Formula
  homepage "http://csl.sublevel3.org/jp2a/"
  url "https://downloads.sourceforge.net/project/jp2a/jp2a/1.0.6/jp2a-1.0.6.tar.gz"
  sha1 "8d08a7f9428632c02351452067828af215afe2cf"

  bottle do
    cellar :any
    sha1 "f6c1ccaac73b7a9e6c570a97f0285c2191b70aea" => :yosemite
    sha1 "5b9d74b016ee09b1f4e72079c34c2f0612927aeb" => :mavericks
    sha1 "2cad22009e62e20931d65d1b1661de5cad980bb2" => :mountain_lion
  end

  option "without-check", "Skip compile-time tests."

  depends_on "jpeg"

  def install
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make", "test" if build.with? "check"
    system "make", "install"
  end

  test do
    # the test fails if this is not set
    ENV["TERM"] = "xterm-256color"
    system "#{bin}/jp2a", test_fixtures("test.jpg")
  end
end