summaryrefslogtreecommitdiff
path: root/games-rpg/twclone
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-rpg/twclone
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'games-rpg/twclone')
-rw-r--r--games-rpg/twclone/Manifest4
-rw-r--r--games-rpg/twclone/files/twclone-0.14-format.patch75
-rw-r--r--games-rpg/twclone/metadata.xml18
-rw-r--r--games-rpg/twclone/twclone-0.14-r1.ebuild29
4 files changed, 126 insertions, 0 deletions
diff --git a/games-rpg/twclone/Manifest b/games-rpg/twclone/Manifest
new file mode 100644
index 000000000000..3a6a08ed143b
--- /dev/null
+++ b/games-rpg/twclone/Manifest
@@ -0,0 +1,4 @@
+AUX twclone-0.14-format.patch 2700 BLAKE2B 35c25983f3d8544405ecb4095c52866b7b3043aca6b32c1dedd25f3e5c8e7c22e0343bb1c1f7f4d662304a12abdf0c2380a55ce53a4f39c9e76229b00ee511de SHA512 ee5f7aebe920270194bb28ff9d788d040c50c3dffcfc4f2b05ccb05c61e8e1bef53b6e030cd1be9291121ad33e6345cbcb99c02f79d7eccc7a5c009556a636b3
+DIST twclone-source-0.14.tar.gz 163065 BLAKE2B 58d5fb13c5d6dc6bb5f73d2f4da8eace8aad7625a464b45099bd21d9cd8c3d29b25714f73e505d895b7fd8815c0dd3227a289009b7298ebaf83b0ada58deff73 SHA512 66a63e2cc5fe82fb5a5b1f887c9eb3bf8b89044f7f7d489b67e5bb15a21426a5a0eb27b53ab59c05c784fc6fb7ffaadcfc5453fc55943959db859a053adb7843
+EBUILD twclone-0.14-r1.ebuild 556 BLAKE2B 243f28a30624aa42dd70d4b0d1389cf9a5192b7aa25a5de583ce1c433e3f6a2cbbb65496825041c00fca762f04b66cc036924220748072bdbd26a238c43892a6 SHA512 18f5be3eb6e6d0fef5eddfccf4f7b2344aeb2dae7cec2a05160da1ae785a2ec43578f21547ff71c7b6aac9a9457ca7702c2edcb3af90d68d3532cc7007121d32
+MISC metadata.xml 687 BLAKE2B bdfc645799af71efafb6ab5c399dd7243f60584ec3be6333f40830cfdbf21618358eb210abcbd8c8d2c6cbfefdf8735886892781b4e9a7587c7f4f7f3eb21e53 SHA512 376bb763d716ad1cb9513b72f9b301b013339aad3d3df02124d14e653275b322dc18ff4c7d87899a424b2d75cb09f090b516845d6e3e7f46f91e98273abf7320
diff --git a/games-rpg/twclone/files/twclone-0.14-format.patch b/games-rpg/twclone/files/twclone-0.14-format.patch
new file mode 100644
index 000000000000..d9d1a1c52516
--- /dev/null
+++ b/games-rpg/twclone/files/twclone-0.14-format.patch
@@ -0,0 +1,75 @@
+--- 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++)
+ strcat(terraInfo, " ");
+- strcat(terraInfo, "\n");
+- fprintf (planetfile, terraInfo);
++ fprintf (planetfile, "%s\n", terraInfo);
+ sprintf (ferrinfo, "%d:%d:Ferringhi:1:-2:Unknown:1000:1000:1000:0:0:0:0:3:100000:20:30:10:0:0:0:0:", 2, ferringhiSector);
+ for (loop = 1; loop <= 299 - strlen(ferrinfo); loop++)
+ strcat(ferrinfo, " ");
+- strcat(ferrinfo, "\n");
+- fprintf(planetfile, ferrinfo);
++ fprintf(planetfile, "%s\n", ferrinfo);
+ randomPlanetInfo = malloc (sizeof (strNameLength));
+ if (numRandomPlanets > 0)
+ {
+@@ -552,8 +550,7 @@
+ , c, tempint, randomname (randomPlanetInfo), randomnum(1,5));
+ for (loop = 1; loop <= 299 - strlen(ferrinfo); loop++)
+ strcat(ferrinfo, " ");
+- strcat(ferrinfo, "\n");
+- fprintf(planetfile, ferrinfo);
++ fprintf(planetfile, "%s\n", ferrinfo);
+
+ c++;
+ }
+@@ -616,10 +613,9 @@
+ fileline = strcat (fileline, ":");
+ if (sectorlist[x]->nebulae != NULL)
+ fileline = strcat (fileline, sectorlist[x]->nebulae);
+- fileline = strcat (fileline, ":\n");
+ /* Later put in whitespace buffer for saving */
+ /* Not needed until user created beacons put in */
+- fprintf (file, fileline);
++ fprintf (file, "%s:\n", fileline);
+ }
+ fclose (file);
+ free (fileline);
+@@ -646,8 +642,7 @@
+ len = (int) strlen (fileline);
+ for (y = 0; y <= 99 - len; y++)
+ strcat (fileline, " ");
+- strcat (fileline, "\n");
+- fprintf (file, fileline);
++ fprintf (file, "%s\n", fileline);
+ }
+ fclose (file);
+
+--- 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++)
+ strcat(buffer, " ");
+- strcat(buffer, "\n");
+
+- fprintf(configfile, buffer);
++ fprintf(configfile, "%s\n", buffer);
+
+ fclose(configfile);
+ free(buffer);
+--- 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++)
+ strcat(stufftosave, " ");
+- strcat(stufftosave, "\n");
+- fprintf(planetfile, stufftosave);
++ fprintf(planetfile, "%s\n", stufftosave);
+ }
+ }
+ fclose(planetfile);
diff --git a/games-rpg/twclone/metadata.xml b/games-rpg/twclone/metadata.xml
new file mode 100644
index 000000000000..56bd9d00cd1f
--- /dev/null
+++ b/games-rpg/twclone/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <longdescription>
+How many of you remeber the BBS days back in the late 80's and early 90's?
+Back when you would call in play games and go on with your life? Well I'm
+trying to duplicate one of those old games. It was called Trade Wars
+2002(Created by Martech Software). So I decided to make a game similar to it
+that runs in Linux.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">twclone</remote-id>
+ </upstream>
+</pkgmetadata>
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 000000000000..95f7c5550971
--- /dev/null
+++ b/games-rpg/twclone/twclone-0.14-r1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 ~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
+}