commit:     2dcb5c853731bbc4a8957aa213f0ec94e7dd9634
Author:     Juanjie Xi <strangemk3 <AT> gmail <DOT> com>
AuthorDate: Fri Dec 22 00:30:40 2017 +0000
Commit:     Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Fri Dec 22 05:10:12 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2dcb5c85

app-i18n/zhcon: Update to EAPI-6

  Remove the old EAPI-3 ebuild.

Closes: https://bugs.gentoo.org/621956
Closes: https://github.com/gentoo/gentoo/pull/6595
Package-Manager: Portage-2.3.13

 app-i18n/zhcon/files/zhcon-0.2.6.sysconfdir.patch  | 12 ++++----
 ...zhcon-0.2.6-r2.ebuild => zhcon-0.2.6-r3.ebuild} | 32 ++++++++++++----------
 2 files changed, 24 insertions(+), 20 deletions(-)

diff --git a/app-i18n/zhcon/files/zhcon-0.2.6.sysconfdir.patch 
b/app-i18n/zhcon/files/zhcon-0.2.6.sysconfdir.patch
index bc1d8713cd2..551d656dd6e 100644
--- a/app-i18n/zhcon/files/zhcon-0.2.6.sysconfdir.patch
+++ b/app-i18n/zhcon/files/zhcon-0.2.6.sysconfdir.patch
@@ -1,6 +1,6 @@
-diff -ruN zhcon-0.2.5/src/Makefile.am /tmp/zhcon-0.2.5/src/Makefile.am
---- a/zhcon-0.2.5/src/Makefile.am      2006-06-22 12:35:01.531885552 +0800
-+++ b/zhcon-0.2.5/src/Makefile.am      2006-06-22 12:31:44.000000000 +0800
+diff -ruN /src/Makefile.am /tmp/src/Makefile.am
+--- a/src/Makefile.am  2006-06-22 12:35:01.531885552 +0800
++++ b/src/Makefile.am  2006-06-22 12:31:44.000000000 +0800
 @@ -5,6 +5,8 @@
  
  zhcon_LDADD = display/libdisplay.a
@@ -10,9 +10,9 @@ diff -ruN zhcon-0.2.5/src/Makefile.am 
/tmp/zhcon-0.2.5/src/Makefile.am
  SUBDIRS = display
  
  install-exec-local:
-diff -ruN zhcon-0.2.5/src/zhcon.cpp /tmp/zhcon-0.2.5/src/zhcon.cpp
---- a/zhcon-0.2.5/src/zhcon.cpp        2006-06-22 12:35:01.398905768 +0800
-+++ b/zhcon-0.2.5/src/zhcon.cpp        2006-06-22 12:32:41.000000000 +0800
+diff -ruN src/zhcon.cpp /tmp/src/zhcon.cpp
+--- a/src/zhcon.cpp    2006-06-22 12:35:01.398905768 +0800
++++ b/src/zhcon.cpp    2006-06-22 12:32:41.000000000 +0800
 @@ -123,7 +123,7 @@
      string cfgfile = getenv("HOME");
      cfgfile += "/.zhconrc";

diff --git a/app-i18n/zhcon/zhcon-0.2.6-r2.ebuild 
b/app-i18n/zhcon/zhcon-0.2.6-r3.ebuild
similarity index 58%
rename from app-i18n/zhcon/zhcon-0.2.6-r2.ebuild
rename to app-i18n/zhcon/zhcon-0.2.6-r3.ebuild
index 65f87490e84..f428d22d614 100644
--- a/app-i18n/zhcon/zhcon-0.2.6-r2.ebuild
+++ b/app-i18n/zhcon/zhcon-0.2.6-r3.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="3"
+EAPI="6"
 WANT_AUTOMAKE="1.9"
 
 inherit autotools eutils
@@ -24,16 +24,20 @@ RDEPEND="${DEPEND}"
 
 S="${WORKDIR}/${MY_P}"
 
+PATCHES=(
+       "${FILESDIR}"/${P}.sysconfdir.patch
+       "${FILESDIR}"/${P}.configure.in.patch
+       "${FILESDIR}"/${P}+gcc-4.3.patch
+       "${FILESDIR}"/${P}+linux-headers-2.6.26.patch
+       "${FILESDIR}"/${P}-curses.patch
+       "${FILESDIR}"/${P}-amd64.patch
+       "${FILESDIR}"/${P}-automagic-fix.patch
+       "${FILESDIR}"/${P}.make-fix.patch
+)
+
 src_prepare() {
        epatch "${DISTDIR}"/zhcon-0.2.5-to-0.2.6.diff.gz
-       epatch "${FILESDIR}"/${P}.sysconfdir.patch
-       epatch "${FILESDIR}"/${P}.configure.in.patch
-       epatch "${FILESDIR}"/${P}+gcc-4.3.patch
-       epatch "${FILESDIR}"/${P}+linux-headers-2.6.26.patch
-       epatch "${FILESDIR}"/${P}-curses.patch
-       epatch "${FILESDIR}"/${P}-amd64.patch
-       epatch "${FILESDIR}"/${P}-automagic-fix.patch
-       epatch "${FILESDIR}"/${P}.make-fix.patch
+       default
        for f in $(grep -lir HAVE_GGI_LIB *); do
                sed -i -e "s/HAVE_GGI_LIB/HAVE_LIBGGI/" "${f}" || die "sed 
failed"
        done
@@ -42,12 +46,12 @@ src_prepare() {
 
 src_configure() {
        econf $(use_with ggi) \
-               $(use_with gpm) || die
+               $(use_with gpm)
 }
 
 src_install() {
-       emake DESTDIR="${D}" install || die
+       emake DESTDIR="${D}" install
 
-       dodoc AUTHORS ChangeLog README NEWS TODO THANKS || die
-       dodoc README.BSD README.gpm README.utf8 || die
+       dodoc AUTHORS ChangeLog README NEWS TODO THANKS
+       dodoc README.BSD README.gpm README.utf8
 }

Reply via email to