aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Formula/jp2a.rb20
1 files changed, 11 insertions, 9 deletions
diff --git a/Library/Formula/jp2a.rb b/Library/Formula/jp2a.rb
index ab693dc55..4755c9e19 100644
--- a/Library/Formula/jp2a.rb
+++ b/Library/Formula/jp2a.rb
@@ -1,19 +1,21 @@
-require 'formula'
-
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'
+ 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"
+
+ option "without-check", "Skip compile-time tests."
- depends_on 'jpeg'
+ depends_on "jpeg"
def install
- system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ system "./configure", "--disable-debug",
+ "--disable-dependency-tracking",
"--prefix=#{prefix}"
- system "make install"
+ system "make", "test" if build.with? "check"
+ system "make", "install"
end
test do
- system "#{bin}/jp2a", "-V"
+ system "#{bin}/jp2a", test_fixtures("test.jpg")
end
end