/[gentoo-x86]/media-sound/speech-tools/speech-tools-1.2.3.ebuild
Gentoo

Contents of /media-sound/speech-tools/speech-tools-1.2.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Wed Mar 17 03:42:30 2004 UTC (16 years, 8 months ago) by eradicator
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Moving to app-accessibility/speech-tools

1 # Copyright 1999-2004 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/media-sound/speech-tools/speech-tools-1.2.3.ebuild,v 1.7 2004/03/01 03:01:11 eradicator Exp $
4
5 inherit eutils fixheadtails
6
7 MY_P=${P/-/_}
8 DESCRIPTION="Speech tools for Festival Text to Speech engine"
9 HOMEPAGE="http://www.cstr.ed.ac.uk/"
10 SRC_URI="http://www.cstr.ed.ac.uk/download/festival/1.4.3/${MY_P}-release.tar.gz"
11
12 LICENSE="FESTIVAL BSD as-is"
13 SLOT="0"
14 KEYWORDS="x86 ~ppc -sparc amd64"
15
16 RDEPEND="virtual/glibc"
17
18 S="${WORKDIR}/speech_tools"
19
20 src_unpack() {
21 unpack ${A}
22 cd ${S}
23 epatch ${FILESDIR}/${PN}-gcc3.3.diff
24 ht_fix_file config.guess
25 sed -i 's:-O3:$(CFLAGS):' base_class/Makefile
26 sed -i 's/-fno-implicit-templates //' config/compilers/gcc_defaults.mak
27 }
28
29 src_compile() {
30 econf || die
31 make || die
32 }
33
34 src_install() {
35 into /usr/lib/speech-tools
36
37 cd ${S}/bin
38 rm -f Makefile
39
40 dodir /usr/lib/speech-tools/share/testsuite
41 for file in *; do
42 dobin ${file}
43 dosed "s:${S}/testsuite/data:/usr/lib/speech-tools/share/testsuite:g" /usr/lib/speech-tools/bin/${file} testsuite/data
44 dosed "s:${S}/bin:/usr/lib/speech-tools/bin:g" /usr/lib/speech-tools/bin/${file}
45 dosed "s:${S}/main:/usr/lib/speech-tools/bin:g" /usr/lib/speech-tools/bin/${file}
46 dosed "s:${S}/lib:/usr/lib/speech-tools/lib:g" /usr/lib/speech-tools/bin/${file}
47 done
48
49 cd ${S}/lib
50 dolib.so libestbase.so.1.2.3.1
51 dosym /usr/lib/speech-tools/lib/libestbase.so.1.2.3.1 /usr/lib/speech-tools/lib/libestbase.so
52 dolib.so libeststring.so.1.2
53 dosym /usr/lib/speech-tools/lib/libeststring.so.1.2 /usr/lib/speech-tools/lib/libeststring.so
54 dolib.a libestbase.a
55 dolib.a libestools.a
56 dolib.a libeststring.a
57
58 insinto /usr/lib/speech-tools/lib/siod
59 cd ${S}/lib/siod
60 doins *
61 insinto /usr/share/doc/${PF}/example_data
62 cd ${S}/lib/example_data
63 doins *
64
65 cd ${S}
66 find config -print | cpio -pmd ${D}/usr/lib/speech-tools
67 find include -print | cpio -pmd ${D}/usr/lib/speech-tools
68
69 insinto /etc/env.d
70 doins ${FILESDIR}/58speech-tools
71
72 cd ${D}/
73
74 cd ${S}
75 dodoc README
76 dodoc INSTALL
77 cd ${S}/lib
78 dodoc cstrutt.dtd
79 }

  ViewVC Help
Powered by ViewVC 1.1.20