1 |
williamh 08/08/30 22:17:17 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: espeak-1.38.ebuild |
5 |
Log: |
6 |
version bump |
7 |
(Portage version: 2.2_rc8/cvs/Linux 2.6.26-gentoo-r1 i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.54 app-accessibility/espeak/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-accessibility/espeak/ChangeLog?rev=1.54&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-accessibility/espeak/ChangeLog?rev=1.54&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-accessibility/espeak/ChangeLog?r1=1.53&r2=1.54 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-accessibility/espeak/ChangeLog,v |
19 |
retrieving revision 1.53 |
20 |
retrieving revision 1.54 |
21 |
diff -u -r1.53 -r1.54 |
22 |
--- ChangeLog 9 Aug 2008 20:35:13 -0000 1.53 |
23 |
+++ ChangeLog 30 Aug 2008 22:17:16 -0000 1.54 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for app-accessibility/espeak |
26 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/app-accessibility/espeak/ChangeLog,v 1.53 2008/08/09 20:35:13 klausman Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-accessibility/espeak/ChangeLog,v 1.54 2008/08/30 22:17:16 williamh Exp $ |
29 |
+ |
30 |
+*espeak-1.38 (30 Aug 2008) |
31 |
+ |
32 |
+ 30 Aug 2008; William Hubbs <williamh@g.o> +espeak-1.38.ebuild: |
33 |
+ version bump |
34 |
|
35 |
09 Aug 2008; Tobias Klausmann <klausman@g.o> espeak-1.37-r1.ebuild: |
36 |
Stable on alpha, bug #233112 |
37 |
|
38 |
|
39 |
|
40 |
1.1 app-accessibility/espeak/espeak-1.38.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-accessibility/espeak/espeak-1.38.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-accessibility/espeak/espeak-1.38.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: espeak-1.38.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2008 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/app-accessibility/espeak/espeak-1.38.ebuild,v 1.1 2008/08/30 22:17:16 williamh Exp $ |
50 |
|
51 |
inherit eutils |
52 |
|
53 |
MY_P="${P}-source" |
54 |
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip" |
55 |
DESCRIPTION="Speech synthesizer for English and other languages" |
56 |
HOMEPAGE="http://espeak.sourceforge.net/" |
57 |
LICENSE="GPL-3" |
58 |
SLOT="0" |
59 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
60 |
IUSE="portaudio pulseaudio" |
61 |
DEPEND="portaudio? ( >=media-libs/portaudio-18.1-r5 ) |
62 |
pulseaudio? ( media-sound/pulseaudio ) |
63 |
app-arch/unzip" |
64 |
|
65 |
S=${WORKDIR}/${MY_P} |
66 |
|
67 |
get_audio() { |
68 |
local MY_AUDIO |
69 |
|
70 |
MY_AUDIO=none |
71 |
if use portaudio; then |
72 |
MY_AUDIO=portaudio |
73 |
elif use pulseaudio; then |
74 |
MY_AUDIO=pulseaudio |
75 |
fi |
76 |
echo ${MY_AUDIO} |
77 |
} |
78 |
|
79 |
pkg_setup() { |
80 |
if ! use portaudio && ! use pulseaudio; then |
81 |
ewarn |
82 |
ewarn Since portaudio and pulseaudio are not in your use flags, |
83 |
ewarn espeak will only bbe able to create wav files. |
84 |
ewarn If this is not what you want, press ctrl-c and put either |
85 |
ewarn portaudio or pulseaudio in your use flags. |
86 |
ebeep |
87 |
epause 10 |
88 |
elif use portaudio && use pulseaudio; then |
89 |
die "You must choose either portaudio or pulseaudio, but not both." |
90 |
fi |
91 |
} |
92 |
|
93 |
src_unpack() { |
94 |
unpack ${A} |
95 |
|
96 |
# portaudio.h is by default the same as portaudio18.h, but use the version |
97 |
# 19 API if available |
98 |
if use portaudio; then |
99 |
if has_version "=media-libs/portaudio-19*" ; then |
100 |
mv -f "${S}/src/portaudio19.h" "${S}/src/portaudio.h" |
101 |
fi |
102 |
fi |
103 |
} |
104 |
|
105 |
src_compile() { |
106 |
cd src |
107 |
emake AUDIO="$(get_audio)" CXXFLAGS="${CXXFLAGS}" all || die "Compilation failed" |
108 |
|
109 |
einfo "Fixing byte order of phoneme data files" |
110 |
cd "${S}/platforms/big_endian" |
111 |
make |
112 |
./espeak-phoneme-data "${S}/espeak-data" |
113 |
cp -f phondata phonindex phontab "${S}/espeak-data" |
114 |
} |
115 |
|
116 |
src_install() { |
117 |
cd src |
118 |
make DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)" AUDIO="$(get_audio)" install || die "Installation failed" |
119 |
|
120 |
cd .. |
121 |
insinto /usr/share/espeak-data |
122 |
doins -r dictsource |
123 |
dodoc ChangeLog ReadMe |
124 |
dohtml -r docs/* |
125 |
} |