homebrew-core/Formula/jp2a.rb
Baptiste Fontaine 705b09c2d4 jp2a: TERM env variable defined in test
Closes Homebrew/homebrew#35792.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-01-13 10:58:04 +00:00

30 lines
908 B
Ruby

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