2011-10-03 15:47:27 +00:00
|
|
|
class Jp2a < Formula
|
2015-01-12 14:47:59 +00:00
|
|
|
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"
|
|
|
|
|
2015-01-12 15:03:48 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "f6c1ccaac73b7a9e6c570a97f0285c2191b70aea" => :yosemite
|
|
|
|
sha1 "5b9d74b016ee09b1f4e72079c34c2f0612927aeb" => :mavericks
|
|
|
|
sha1 "2cad22009e62e20931d65d1b1661de5cad980bb2" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-01-12 14:47:59 +00:00
|
|
|
option "without-check", "Skip compile-time tests."
|
2011-10-03 15:47:27 +00:00
|
|
|
|
2015-01-12 14:47:59 +00:00
|
|
|
depends_on "jpeg"
|
2011-10-03 15:47:27 +00:00
|
|
|
|
|
|
|
def install
|
2015-01-12 14:47:59 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
2011-10-03 15:47:27 +00:00
|
|
|
"--prefix=#{prefix}"
|
2015-01-12 14:47:59 +00:00
|
|
|
system "make", "test" if build.with? "check"
|
|
|
|
system "make", "install"
|
2011-10-03 15:47:27 +00:00
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2015-01-12 22:46:57 +00:00
|
|
|
# the test fails if this is not set
|
|
|
|
ENV["TERM"] = "xterm-256color"
|
2015-01-12 14:47:59 +00:00
|
|
|
system "#{bin}/jp2a", test_fixtures("test.jpg")
|
2011-10-03 15:47:27 +00:00
|
|
|
end
|
|
|
|
end
|