commit:     3b9ddd7eb9c25affc76e42c89c2b333ea48dd808
Author:     Austin English <wizardedit <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 16 05:10:08 2016 +0000
Commit:     Austin English <wizardedit <AT> gentoo <DOT> org>
CommitDate: Tue Oct 18 00:00:52 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b9ddd7e

games-rpg/twclone: remove deprecated games eclass

Also update to EAPI 6

Gentoo-Bug: https://bugs.gentoo.org/574082

Package-Manager: portage-2.3.0

 games-rpg/twclone/files/twclone-0.14-format.patch | 12 ++++-----
 games-rpg/twclone/twclone-0.14-r1.ebuild          | 30 +++++++++++++++++++++++
 2 files changed, 36 insertions(+), 6 deletions(-)

diff --git a/games-rpg/twclone/files/twclone-0.14-format.patch 
b/games-rpg/twclone/files/twclone-0.14-format.patch
index 3e51141..d9d1a1c 100644
--- a/games-rpg/twclone/files/twclone-0.14-format.patch
+++ b/games-rpg/twclone/files/twclone-0.14-format.patch
@@ -1,5 +1,5 @@
---- bigbang.c.old      2015-10-27 09:21:51.172611109 +0100
-+++ bigbang.c  2015-10-27 09:25:41.117233447 +0100
+--- a/bigbang.c        2015-10-27 09:21:51.172611109 +0100
++++ b/bigbang.c        2015-10-27 09:25:41.117233447 +0100
 @@ -530,13 +530,11 @@
      planetfile = fopen ("./planets.data", "w");
      for (loop = 1; loop <= 299 - strlen(terraInfo); loop++)
@@ -48,8 +48,8 @@
      }
      fclose (file);
  
---- config.c.old       2015-10-27 09:30:00.091283678 +0100
-+++ config.c   2015-10-27 09:30:25.068806593 +0100
+--- a/config.c 2015-10-27 09:30:00.091283678 +0100
++++ b/config.c 2015-10-27 09:30:25.068806593 +0100
 @@ -140,9 +140,8 @@
  
    for (loop=0; loop < 199 - strlen(buffer); loop++)
@@ -61,8 +61,8 @@
  
    fclose(configfile);
    free(buffer);
---- planet.c.old       2015-10-27 09:31:44.867282757 +0100
-+++ planet.c   2015-10-27 09:32:17.083667674 +0100
+--- a/planet.c 2015-10-27 09:31:44.867282757 +0100
++++ b/planet.c 2015-10-27 09:32:17.083667674 +0100
 @@ -59,8 +59,7 @@
                addint(stufftosave, planets[index]->citdl->upgradestart, ':', 
BUFF_SIZE);
                for (loop=0; loop< 399 - strlen(stufftosave); loop++)

diff --git a/games-rpg/twclone/twclone-0.14-r1.ebuild 
b/games-rpg/twclone/twclone-0.14-r1.ebuild
new file mode 100644
index 00000000..3e9a675
--- /dev/null
+++ b/games-rpg/twclone/twclone-0.14-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+MY_P="${PN}-source-${PV}"
+DESCRIPTION="Clone of BBS Door game Trade Wars 2002"
+HOMEPAGE="http://twclone.sourceforge.net/";
+SRC_URI="mirror://sourceforge/twclone/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=(
+       "${FILESDIR}"/${P}-format.patch
+)
+
+src_install() {
+       DOCS="AUTHORS ChangeLog PROTOCOL README TODO" \
+               default
+       cd "${D}/usr/bin"
+       for f in * ; do
+               mv {,${PN}-}${f}
+       done
+}

Reply via email to