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

app-i18n/scim-sayura/files/scim-sayura-0.3.3-gcc45.patch
app-i18n/scim-sayura/scim-sayura-0.3.3.ebuild

index 64ee87416011511f8f253aa326b03a9b985b9984..d80f654b6f67235b28ca2dd8adecbd7718c357d6 100644 (file)
@@ -2,8 +2,8 @@ Fixing build with gcc 4.5
 
 http://bugs.gentoo.org/show_bug.cgi?id=320879
 
---- src/scim_sinhala_imengine.cpp
-+++ src/scim_sinhala_imengine.cpp
+--- a/src/scim_sinhala_imengine.cpp
++++ b/src/scim_sinhala_imengine.cpp
 @@ -233,7 +233,7 @@
  
  void SinhalaInstance::backspace()
index 77044b6d632629df4b5f57f4466131ae13595cb7..f04f5993a8e955c56e284185056e2cd849b2d5bc 100644 (file)
@@ -1,9 +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="Sayura Sinhala input method for SCIM"
 HOMEPAGE="http://www.sayura.net/im/"
@@ -18,14 +16,18 @@ RDEPEND=">=app-i18n/scim-0.99.8"
 DEPEND="${RDEPEND}
        virtual/pkgconfig"
 
-src_prepare() {
-       epatch "${FILESDIR}"/scim-sayura-0.3.3-gcc45.patch
+PATCHES=( "${FILESDIR}"/scim-sayura-0.3.3-gcc45.patch )
+
+src_configure() {
+       econf --disable-static
 }
 
 src_install() {
-       emake DESTDIR="${D}" install || die "emake install failed"
+       HTML_DOCS=( doc/{index.html,style.css} )
+       default
 
-       dodoc AUTHORS ChangeLog NEWS README
-       dohtml doc/index.html doc/style.css
        use doc && dodoc doc/sayura.pdf
+
+       # plugin module, no point in .la files
+       find "${D}" -name '*.la' -delete || die
 }