app-accessibility/festival-fi: Port to EAPI 6
authorDavid Seifert <soap@gentoo.org>
Fri, 29 Dec 2017 21:21:24 +0000 (22:21 +0100)
committerDavid Seifert <soap@gentoo.org>
Fri, 29 Dec 2017 22:32:40 +0000 (23:32 +0100)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

app-accessibility/festival-fi/festival-fi-20041119.ebuild
app-accessibility/festival-fi/files/festival-fi-20041119_lavennin_path.patch

index 7ed4851d8ed574bac2778bf7f5ef284fa11102b1..baff3ed11700f8025c02c8774b2c0069827f6130 100644 (file)
@@ -1,8 +1,7 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="2"
-inherit eutils
+EAPI=6
 
 DESCRIPTION="Finnish diphones and text to speech script for festival"
 HOMEPAGE="http://www.ling.helsinki.fi/suopuhe"
@@ -15,29 +14,27 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE="perl"
 
-RDEPEND=">=app-accessibility/festival-1.96_beta"
+RDEPEND="
+       >=app-accessibility/festival-1.96_beta
+       dev-lang/perl"
 DEPEND=""
 
-src_prepare(){
-       cd "${WORKDIR}/lavennin/bin"
-       epatch "${FILESDIR}/${P}_lavennin_path.patch"
-}
+S=${WORKDIR}
+PATCHES=( "${FILESDIR}"/${P}_lavennin_path.patch )
 
 src_install() {
-       cd "${WORKDIR}"
        dodoc festival/lib/voices/finnish/hy_fi_mv_diphone/README.mv
-       rm festival/lib/voices/finnish/hy_fi_mv_diphone/{README.mv,LICENSE}
-       insinto /usr/share/festival/
-       cd festival/lib/
-       doins -r voices/
-       cd "${WORKDIR}/lavennin/"
+       rm festival/lib/voices/finnish/hy_fi_mv_diphone/{README.mv,LICENSE} || die
+
+       insinto /usr/share/festival
+       doins -r festival/lib/voices
+       cd "${WORKDIR}"/lavennin/ || die
        newdoc README.txt README.lavennin
        dodoc man/*.shtml
 
        if use perl; then
-
                newbin bin/lavennin suopuhe-lavennin
-               dodir /usr/share/suopuhe/data/
+
                insinto /usr/share/suopuhe
                doins -r data
 
index 7084641a669e235053e45dc450a81e236cc98597..833b633e3245d46cb7b8b5cd9607d300e9be22e8 100644 (file)
@@ -3,8 +3,8 @@
 # Not sending this to upstrem.
 # neurogeek@gentoo.org
 
---- bin/lavennin.orig  2009-05-08 01:05:48.000000000 -0430
-+++ bin/lavennin       2009-05-08 01:07:07.000000000 -0430
+--- a/lavennin/bin/lavennin
++++ b/lavennin/bin/lavennin
 @@ -164,8 +164,8 @@
      $HOME = get_home_directory();
  }