blob: 76198fef9c2aa1d2e4ad2e664ee4dd7af4e984cc (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/utrac/utrac-0.3.0.ebuild,v 1.1 2006/06/04 21:05:57 wschlich Exp $
DESCRIPTION="Universal Text Recognizer and Converter"
HOMEPAGE="http://utrac.sourceforge.net/"
SRC_URI="http://utrac.sourceforge.net/download/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
RDEPEND="virtual/libc"
DEPEND="${RDEPEND} sys-apps/sed"
src_unpack() {
unpack ${A}
cd ${S}
sed -i \
-e "s:^CFLAGS = .*$:CFLAGS = ${CFLAGS}:" \
-e "s:^PREFIX_PATH = .*$:PREFIX_PATH = ${DESTTREE}:" \
Makefile \
|| die "sed failed"
}
src_compile() {
emake || die "make failed"
}
src_install() {
dobin utrac
doman utrac.1
dodoc README CHANGES CREDITS
dodir ${DESTTREE}/share/utrac
dolib.a libutrac.a
insinto ${DESTTREE}/share/utrac
doins charsets.dat
}
|