summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Callen <abcd@gentoo.org>2010-02-11 23:16:16 +0000
committerJonathan Callen <abcd@gentoo.org>2010-02-11 23:16:16 +0000
commitda783e1f1dbbdff9256fe2904a98521dd418f6b2 (patch)
tree47e0cd74c1da411cd4198734207fe80a8e44d2db /app-accessibility
parentRemove java5 and java6 flags and cleanup per bug #304639. (diff)
downloadgentoo-2-da783e1f1dbbdff9256fe2904a98521dd418f6b2.tar.gz
gentoo-2-da783e1f1dbbdff9256fe2904a98521dd418f6b2.tar.bz2
gentoo-2-da783e1f1dbbdff9256fe2904a98521dd418f6b2.zip
Add prefix support, ~amd64-linux/~x86-linux keywords
(Portage version: -svn/cvs/Linux i686)
Diffstat (limited to 'app-accessibility')
-rw-r--r--app-accessibility/espeak/ChangeLog5
-rw-r--r--app-accessibility/espeak/espeak-1.42.04.ebuild14
2 files changed, 13 insertions, 6 deletions
diff --git a/app-accessibility/espeak/ChangeLog b/app-accessibility/espeak/ChangeLog
index 649789e4c3e0..29957dbb4e5e 100644
--- a/app-accessibility/espeak/ChangeLog
+++ b/app-accessibility/espeak/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for app-accessibility/espeak
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-accessibility/espeak/ChangeLog,v 1.83 2010/02/10 16:02:15 josejx Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-accessibility/espeak/ChangeLog,v 1.84 2010/02/11 23:16:16 abcd Exp $
+
+ 11 Feb 2010; Jonathan Callen <abcd@gentoo.org> espeak-1.42.04.ebuild:
+ Add prefix support, ~amd64-linux/~x86-linux keywords
10 Feb 2010; Joseph Jezak <josejx@gentoo.org> espeak-1.42.04.ebuild:
Marked ppc stable for bug #301793.
diff --git a/app-accessibility/espeak/espeak-1.42.04.ebuild b/app-accessibility/espeak/espeak-1.42.04.ebuild
index 4f5d727a0474..7806132cdfa5 100644
--- a/app-accessibility/espeak/espeak-1.42.04.ebuild
+++ b/app-accessibility/espeak/espeak-1.42.04.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-accessibility/espeak/espeak-1.42.04.ebuild,v 1.5 2010/02/10 16:02:15 josejx Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-accessibility/espeak/espeak-1.42.04.ebuild,v 1.6 2010/02/11 23:16:16 abcd Exp $
EAPI="2"
@@ -12,11 +12,11 @@ DESCRIPTION="Speech synthesizer for English and other languages"
HOMEPAGE="http://espeak.sourceforge.net/"
LICENSE="GPL-3"
SLOT="0"
-KEYWORDS="alpha amd64 ~hppa ia64 ppc ppc64 sparc x86"
+KEYWORDS="alpha amd64 ~hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux"
IUSE="portaudio pulseaudio"
RDEPEND="portaudio? ( >=media-libs/portaudio-19_pre20071207 )
pulseaudio? ( media-sound/pulseaudio )"
- DEPEND="${RDEPEND}
+DEPEND="${RDEPEND}
app-arch/unzip"
S=${WORKDIR}/${MY_P}
@@ -57,8 +57,10 @@ src_prepare() {
}
src_compile() {
+ use prefix || EPREFIX=
+
cd src
- emake AUDIO="$(get_audio)" CXXFLAGS="${CXXFLAGS}" all || die "Compilation failed"
+ emake PREFIX="${EPREFIX}/usr" AUDIO="$(get_audio)" CXXFLAGS="${CXXFLAGS}" all || die "Compilation failed"
einfo "Fixing byte order of phoneme data files"
cd "${S}/platforms/big_endian"
@@ -68,8 +70,10 @@ src_compile() {
}
src_install() {
+ use prefix || EPREFIX=
+
cd src
- make DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)" AUDIO="$(get_audio)" install || die "Installation failed"
+ make DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="\$(PREFIX)/$(get_libdir)" AUDIO="$(get_audio)" install || die "Installation failed"
cd ..
insinto /usr/share/espeak-data