app-i18n/zinnia-tomoe: Port to EAPI="6".
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Wed, 13 Sep 2017 17:12:22 +0000 (19:12 +0200)
committerMike Gilbert <floppym@gentoo.org>
Wed, 13 Sep 2017 19:24:27 +0000 (15:24 -0400)
app-i18n/zinnia-tomoe/zinnia-tomoe-0.6.0_p20080911.ebuild

index a0749df3625c294834a7bbfc4de198e6eff8b2c7..4c7cac54699927c3b126b3acaa744cf16ea6392d 100644 (file)
@@ -1,16 +1,14 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=4
+EAPI="6"
 
-AUTOTOOLS_AUTORECONF=1
+inherit autotools
 
-inherit autotools-utils multilib
-
-MY_P=${P/_p/-}
+MY_P="${P/_p/-}"
 
 DESCRIPTION="Handwriting model files trained with Tomoe data"
-HOMEPAGE="http://zinnia.sourceforge.net/index.html"
+HOMEPAGE="https://taku910.github.io/zinnia/ https://github.com/taku910/zinnia https://sourceforge.net/projects/zinnia/"
 SRC_URI="mirror://sourceforge/zinnia/${MY_P}.tar.bz2"
 
 LICENSE="LGPL-2.1"
@@ -21,11 +19,13 @@ IUSE=""
 DEPEND="app-i18n/zinnia"
 RDEPEND="${DEPEND}"
 
-S="${WORKDIR}"/${MY_P}
+S="${WORKDIR}/${MY_P}"
 
-AUTOTOOLS_IN_SOURCE_BUILD=1
+DOCS=(AUTHORS)
 
 src_prepare() {
-       sed -i -e "/^modeldir/s/lib/$(get_libdir)/" Makefile.am || die
-       autotools-utils_src_prepare
+       default
+       mv configure.in configure.ac || die
+       sed -e "/^modeldir[[:space:]]*=/s/lib/$(get_libdir)/" -i Makefile.am || die
+       eautoreconf
 }