homebrew-core/Formula/gocr.rb
Tim Kersey 9d732bf701 New Formula: GOCR
GOCR is an OCR (Optical Character Recognition) program, developed under the
GNU Public License. It converts scanned images of text back to text files.
Joerg Schulenburg started the program, and now leads a team of developers.
GOCR can be used with different front-ends, which makes it very easy to port
to different OSes and architectures. It can open many different image formats,
and its quality have been improving in a daily basis.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>

* Fixed man install path
2010-07-02 19:18:46 -07:00

21 lines
559 B
Ruby

require 'formula'
class Gocr <Formula
url 'http://www-e.uni-magdeburg.de/jschulen/ocr/gocr-0.48.tar.gz'
homepage 'http://jocr.sourceforge.net/'
md5 '9882ba9a93fcb18ab704a10da80c228c'
aka :jocr
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
# --mandir doesn't work correctly; fix broken Makefile
inreplace "man/Makefile" do |s|
s.change_make_var! 'mandir', '/share/man'
end
system "make install"
end
end