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/flite: ChangeLog flite-1.4-r1.ebuild flite-1.4.ebuild
Date: Fri, 01 Jan 2010 22:30:54
Message-Id: E1NQq1E-0000Gr-6Y@stork.gentoo.org
1 williamh 10/01/01 22:30:52
2
3 Modified: ChangeLog
4 Added: flite-1.4-r1.ebuild
5 Removed: flite-1.4.ebuild
6 Log:
7 fix shared library support and parallel build issue.
8 (Portage version: 2.2_rc61/cvs/Linux i686)
9
10 Revision Changes Path
11 1.37 app-accessibility/flite/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-accessibility/flite/ChangeLog?rev=1.37&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-accessibility/flite/ChangeLog?rev=1.37&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-accessibility/flite/ChangeLog?r1=1.36&r2=1.37
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-accessibility/flite/ChangeLog,v
20 retrieving revision 1.36
21 retrieving revision 1.37
22 diff -u -r1.36 -r1.37
23 --- ChangeLog 1 Jan 2010 16:03:24 -0000 1.36
24 +++ ChangeLog 1 Jan 2010 22:30:51 -0000 1.37
25 @@ -1,6 +1,12 @@
26 # ChangeLog for app-accessibility/flite
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-accessibility/flite/ChangeLog,v 1.36 2010/01/01 16:03:24 williamh Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-accessibility/flite/ChangeLog,v 1.37 2010/01/01 22:30:51 williamh Exp $
30 +
31 +*flite-1.4-r1 (01 Jan 2010)
32 +
33 + 01 Jan 2010; William Hubbs <williamh@g.o> -flite-1.4.ebuild,
34 + +flite-1.4-r1.ebuild, +files/flite-1.4-fix-parallel-builds.patch:
35 + fix shared library support and parallel build issue.
36
37 01 Jan 2010; William Hubbs <williamh@g.o> flite-1.4.ebuild:
38 work around paralell make issue. #299032.
39
40
41
42 1.1 app-accessibility/flite/flite-1.4-r1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-accessibility/flite/flite-1.4-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-accessibility/flite/flite-1.4-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: flite-1.4-r1.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/flite/flite-1.4-r1.ebuild,v 1.1 2010/01/01 22:30:51 williamh Exp $
52
53 EAPI="2"
54
55 inherit eutils
56
57 DESCRIPTION="Flite text to speech engine"
58 HOMEPAGE="http://www.speech.cs.cmu.edu/flite/index.html"
59 SRC_URI=" http://www.speech.cs.cmu.edu/${PN}/packed/${P}/${P}-release.tar.bz2"
60
61 LICENSE="BSD as-is"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
64 IUSE="alsa oss static-libs"
65
66 S=${WORKDIR}/${P}-release
67
68 get_audio() {
69 if use alsa; then
70 echo alsa
71 elif use oss; then
72 echo oss
73 else
74 echo none
75 fi
76 }
77
78 src_prepare() {
79 epatch "${FILESDIR}"/${P}-fix-parallel-builds.patch
80 epatch "${FILESDIR}"/${P}-respect-destdir.patch
81 }
82
83 src_configure() {
84 local myconf
85 if ! use static-libs; then
86 myconf=--enable-shared
87 fi
88 myconf="${myconf} --with-audio=$(get_audio)"
89 econf ${myconf} || die "configuration failed"
90 }
91
92 src_compile() {
93 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "compilation failed"
94 }
95
96 src_install() {
97 emake DESTDIR="${D}" install || die "installation failed"
98 dodoc ACKNOWLEDGEMENTS README || die "Documentation installation failed"
99 if ! use static-libs; then
100 rm -rf "${D}"/usr/lib/*.a
101 fi
102 }
103
104 pkg_postinst() {
105 if [ "$(get_audio)" = "none" ]; then
106 ewarn "you have built flite without audio support."
107 ewarn "If you want audio support, re-emerge"
108 ewarn "flite with alsa or oss in your use flags."
109 fi
110 }