homebrew-core/Formula/leptonica.rb
Ted Pennings 4cd0935be7 Convert all 'def test' formulae to 'test do'
Closes Homebrew/homebrew#26942.
Closes Homebrew/homebrew#26946.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-02-24 19:54:02 -08:00

24 lines
614 B
Ruby

require 'formula'
class Leptonica < Formula
homepage 'http://www.leptonica.org/'
url 'http://www.leptonica.org/source/leptonica-1.69.tar.gz'
sha1 '91199f99d2e78b15b76ffa6fc4e86ee458a330e8'
depends_on :libpng => :recommended
depends_on 'jpeg' => :recommended
depends_on 'libtiff' => :optional
conflicts_with 'osxutils',
:because => "both leptonica and osxutils ship a `fileinfo` executable."
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
test do
system "#{bin}/yuvtest"
end
end