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.ebuild
Date: Sun, 20 Apr 2008 19:30:53
Message-Id: E1JnfFR-00088b-Ja@stork.gentoo.org
1 williamh 08/04/20 19:30:49
2
3 Modified: ChangeLog
4 Added: espeak-1.37.ebuild
5 Log:
6 Version bump, and also do not allow both portaudio and pulseaudio in use.
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.43 app-accessibility/espeak/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-accessibility/espeak/ChangeLog?rev=1.43&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-accessibility/espeak/ChangeLog?rev=1.43&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-accessibility/espeak/ChangeLog?r1=1.42&r2=1.43
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-accessibility/espeak/ChangeLog,v
19 retrieving revision 1.42
20 retrieving revision 1.43
21 diff -u -r1.42 -r1.43
22 --- ChangeLog 15 Apr 2008 16:32:07 -0000 1.42
23 +++ ChangeLog 20 Apr 2008 19:30:49 -0000 1.43
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.42 2008/04/15 16:32:07 jer Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-accessibility/espeak/ChangeLog,v 1.43 2008/04/20 19:30:49 williamh Exp $
29 +
30 +*espeak-1.37 (20 Apr 2008)
31 +
32 + 20 Apr 2008; William Hubbs <williamh@g.o> +espeak-1.37.ebuild:
33 + Version bump. Also, for #218597, do not allow both portaudio and
34 + pulseaudio in the use flags.
35
36 15 Apr 2008; Jeroen Roovers <jer@g.o> espeak-1.36.02.ebuild:
37 Stable for HPPA (bug #217235).
38
39
40
41 1.1 app-accessibility/espeak/espeak-1.37.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-accessibility/espeak/espeak-1.37.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-accessibility/espeak/espeak-1.37.ebuild?rev=1.1&content-type=text/plain
45
46 Index: espeak-1.37.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.ebuild,v 1.1 2008/04/20 19:30:49 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 dodoc ChangeLog ReadMe
123 dohtml -r docs/*
124 }
125
126
127
128 --
129 gentoo-commits@l.g.o mailing list