blob: 4a3c7e32d63892ef6c5b4e177c3e1ad7889a53aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/gocr/gocr-0.3.6-r2.ebuild,v 1.11 2003/02/13 09:37:56 vapier Exp $
DESCRIPTION="Converts PNM to ASCII"
SRC_URI="mirror://sourceforge/jocr/${P}.tar.gz"
HOMEPAGE="http://jocr.sourceforge.net/"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 sparc"
IUSE="tetex"
RDEPEND="=media-libs/netpbm-9.12*"
DEPEND="${RDEPEND}
app-text/tetex
app-text/ghostscript
tetex? ( >=tetex-1.0.7-r10
>=transfig-3.2.3d-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/:${D}/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() {
addwrite "/usr/share/texmf/fonts/pk"
addwrite "/usr/share/texmf/ls-R"
econf
make || die
make src frontend database || die
if [ `use tetex` ] ; then
make examples || die
fi
}
src_install() {
addwrite "/usr/share/texmf"
make DESTDIR=${D} install || die
}
|