1 |
williamh 10/10/29 18:06:33 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: espeak-1.44.05.ebuild |
5 |
Log: |
6 |
version bump, also fixes #303094, thanks to Kacper Kowalik |
7 |
|
8 |
(Portage version: 2.2.0_alpha2/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.89 app-accessibility/espeak/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-accessibility/espeak/ChangeLog?rev=1.89&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-accessibility/espeak/ChangeLog?rev=1.89&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-accessibility/espeak/ChangeLog?r1=1.88&r2=1.89 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-accessibility/espeak/ChangeLog,v |
20 |
retrieving revision 1.88 |
21 |
retrieving revision 1.89 |
22 |
diff -u -r1.88 -r1.89 |
23 |
--- ChangeLog 20 Jul 2010 18:37:03 -0000 1.88 |
24 |
+++ ChangeLog 29 Oct 2010 18:06:33 -0000 1.89 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for app-accessibility/espeak |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-accessibility/espeak/ChangeLog,v 1.88 2010/07/20 18:37:03 jer Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-accessibility/espeak/ChangeLog,v 1.89 2010/10/29 18:06:33 williamh Exp $ |
30 |
+ |
31 |
+*espeak-1.44.05 (29 Oct 2010) |
32 |
+ |
33 |
+ 29 Oct 2010; William Hubbs <williamh@g.o> +espeak-1.44.05.ebuild, |
34 |
+ +files/espeak-1.44.05-respect-ldflags.patch: |
35 |
+ Version bump, also fixes bug #303094 thanks to Kacper Kowalik. |
36 |
|
37 |
20 Jul 2010; Jeroen Roovers <jer@g.o> espeak-1.42.04.ebuild: |
38 |
Stable for HPPA (bug #301793). |
39 |
|
40 |
|
41 |
|
42 |
1.1 app-accessibility/espeak/espeak-1.44.05.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-accessibility/espeak/espeak-1.44.05.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-accessibility/espeak/espeak-1.44.05.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: espeak-1.44.05.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2010 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/app-accessibility/espeak/espeak-1.44.05.ebuild,v 1.1 2010/10/29 18:06:33 williamh Exp $ |
52 |
|
53 |
EAPI="3" |
54 |
|
55 |
inherit eutils toolchain-funcs |
56 |
|
57 |
MY_P="${P}-source" |
58 |
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip" |
59 |
DESCRIPTION="Speech synthesizer for English and other languages" |
60 |
HOMEPAGE="http://espeak.sourceforge.net/" |
61 |
LICENSE="GPL-3" |
62 |
SLOT="0" |
63 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
64 |
IUSE="portaudio pulseaudio" |
65 |
RDEPEND="portaudio? ( >=media-libs/portaudio-19_pre20071207 ) |
66 |
pulseaudio? ( media-sound/pulseaudio )" |
67 |
DEPEND="${RDEPEND} |
68 |
app-arch/unzip" |
69 |
|
70 |
S=${WORKDIR}/${MY_P} |
71 |
|
72 |
get_audio() { |
73 |
local MY_AUDIO |
74 |
|
75 |
if use portaudio; then |
76 |
MY_AUDIO=portaudio |
77 |
elif use pulseaudio; then |
78 |
MY_AUDIO=pulseaudio |
79 |
else |
80 |
MY_AUDIO=none |
81 |
fi |
82 |
echo ${MY_AUDIO} |
83 |
} |
84 |
|
85 |
pkg_setup() { |
86 |
if use portaudio && use pulseaudio; then |
87 |
die "You must choose either portaudio or pulseaudio, but not both." |
88 |
fi |
89 |
} |
90 |
|
91 |
src_prepare() { |
92 |
epatch "${FILESDIR}"/${P}-respect-ldflags.patch |
93 |
cd src |
94 |
# gentoo uses portaudio 19. |
95 |
if use portaudio; then |
96 |
mv -f portaudio19.h portaudio.h |
97 |
fi |
98 |
} |
99 |
|
100 |
src_compile() { |
101 |
cd src |
102 |
emake PREFIX="${EPREFIX}/usr" AUDIO="$(get_audio)" \ |
103 |
CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" all || die "Compilation failed" |
104 |
|
105 |
einfo "Fixing byte order of phoneme data files" |
106 |
cd "${S}/platforms/big_endian" |
107 |
make |
108 |
./espeak-phoneme-data "${S}/espeak-data" |
109 |
cp -f phondata phonindex phontab "${S}/espeak-data" |
110 |
} |
111 |
|
112 |
src_install() { |
113 |
cd src |
114 |
make DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="\$(PREFIX)/$(get_libdir)" AUDIO="$(get_audio)" install || die "Installation failed" |
115 |
|
116 |
cd .. |
117 |
insinto /usr/share/espeak-data |
118 |
doins -r dictsource |
119 |
dodoc ChangeLog ReadMe |
120 |
dohtml -r docs/* |
121 |
} |
122 |
|
123 |
pkg_postinst() { |
124 |
if ! use portaudio && ! use pulseaudio; then |
125 |
ewarn "Since portaudio and pulseaudio are not in your use flags," |
126 |
ewarn "espeak will only be able to create wav files." |
127 |
ewarn "If this is not what you want, please reemerge ${CATEGORY}/${PN}" |
128 |
ewarn "with either portaudio or pulseaudio USE flag enabled." |
129 |
fi |
130 |
} |