app-i18n/scim-uim: Port to EAPI 6
authorDavid Seifert <soap@gentoo.org>
Sun, 31 Dec 2017 09:54:57 +0000 (10:54 +0100)
committerDavid Seifert <soap@gentoo.org>
Sun, 31 Dec 2017 11:13:57 +0000 (12:13 +0100)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

app-i18n/scim-uim/scim-uim-0.2.0-r2.ebuild

index ad0fc7d82d8a04de58442f35f850df3b806a22e1..8b9fe22e07182ba5f68bc10ba7834869a2994825 100644 (file)
@@ -1,8 +1,7 @@
 # Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="2"
-inherit eutils
+EAPI=6
 
 DESCRIPTION="An input module for Smart Common Input Method (SCIM) which uses uim as backend"
 HOMEPAGE="http://www.scim-im.org/"
@@ -13,20 +12,26 @@ SLOT="0"
 KEYWORDS="amd64 ppc x86"
 IUSE=""
 
-RDEPEND=">=app-i18n/uim-1.5.0
+RDEPEND="
+       >=app-i18n/uim-1.5.0
        >=app-i18n/scim-1.4.0"
 DEPEND="${RDEPEND}
        virtual/pkgconfig"
 
-src_prepare() {
-       epatch "${FILESDIR}/${P}-gcc43.patch" \
-               "${FILESDIR}/${P}-uim-1.5.patch"
+PATCHES=(
+       "${FILESDIR}"/${P}-gcc43.patch
+       "${FILESDIR}"/${P}-uim-1.5.patch
+)
+
+src_configure() {
+       econf --disable-static
 }
 
 src_install() {
-       emake DESTDIR="${D}" install || die "make install failed"
+       default
 
-       dodoc AUTHORS ChangeLog README THANKS || die
+       # plugin module, no point in .la files
+       find "${D}" -name '*.la' -delete || die
 }
 
 pkg_postinst() {