Skip to content

Commit

Permalink
jp2a: real test added
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#35785.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
bfontaine authored and MikeMcQuaid committed Jan 12, 2015
1 parent d40c671 commit ba18ee8
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions 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

0 comments on commit ba18ee8

Please sign in to comment.