Gentoo Archives: gentoo-commits

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