698c85b21e
The leptonica patch wasn't pulling properly from the Google Code repository, so it's been copied to a gist mirror. Fixes Homebrew/homebrew#8522. Closes Homebrew/homebrew#8525. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
23 lines
661 B
Ruby
23 lines
661 B
Ruby
require 'formula'
|
|
|
|
class Leptonica < Formula
|
|
url 'http://www.leptonica.org/source/leptonica-1.68.tar.gz'
|
|
homepage 'http://www.leptonica.org/'
|
|
md5 '5cd7092f9ff2ca7e3f3e73bfcd556403'
|
|
|
|
depends_on 'jpeg'
|
|
depends_on 'libtiff'
|
|
|
|
def patches
|
|
# Leptonica is missing an #include for PNG support
|
|
# Can be removed in 1.69
|
|
# http://code.google.com/p/leptonica/issues/detail?id=56
|
|
"https://raw.github.com/gist/1320510/b11d417326344202d8ff03ede8151c147ec2598d/zlib-include.patch"
|
|
end
|
|
|
|
def install
|
|
ENV.x11
|
|
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
|
system "make install"
|
|
end
|
|
end
|