summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchim Gottinger <achim@gentoo.org>2001-11-06 13:41:47 +0000
committerAchim Gottinger <achim@gentoo.org>2001-11-06 13:41:47 +0000
commit26cc8d458f04493eef72e6a51c54bd4ee2ce5b87 (patch)
tree5abb941424cd109f13139565d7f9f15bf3053b8a
parentAnother header (diff)
downloadgentoo-2-26cc8d458f04493eef72e6a51c54bd4ee2ce5b87.tar.gz
gentoo-2-26cc8d458f04493eef72e6a51c54bd4ee2ce5b87.tar.bz2
gentoo-2-26cc8d458f04493eef72e6a51c54bd4ee2ce5b87.zip
New version
-rw-r--r--app-text/gocr/files/digest-gocr-0.3.41
-rw-r--r--app-text/gocr/files/gocr-0.3.4-gentoo.diff11
-rw-r--r--app-text/gocr/gocr-0.3.4.ebuild76
3 files changed, 88 insertions, 0 deletions
diff --git a/app-text/gocr/files/digest-gocr-0.3.4 b/app-text/gocr/files/digest-gocr-0.3.4
new file mode 100644
index 000000000000..4aecdc53ce78
--- /dev/null
+++ b/app-text/gocr/files/digest-gocr-0.3.4
@@ -0,0 +1 @@
+MD5 b78ac7d195742a665bb0ba71dd09aad2 gocr-0.3.4.tar.gz 634880
diff --git a/app-text/gocr/files/gocr-0.3.4-gentoo.diff b/app-text/gocr/files/gocr-0.3.4-gentoo.diff
new file mode 100644
index 000000000000..7766252ba643
--- /dev/null
+++ b/app-text/gocr/files/gocr-0.3.4-gentoo.diff
@@ -0,0 +1,11 @@
+--- gocr-0.3.4/configure.in.orig Wed Nov 28 12:35:53 2001
++++ gocr-0.3.4/configure.in Wed Nov 28 12:36:02 2001
+@@ -12,7 +12,7 @@
+ AC_CHECK_PROG(LATEX,latex,latex)
+ AC_CHECK_PROG(DVIPS,dvips,dvips)
+
+-CPPFLAGS=-I/usr/X11R6/include
++CPPFLAGS="-I/usr/X11R6/include -I/usr/include/pbm"
+ #LDFLAGS="-L/usr/X11R6/lib -lpbm -lpgm -lppm -lpnm"
+ LDFLAGS="-L/usr/X11R6/lib -L/usr/local/netpbm/lib"
+
diff --git a/app-text/gocr/gocr-0.3.4.ebuild b/app-text/gocr/gocr-0.3.4.ebuild
new file mode 100644
index 000000000000..b5877019ccff
--- /dev/null
+++ b/app-text/gocr/gocr-0.3.4.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2000 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Author Your Name <your email>
+# $Header: /var/cvsroot/gentoo-x86/app-text/gocr/gocr-0.3.4.ebuild,v 1.1 2001/11/06 13:41:47 achim Exp $
+
+A=${P}.tar.gz
+S=${WORKDIR}/${P}
+DESCRIPTION="Converts PNM to ASCII"
+SRC_URI="http://prdownloads.sourceforge.net/jocr/${A}"
+HOMEPAGE="http://altmark.nat.uni-magdeburg.de/~jschulen/ocr/"
+
+DEPEND="virtual/glibc
+ app-text/tetex
+ app-text/ghostscript
+ >=media-libs/netpbm-9.12-r1"
+
+RDEPEND="virtual/glibc
+ >=media-libs/netpbm-9.12-r1"
+
+src_unpack() {
+
+ unpack ${A}
+ patch -p0 < ${FILESDIR}/${P}-gentoo.diff
+ cd ${S}
+ autoconf
+ cd ${S}/doc
+ cp Makefile.in Makefile.orig
+ sed -e "s:\$(DVIPS) \$?:\$(DVIPS) -o \$(OCRDOC).ps \$?:" \
+ Makefile.orig > Makefile.in
+ cd ../bin
+ mv gocr.tcl gocr.orig
+ sed -e "s:\.\./examples:/usr/share/gocr/fonts:" \
+ gocr.orig > gocr.tcl
+ cd ../src
+ cp database.c database.orig
+ sed -e "s:\./db/:/usr/share/gocr/db/:" database.orig > database.c
+ cd ../examples
+ cp Makefile Makefile.orig
+ sed -e "s:polish.pbm man.pbm:polish.pbm:" Makefile.orig > Makefile
+
+}
+
+src_compile() {
+
+ try CFLAGS="$CFLAGS -I/usr/include/pbm" ./configure --prefix=/usr --host=${CHOST}
+ try make src frontend database
+ if [ "`use tex`" ]
+ then
+ try make doc
+ fi
+
+}
+
+src_install () {
+
+ dobin bin/gocr
+ exeinto /usr/bin
+ doexe bin/gocr.tcl
+ dolib.a src/libPgm2asc.a
+ insinto /usr/include
+ doins src/gocr.h
+ insinto /usr/share/gocr/db
+ doins db/*
+ doman man/man1/gocr.1
+ dodoc AUTHORS BUGS CREDITS HISTORY README* REMARK.txt REVIEW TODO gpl.html
+ docinto txt
+ dodoc doc/*.txt
+ if [ "`use tex`" ]
+ then
+ insinto /usr/share/gocr/db
+ docinto ps
+ dodoc doc/ocr.ps
+ fi
+
+}
+