1 |
williamh 13/10/01 03:58:08 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: espeak-1.47.11-r1.ebuild |
5 |
Log: |
6 |
Fixes for bug #485934 and bug #485936 |
7 |
|
8 |
(Portage version: 2.2.1/cvs/Linux i686, signed Manifest commit with key 0x30C46538) |
9 |
|
10 |
Revision Changes Path |
11 |
1.112 app-accessibility/espeak/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-accessibility/espeak/ChangeLog?rev=1.112&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-accessibility/espeak/ChangeLog?rev=1.112&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-accessibility/espeak/ChangeLog?r1=1.111&r2=1.112 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-accessibility/espeak/ChangeLog,v |
20 |
retrieving revision 1.111 |
21 |
retrieving revision 1.112 |
22 |
diff -u -r1.111 -r1.112 |
23 |
--- ChangeLog 22 Sep 2013 20:14:41 -0000 1.111 |
24 |
+++ ChangeLog 1 Oct 2013 03:58:08 -0000 1.112 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for app-accessibility/espeak |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-accessibility/espeak/ChangeLog,v 1.111 2013/09/22 20:14:41 williamh Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-accessibility/espeak/ChangeLog,v 1.112 2013/10/01 03:58:08 williamh Exp $ |
30 |
+ |
31 |
+*espeak-1.47.11-r1 (01 Oct 2013) |
32 |
+ |
33 |
+ 01 Oct 2013; William Hubbs <williamh@g.o> +espeak-1.47.11-r1.ebuild: |
34 |
+ Fixes for bug #485934 and bug #485936 |
35 |
|
36 |
22 Sep 2013; William Hubbs <williamh@g.o> espeak-1.47.11.ebuild: |
37 |
Add overrides for AR and CFLAGS, convert a call to make to emake, use the S |
38 |
|
39 |
|
40 |
|
41 |
1.1 app-accessibility/espeak/espeak-1.47.11-r1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-accessibility/espeak/espeak-1.47.11-r1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-accessibility/espeak/espeak-1.47.11-r1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: espeak-1.47.11-r1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2013 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/app-accessibility/espeak/espeak-1.47.11-r1.ebuild,v 1.1 2013/10/01 03:58:08 williamh Exp $ |
51 |
|
52 |
EAPI=5 |
53 |
|
54 |
inherit eutils multilib toolchain-funcs |
55 |
|
56 |
MY_P="${P}-source" |
57 |
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip" |
58 |
DESCRIPTION="Speech synthesizer for English and other languages" |
59 |
HOMEPAGE="http://espeak.sourceforge.net/" |
60 |
LICENSE="GPL-3" |
61 |
SLOT="0" |
62 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
63 |
IUSE="portaudio pulseaudio" |
64 |
|
65 |
COMMON_DEPEND=" |
66 |
portaudio? ( >=media-libs/portaudio-19_pre20071207 ) |
67 |
pulseaudio? ( |
68 |
!portaudio? ( >=media-libs/portaudio-19_pre20071207 ) |
69 |
media-sound/pulseaudio )" |
70 |
|
71 |
DEPEND="${COMMON_DEPEND} |
72 |
app-arch/unzip" |
73 |
|
74 |
RDEPEND="${COMMON_DEPEND} |
75 |
media-sound/sox" |
76 |
|
77 |
S=${WORKDIR}/${MY_P}/src |
78 |
|
79 |
get_audio() { |
80 |
if use portaudio && use pulseaudio; then |
81 |
echo runtime |
82 |
elif use portaudio; then |
83 |
echo portaudio |
84 |
elif use pulseaudio; then |
85 |
echo pulseaudio |
86 |
else |
87 |
echo none |
88 |
fi |
89 |
} |
90 |
|
91 |
src_prepare() { |
92 |
# gentoo uses portaudio 19. |
93 |
mv -f portaudio19.h portaudio.h |
94 |
} |
95 |
|
96 |
src_compile() { |
97 |
emake \ |
98 |
PREFIX="${EPREFIX}/usr" \ |
99 |
CC="$(tc-getCC)" \ |
100 |
CFLAGS="${CFLAGS}" \ |
101 |
CXX="$(tc-getCXX)" \ |
102 |
CXXFLAGS="${CXXFLAGS}" \ |
103 |
AR="$(tc-getAR)" \ |
104 |
AUDIO="$(get_audio)" \ |
105 |
all |
106 |
|
107 |
einfo "Fixing byte order of phoneme data files" |
108 |
pushd ../platforms/big_endian > /dev/null |
109 |
emake \ |
110 |
CC="$(tc-getCC)" \ |
111 |
CFLAGS="${CFLAGS}" |
112 |
./espeak-phoneme-data \ |
113 |
../../espeak-data \ |
114 |
. \ |
115 |
../../espeak-data/phondata-manifest |
116 |
cp -f phondata phonindex phontab "../../espeak-data" |
117 |
} |
118 |
|
119 |
src_install() { |
120 |
emake \ |
121 |
PREFIX="${EPREFIX}/usr" \ |
122 |
LIBDIR="\$(PREFIX)/$(get_libdir)" \ |
123 |
DESTDIR="${D}" \ |
124 |
AUDIO="$(get_audio)" \ |
125 |
install |
126 |
|
127 |
cd .. |
128 |
insinto /usr/share/espeak-data |
129 |
doins -r dictsource |
130 |
dodoc ChangeLog.txt ReadMe |
131 |
dohtml -r docs/* |
132 |
} |
133 |
|
134 |
pkg_preinst() { |
135 |
local voicedir="${ROOT}/usr/share/${PN}-data/voices/en" |
136 |
if [ -d "${voicedir}" ]; then |
137 |
rm -rf "${voicedir}" |
138 |
fi |
139 |
} |
140 |
|
141 |
pkg_postinst() { |
142 |
if ! use portaudio && ! use pulseaudio; then |
143 |
ewarn "Since portaudio and pulseaudio are not in your use flags," |
144 |
ewarn "espeak will only be able to create wav files." |
145 |
ewarn "If this is not what you want, please reemerge ${CATEGORY}/${PN}" |
146 |
ewarn "with either portaudio or pulseaudio USE flag enabled." |
147 |
fi |
148 |
} |