/[gentoo-x86]/app-accessibility/flite/flite-1.4-r1.ebuild
Gentoo

Contents of /app-accessibility/flite/flite-1.4-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sun Mar 10 21:18:17 2013 UTC (2 months, 1 week ago) by polynomial-c
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Fixed linking of shared libraries (bug #339923)

(Portage version: 2.2.0_alpha166/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-accessibility/flite/flite-1.4-r1.ebuild,v 1.6 2012/12/28 18:44:22 ulm Exp $
4
5 EAPI=4
6 inherit autotools eutils
7
8 DESCRIPTION="Flite text to speech engine"
9 HOMEPAGE="http://www.speech.cs.cmu.edu/flite/index.html"
10 SRC_URI=" http://www.speech.cs.cmu.edu/${PN}/packed/${P}/${P}-release.tar.bz2"
11
12 LICENSE="BSD freetts public-domain regexp-UofT BSD-2"
13 SLOT="0"
14 KEYWORDS="~alpha ~amd64 -hppa ~ppc ~ppc64 ~sparc ~x86"
15 IUSE="alsa oss static-libs"
16
17 DEPEND="alsa? ( >=media-libs/alsa-lib-1.0.24.1 )"
18 RDEPEND="${DEPEND}"
19
20 S=${WORKDIR}/${P}-release
21
22 get_audio() {
23 if use alsa; then
24 echo alsa
25 elif use oss; then
26 echo oss
27 else
28 echo none
29 fi
30 }
31
32 src_prepare() {
33 epatch "${FILESDIR}"/${P}-fix-parallel-builds.patch
34 epatch "${FILESDIR}"/${P}-respect-destdir.patch
35 epatch "${FILESDIR}"/${P}-ldflags.patch
36 epatch "${FILESDIR}"/${P}-audio-interface.patch
37 sed -i main/Makefile \
38 -e '/-rpath/s|$(LIBDIR)|$(INSTALLLIBDIR)|g' \
39 || die
40 eautoreconf
41 }
42
43 src_configure() {
44 local myconf
45 if ! use static-libs; then
46 myconf=--enable-shared
47 fi
48 myconf="${myconf} --with-audio=$(get_audio)"
49 econf ${myconf}
50 }
51
52 src_compile() {
53 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
54 }
55
56 src_install() {
57 emake DESTDIR="${D}" install
58 dodoc ACKNOWLEDGEMENTS README
59 if ! use static-libs; then
60 rm -rf "${D}"/usr/lib*/*.a
61 fi
62 }
63
64 pkg_postinst() {
65 if [ "$(get_audio)" = "none" ]; then
66 ewarn "you have built flite without audio support."
67 ewarn "If you want audio support, re-emerge"
68 ewarn "flite with alsa or oss in your use flags."
69 fi
70 }

  ViewVC Help
Powered by ViewVC 1.1.13