1 |
neurogeek 10/06/30 15:09:12 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: festival-2.0.95_beta.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
(Portage version: 2.2_rc67/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.90 app-accessibility/festival/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-accessibility/festival/ChangeLog?rev=1.90&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-accessibility/festival/ChangeLog?rev=1.90&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-accessibility/festival/ChangeLog?r1=1.89&r2=1.90 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-accessibility/festival/ChangeLog,v |
19 |
retrieving revision 1.89 |
20 |
retrieving revision 1.90 |
21 |
diff -u -r1.89 -r1.90 |
22 |
--- ChangeLog 30 Jun 2010 14:32:59 -0000 1.89 |
23 |
+++ ChangeLog 30 Jun 2010 15:09:12 -0000 1.90 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for app-accessibility/festival |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/app-accessibility/festival/ChangeLog,v 1.89 2010/06/30 14:32:59 neurogeek Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-accessibility/festival/ChangeLog,v 1.90 2010/06/30 15:09:12 neurogeek Exp $ |
29 |
+ |
30 |
+*festival-2.0.95_beta (30 Jun 2010) |
31 |
+ |
32 |
+ 30 Jun 2010; Jesus Rivero <neurogeek@g.o> |
33 |
+ +festival-2.0.95_beta.ebuild, +files/festival-2.0.95_beta-init-scm.patch: |
34 |
+ Version bump. |
35 |
|
36 |
30 Jun 2010; Jesus Rivero <neurogeek@g.o> |
37 |
festival-1.96_beta.ebuild, festival-1.96_beta-r1.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 app-accessibility/festival/festival-2.0.95_beta.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-accessibility/festival/festival-2.0.95_beta.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-accessibility/festival/festival-2.0.95_beta.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: festival-2.0.95_beta.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/app-accessibility/festival/festival-2.0.95_beta.ebuild,v 1.1 2010/06/30 15:09:12 neurogeek Exp $ |
51 |
|
52 |
EAPI="2" |
53 |
inherit eutils toolchain-funcs |
54 |
|
55 |
MY_PV=${PV/_beta/-beta} |
56 |
MY_P=${PN}-${MY_PV} |
57 |
|
58 |
DESCRIPTION="Festival Text to Speech engine" |
59 |
HOMEPAGE="http://www.cstr.ed.ac.uk/projects/festival/" |
60 |
SITE="http://www.festvox.org/packed/${PN}/${MY_PV%-beta}" |
61 |
SRC_URI="${SITE}/${MY_P}.tar.gz |
62 |
${SITE}/festlex_CMU.tar.gz |
63 |
${SITE}/festlex_OALD.tar.gz |
64 |
${SITE}/festlex_POSLEX.tar.gz |
65 |
${SITE}/festvox_cmu_us_awb_cg.tar.gz |
66 |
${SITE}/festvox_cmu_us_rms_cg.tar.gz |
67 |
${SITE}/festvox_cmu_us_slt_arctic_hts.tar.gz |
68 |
${SITE}/festvox_rablpc16k.tar.gz |
69 |
${SITE}/festvox_kallpc16k.tar.gz |
70 |
${SITE}/speech_tools-${MY_PV}.tar.gz" |
71 |
|
72 |
LICENSE="FESTIVAL BSD as-is" |
73 |
SLOT="0" |
74 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
75 |
IUSE="alsa" |
76 |
|
77 |
SP_DEPEND=">=app-accessibility/speech-tools-2.0.95_beta" |
78 |
|
79 |
DEPEND="${SP_DEPEND} |
80 |
alsa? ( media-sound/alsa-utils )" |
81 |
RDEPEND="${SP_DEPEND}" |
82 |
|
83 |
S=${WORKDIR}/festival |
84 |
|
85 |
pkg_setup() { |
86 |
enewuser festival -1 -1 -1 audio |
87 |
} |
88 |
|
89 |
src_prepare() { |
90 |
# tell festival to use the speech-tools we have installed. |
91 |
sed -i -e "s:\(EST=\).*:\1/usr/share/speech-tools:" "${S}"/config/config.in |
92 |
sed -i -e "s:\$(EST)/lib:/usr/$(get_libdir):" "${S}"/config/project.mak |
93 |
|
94 |
# fix the reference to /usr/lib/festival |
95 |
sed -i -e "s:\(FTLIBDIR.*=.*\)\$.*:\1/usr/share/festival:" "${S}"/config/project.mak |
96 |
|
97 |
# Fix path for examples in festival.scm |
98 |
sed -i -e "s:\.\./examples/:/usr/share/doc/${PF}/examples/:" "${S}"/lib/festival.scm |
99 |
|
100 |
epatch "${FILESDIR}/${P}-init-scm.patch" |
101 |
|
102 |
# copy what we need for MultiSyn from speech_tools. |
103 |
cp -pr "${WORKDIR}"/speech_tools/base_class "${S}"/src/modules/MultiSyn |
104 |
|
105 |
if use alsa; then |
106 |
echo "(Parameter.set 'Audio_Command \"aplay -q -c 1 -t raw -f s16 -r \$SR \$FILE\")" >> "${S}"/lib/siteinit.scm |
107 |
echo "(Parameter.set 'Audio_Method 'Audio_Command)" >> "${S}"/lib/siteinit.scm |
108 |
fi |
109 |
} |
110 |
|
111 |
src_configure() { |
112 |
econf || die "econf failed" |
113 |
} |
114 |
|
115 |
src_compile() { |
116 |
emake PROJECT_LIBDEPS="" REQUIRED_LIBDEPS="" LOCAL_LIBDEPS="" \ |
117 |
OPTIMISE_CXXFLAGS="${CXXFLAGS}" OPTIMISE_CCFLAGS="${CFLAGS}" \ |
118 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die "emake failed" |
119 |
} |
120 |
|
121 |
src_install() { |
122 |
# Install the binaries |
123 |
dobin src/main/festival |
124 |
dobin lib/etc/*Linux*/audsp |
125 |
dolib.a src/lib/libFestival.a |
126 |
|
127 |
# Install the main libraries |
128 |
insinto /usr/share/festival |
129 |
doins -r lib/* |
130 |
|
131 |
# Install the examples |
132 |
insinto /usr/share/doc/${PF} |
133 |
doins -r examples |
134 |
|
135 |
# Need to fix saytime, etc. to look for festival in the correct spot |
136 |
for ex in "${D}"/usr/share/doc/${PF}/examples/*.sh; do |
137 |
exnoext=${ex%%.sh} |
138 |
chmod a+x "${exnoext}" |
139 |
dosed "s:${S}/bin/festival:/usr/bin/festival:" "${exnoext##$D}" |
140 |
done |
141 |
|
142 |
# Install the header files |
143 |
insinto /usr/include/festival |
144 |
doins src/include/*.h |
145 |
|
146 |
insinto /etc/festival |
147 |
# Sample server.scm configuration for the server |
148 |
doins "${FILESDIR}"/server.scm |
149 |
doins lib/site* |
150 |
|
151 |
# Install the init script |
152 |
newinitd "${FILESDIR}"/festival.rc festival |
153 |
|
154 |
# Install the docs |
155 |
dodoc "${S}"/{ACKNOWLEDGMENTS,NEWS,README} |
156 |
doman "${S}"/doc/{festival.1,festival_client.1} |
157 |
|
158 |
# create the directory where our log file will go. |
159 |
diropts -m 0755 -o festival -g audio |
160 |
keepdir /var/log/festival |
161 |
|
162 |
} |
163 |
|
164 |
pkg_postinst() { |
165 |
elog |
166 |
elog " Useful examples include saytime, text2wave. For example, try:" |
167 |
elog " \"/usr/share/doc/${PF}/examples/saytime\"" |
168 |
elog |
169 |
elog " Or for something more fun:" |
170 |
elog ' "echo "Gentoo can speak" | festival --tts"' |
171 |
elog |
172 |
elog " To enable the festival server at boot, run" |
173 |
elog " rc-update add festival default" |
174 |
elog |
175 |
elog " You must setup the server's port, access list, etc in this file:" |
176 |
elog " /etc/festival/server.scm" |
177 |
elog |
178 |
elog "This version also allows configuration of site specific" |
179 |
elog "initialization in /etc/festival/siteinit.scm and" |
180 |
elog "variables in /etc/festival/sitevars.scm." |
181 |
elog |
182 |
} |