aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Kersey2010-07-02 14:19:54 -0700
committerAdam Vandenberg2010-07-02 19:18:46 -0700
commit6cbc5f1d26b97e4427b769207413d2930bf9c30d (patch)
treeca6b232acbb2e65b9935d69a44cdb0c96e3d0574
parent5c304e8e6c34fde6360eb87ce7a9ee42c7c200f0 (diff)
downloadhomebrew-6cbc5f1d26b97e4427b769207413d2930bf9c30d.tar.bz2
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
-rw-r--r--Library/Formula/gocr.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/Library/Formula/gocr.rb b/Library/Formula/gocr.rb
new file mode 100644
index 000000000..aadc45c53
--- /dev/null
+++ b/Library/Formula/gocr.rb
@@ -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