summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchim Gottinger <achim@gentoo.org>2001-04-28 11:59:27 +0000
committerAchim Gottinger <achim@gentoo.org>2001-04-28 11:59:27 +0000
commiteb102377ac24fd9cece11b6b2e61926ef98d8b2a (patch)
tree48a6df490cd6cb291c70b18d5f196d0f5c99789a /app-text/gocr
parent*** empty log message *** (diff)
downloadgentoo-2-eb102377ac24fd9cece11b6b2e61926ef98d8b2a.tar.gz
gentoo-2-eb102377ac24fd9cece11b6b2e61926ef98d8b2a.tar.bz2
gentoo-2-eb102377ac24fd9cece11b6b2e61926ef98d8b2a.zip
Added database generation and USE tex
Diffstat (limited to 'app-text/gocr')
-rw-r--r--app-text/gocr/files/digest-gocr-0.3.11
-rw-r--r--app-text/gocr/gocr-0.3.1.ebuild (renamed from app-text/gocr/gocr-0.3.1.build)25
2 files changed, 19 insertions, 7 deletions
diff --git a/app-text/gocr/files/digest-gocr-0.3.1 b/app-text/gocr/files/digest-gocr-0.3.1
new file mode 100644
index 000000000000..fb61b5cdac76
--- /dev/null
+++ b/app-text/gocr/files/digest-gocr-0.3.1
@@ -0,0 +1 @@
+MD5 38a7a1c36c4661a460e0ce9530af1d84 gocr-0.3.1.tar.gz
diff --git a/app-text/gocr/gocr-0.3.1.build b/app-text/gocr/gocr-0.3.1.ebuild
index 4839e0650b50..8954fb25bd9e 100644
--- a/app-text/gocr/gocr-0.3.1.build
+++ b/app-text/gocr/gocr-0.3.1.ebuild
@@ -1,7 +1,7 @@
# 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.1.build,v 1.2 2001/03/25 22:11:06 achim Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/gocr/gocr-0.3.1.ebuild,v 1.1 2001/04/28 11:59:27 achim Exp $
A=${P}.tar.gz
S=${WORKDIR}/${P}
@@ -28,6 +28,9 @@ src_unpack() {
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
@@ -37,7 +40,11 @@ src_unpack() {
src_compile() {
try ./configure --prefix=/usr --host=${CHOST}
- try make src frontend examples doc
+ try make src frontend database
+ if [ "`use tex`" ]
+ then
+ try make examples doc
+ fi
}
@@ -49,15 +56,19 @@ src_install () {
dolib.a src/libPgm2asc.a
insinto /usr/include
doins src/gocr.h
- insinto /usr/share/gocr/fonts
- doins examples/*.pbm
+ 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
-
- docinto ps
- dodoc doc/ocr.ps
+ if [ "`use tex`" ]
+ then
+ doins examples/*.pbm
+ insinto /usr/share/gocr/db
+ docinto ps
+ dodoc doc/ocr.ps
+ fi
}