diff options
author | William Hubbs <williamh@gentoo.org> | 2009-12-31 21:31:40 +0000 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2009-12-31 21:31:40 +0000 |
commit | b5e46f0cac663718997a9dc0e21b88c69403ff27 (patch) | |
tree | db6c2c6b2bc44cc324828afd1024b935ae7b09c9 /app-accessibility/flite | |
parent | Fix quoting (diff) | |
download | gentoo-2-b5e46f0cac663718997a9dc0e21b88c69403ff27.tar.gz gentoo-2-b5e46f0cac663718997a9dc0e21b88c69403ff27.tar.bz2 gentoo-2-b5e46f0cac663718997a9dc0e21b88c69403ff27.zip |
version bump for #299032, thanks to Chris Bruner.
(Portage version: 2.2_rc61/cvs/Linux i686)
Diffstat (limited to 'app-accessibility/flite')
-rw-r--r-- | app-accessibility/flite/ChangeLog | 8 | ||||
-rw-r--r-- | app-accessibility/flite/files/flite-1.4-respect-destdir.patch | 59 | ||||
-rw-r--r-- | app-accessibility/flite/flite-1.4.ebuild | 54 |
3 files changed, 120 insertions, 1 deletions
diff --git a/app-accessibility/flite/ChangeLog b/app-accessibility/flite/ChangeLog index 1439d180b426..a49275795bb7 100644 --- a/app-accessibility/flite/ChangeLog +++ b/app-accessibility/flite/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-accessibility/flite # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-accessibility/flite/ChangeLog,v 1.32 2009/12/26 16:31:50 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-accessibility/flite/ChangeLog,v 1.33 2009/12/31 21:31:39 williamh Exp $ + +*flite-1.4 (31 Dec 2009) + + 31 Dec 2009; William Hubbs <williamh@gentoo.org> +flite-1.4.ebuild, + +files/flite-1.4-respect-destdir.patch: + version bump for #299032, thanks to Chris Bruner. 26 Dec 2009; Raúl Porcel <armin76@gentoo.org> flite-1.3.ebuild: sparc stable wrt #289439 diff --git a/app-accessibility/flite/files/flite-1.4-respect-destdir.patch b/app-accessibility/flite/files/flite-1.4-respect-destdir.patch new file mode 100644 index 000000000000..d54771423e1f --- /dev/null +++ b/app-accessibility/flite/files/flite-1.4-respect-destdir.patch @@ -0,0 +1,59 @@ +From a0ae616d84e9f051ae8536574a9d1289e5f0c060 Mon Sep 17 00:00:00 2001 +From: William Hubbs <w.d.hubbs@gmail.com> +Date: Thu, 31 Dec 2009 12:57:18 -0600 +Subject: [PATCH] respect destdir + +--- + Makefile | 10 +++++----- + main/Makefile | 10 +++++----- + 2 files changed, 10 insertions(+), 10 deletions(-) + +diff --git a/Makefile b/Makefile +index 2d3ff09..26b2386 100644 +--- a/Makefile ++++ b/Makefile +@@ -106,11 +106,11 @@ tags: + + install: + @echo Installing +- mkdir -p $(INSTALLBINDIR) +- mkdir -p $(INSTALLLIBDIR) +- mkdir -p $(INSTALLINCDIR) +- $(INSTALL) -m 644 include/*.h $(INSTALLINCDIR) +- @ $(MAKE) -C main --no-print-directory install ++ mkdir -p $(DESTDIR)$(INSTALLBINDIR) ++ mkdir -p $(DESTDIR)$(INSTALLLIBDIR) ++ mkdir -p $(DESTDIR)$(INSTALLINCDIR) ++ $(INSTALL) -m 644 include/*.h $(DESTDIR)$(INSTALLINCDIR) ++ @ $(MAKE) -C main --no-print-directory DESTDIR=$(DESTDIR) install + + time-stamp : + @ echo $(PROJECT_NAME) >.time-stamp +diff --git a/main/Makefile b/main/Makefile +index 8163e40..0513e59 100644 +--- a/main/Makefile ++++ b/main/Makefile +@@ -111,15 +111,15 @@ $(BINDIR)/flite_${VOICE}: flite_main.o $(flite_LIBS_deps) + + install: + # The basic binaries +- @ $(INSTALL) -m 755 $(BINDIR)/flite $(INSTALLBINDIR) ++ @ $(INSTALL) -m 755 $(BINDIR)/flite $(DESTDIR)$(INSTALLBINDIR) + @ for i in $(VOICES) ; \ + do \ +- $(INSTALL) $(BINDIR)/flite_$$i $(INSTALLBINDIR); \ ++ $(INSTALL) $(BINDIR)/flite_$$i $(DESTDIR)$(INSTALLBINDIR); \ + done +- $(INSTALL) -m 755 $(BINDIR)/flite_time $(INSTALLBINDIR) ++ $(INSTALL) -m 755 $(BINDIR)/flite_time $(DESTDIR)$(INSTALLBINDIR) + # The libraries: static and shared (if built) +- cp -pd $(flite_LIBS_deps) $(INSTALLLIBDIR) ++ cp -pd $(flite_LIBS_deps) $(DESTDIR)$(INSTALLLIBDIR) + ifdef SHFLAGS +- cp -pd $(SHAREDLIBS) $(VERSIONSHAREDLIBS) $(INSTALLLIBDIR) ++ cp -pd $(SHAREDLIBS) $(VERSIONSHAREDLIBS) $(DESTDIR)$(INSTALLLIBDIR) + endif + +-- +1.6.4.4 + diff --git a/app-accessibility/flite/flite-1.4.ebuild b/app-accessibility/flite/flite-1.4.ebuild new file mode 100644 index 000000000000..2e783a28519f --- /dev/null +++ b/app-accessibility/flite/flite-1.4.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-accessibility/flite/flite-1.4.ebuild,v 1.1 2009/12/31 21:31:39 williamh Exp $ + +EAPI="2" + +inherit eutils + +DESCRIPTION="Flite text to speech engine" +HOMEPAGE="http://www.speech.cs.cmu.edu/flite/index.html" +SRC_URI=" http://www.speech.cs.cmu.edu/${PN}/packed/${P}/${P}-release.tar.bz2" + +LICENSE="BSD as-is" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="alsa oss" + +S=${WORKDIR}/${P}-release + +get_audio() { + if use alsa; then + echo alsa + elif use oss; then + echo oss + else + echo none + fi +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-respect-destdir.patch +} + +src_configure() { + econf \ + --with-audio=$(get_audio) || die "configuration failed" +} + +src_compile() { + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "Failed compilation" +} + +src_install() { + emake DESTDIR="${D}" install || die "installation failed" + dodoc ACKNOWLEDGEMENTS README +} + +pkg_postinst() { + if [ "$(get_audio)" = "none" ]; then + ewarn "you have built flite without audio support." + ewarn "If you want audio support for flite, you need" + ewarn "alsa or oss in your use flags." + fi +} |