diff options
Diffstat (limited to 'app-accessibility/flite/flite-1.4-r4.ebuild')
-rw-r--r-- | app-accessibility/flite/flite-1.4-r4.ebuild | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/app-accessibility/flite/flite-1.4-r4.ebuild b/app-accessibility/flite/flite-1.4-r4.ebuild index 536b8f83eea6..54ce1000b6a8 100644 --- a/app-accessibility/flite/flite-1.4-r4.ebuild +++ b/app-accessibility/flite/flite-1.4-r4.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI=5 -inherit autotools eutils multilib-minimal +EAPI=6 +inherit autotools multilib-minimal DESCRIPTION="Flite text to speech engine" HOMEPAGE="http://www.speech.cs.cmu.edu/flite/index.html" @@ -18,6 +18,14 @@ RDEPEND="${DEPEND}" S=${WORKDIR}/${P}-release +PATCHES=( + "${FILESDIR}"/${PN}-1.4-tempfile.patch + "${FILESDIR}"/${PN}-1.4-fix-parallel-builds.patch + "${FILESDIR}"/${PN}-1.4-respect-destdir.patch + "${FILESDIR}"/${PN}-1.4-ldflags.patch + "${FILESDIR}"/${PN}-1.4-audio-interface.patch +) + get_audio() { if use alsa; then echo alsa @@ -29,11 +37,8 @@ get_audio() { } src_prepare() { - epatch "${FILESDIR}"/${P}-tempfile.patch - epatch "${FILESDIR}"/${P}-fix-parallel-builds.patch - epatch "${FILESDIR}"/${P}-respect-destdir.patch - epatch "${FILESDIR}"/${P}-ldflags.patch - epatch "${FILESDIR}"/${P}-audio-interface.patch + default + sed -i main/Makefile \ -e '/-rpath/s|$(LIBDIR)|$(INSTALLLIBDIR)|g' \ || die @@ -61,7 +66,7 @@ multilib_src_install_all() { dodoc ACKNOWLEDGEMENTS README if ! use static-libs; then - rm -rf "${D}"/usr/lib*/*.a + find "${ED}" -name '*.a' ! -name '*.dll.a' -delete || die fi } |