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