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
This commit is contained in:
parent
78d82376d1
commit
9d732bf701
1 changed files with 21 additions and 0 deletions
21
Formula/gocr.rb
Normal file
21
Formula/gocr.rb
Normal file
|
@ -0,0 +1,21 @@
|
|||
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
|
Loading…
Reference in a new issue