blob: 730c79bc4b2a4022731462020c24dd83e19d39ba (
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-accessibility/speech-tools/speech-tools-1.2.3.ebuild,v 1.2 2004/03/17 04:05:42 eradicator Exp $
inherit eutils fixheadtails
MY_P=${P/-/_}
DESCRIPTION="Speech tools for Festival Text to Speech engine"
HOMEPAGE="http://www.cstr.ed.ac.uk/"
SRC_URI="http://www.cstr.ed.ac.uk/download/festival/1.4.3/${MY_P}-release.tar.gz"
LICENSE="FESTIVAL BSD as-is"
SLOT="0"
KEYWORDS="x86 ~ppc -sparc amd64"
RDEPEND="virtual/glibc"
S="${WORKDIR}/speech_tools"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${PN}-gcc3.3.diff
ht_fix_file config.guess
sed -i 's:-O3:$(CFLAGS):' base_class/Makefile
sed -i 's/-fno-implicit-templates //' config/compilers/gcc_defaults.mak
}
src_install() {
into /usr/lib/speech-tools
cd ${S}/bin
rm -f Makefile
dodir /usr/lib/speech-tools/share/testsuite
for file in *; do
dobin ${file}
dosed "s:${S}/testsuite/data:/usr/lib/speech-tools/share/testsuite:g" /usr/lib/speech-tools/bin/${file} testsuite/data
dosed "s:${S}/bin:/usr/lib/speech-tools/bin:g" /usr/lib/speech-tools/bin/${file}
dosed "s:${S}/main:/usr/lib/speech-tools/bin:g" /usr/lib/speech-tools/bin/${file}
dosed "s:${S}/lib:/usr/lib/speech-tools/lib:g" /usr/lib/speech-tools/bin/${file}
done
cd ${S}/lib
dolib.so libestbase.so.1.2.3.1
dosym /usr/lib/speech-tools/lib/libestbase.so.1.2.3.1 /usr/lib/speech-tools/lib/libestbase.so
dolib.so libeststring.so.1.2
dosym /usr/lib/speech-tools/lib/libeststring.so.1.2 /usr/lib/speech-tools/lib/libeststring.so
dolib.a libestbase.a
dolib.a libestools.a
dolib.a libeststring.a
insinto /usr/lib/speech-tools/lib/siod
cd ${S}/lib/siod
doins *
insinto /usr/share/doc/${PF}/example_data
cd ${S}/lib/example_data
doins *
cd ${S}
find config -print | cpio -pmd ${D}/usr/lib/speech-tools
find include -print | cpio -pmd ${D}/usr/lib/speech-tools
insinto /etc/env.d
doins ${FILESDIR}/58speech-tools
cd ${D}
cd ${S}
dodoc README
dodoc INSTALL
cd ${S}/lib
dodoc cstrutt.dtd
}
|