diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-rpg/twclone |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-rpg/twclone')
-rw-r--r-- | games-rpg/twclone/Manifest | 7 | ||||
-rw-r--r-- | games-rpg/twclone/files/twclone-0.14-format.patch | 75 | ||||
-rw-r--r-- | games-rpg/twclone/metadata.xml | 18 | ||||
-rw-r--r-- | games-rpg/twclone/twclone-0.14-r1.ebuild | 29 | ||||
-rw-r--r-- | games-rpg/twclone/twclone-0.14.ebuild | 31 |
5 files changed, 160 insertions, 0 deletions
diff --git a/games-rpg/twclone/Manifest b/games-rpg/twclone/Manifest new file mode 100644 index 000000000000..06c2cd26cc91 --- /dev/null +++ b/games-rpg/twclone/Manifest @@ -0,0 +1,7 @@ +AUX twclone-0.14-format.patch 2700 SHA256 104517bdfe111d1b78dd6e2f42370f70cfbfda856c4c72faea355e8fc8ceccc8 SHA512 ee5f7aebe920270194bb28ff9d788d040c50c3dffcfc4f2b05ccb05c61e8e1bef53b6e030cd1be9291121ad33e6345cbcb99c02f79d7eccc7a5c009556a636b3 WHIRLPOOL 205fc4b0ba56f8c976a8b00f7f7839891afb8fb9f6a503a432b923bf00efa2a4c6e81780b6104a2b7b56e51f8aeaec0dc15ff0f12183637156bc7484a43133e2 +DIST twclone-source-0.14.tar.gz 163065 SHA256 3fa3bca53db9115555633a19671c89fdd7021a6b7f9061365386e131270b6cbc SHA512 66a63e2cc5fe82fb5a5b1f887c9eb3bf8b89044f7f7d489b67e5bb15a21426a5a0eb27b53ab59c05c784fc6fb7ffaadcfc5453fc55943959db859a053adb7843 WHIRLPOOL 660c8ac33f6f0315ccd6eca67f7f61bf2ebc160a1dbbec28f860dce37b51f662dfa45f3f61ab63f62e1ded5e4c1e32c35a105d70fc254e66c3cce70f9a462507 +EBUILD twclone-0.14-r1.ebuild 556 SHA256 448858d755d775346f0f1ce9e5574a9e27a9c0045fe0c4fe256e1be927917cf4 SHA512 18f5be3eb6e6d0fef5eddfccf4f7b2344aeb2dae7cec2a05160da1ae785a2ec43578f21547ff71c7b6aac9a9457ca7702c2edcb3af90d68d3532cc7007121d32 WHIRLPOOL 370c0a1252641f655c5a25f5f4f6a812e79a993315236d29083aa047641fc29e01746b0f070651cd8ab486489d544a0de96ec4b140668ab4b2d26971915ec861 +EBUILD twclone-0.14.ebuild 611 SHA256 e1e62ab6a458d3fb8896a4b154fc35a1bf23453aaa9490f1e6f385df0621d3e1 SHA512 3b046b8324efb8b35a61dd628f8d2b05daded830dc7d35cd693f7864b8efcbf90d69345e14d91ba64f1dea3b5acade51b6a1522886db3f791cdfa255ab7835f2 WHIRLPOOL 29662192c6cd50241638ccbd8d75c0935c7754acd81e29bfd12297a59dc560a0a61c207491bc4b680b9ca1cd627595924e3984428b270c3ad4f95e261c1ed2df +MISC ChangeLog 3036 SHA256 e58428a8287f7ce8ee2a3c82f89f8be74f8152e6af134190c375318b4acc8baa SHA512 b72237108ed1dfed903e372f808f1ce16f3c893ca9711e9cdda08e915bb8361bda0a04160d9ae3d658de343f553d6398ff172fe0c6a979715d212ba9ea0f4e98 WHIRLPOOL 1a9511343f88fdc8af339e50f7daea84588d08872229a72506859b9577fdcf9064cec6c0119e321e2663d937cbac64abdaffc017161b834674b5875a9240eaf8 +MISC ChangeLog-2015 739 SHA256 8e0293472d5a8627e9ccb1f4742f52a0605c18f31e00b8d3a99bf8dd3bb71a8f SHA512 50d04e7222fd4985e275390f5c427e65a2d022ba38e888cfe21edbf055956ccebb401f0b8c0d048a6e37a99f2e2de7d1938d791f00c23649aeb926b248de7a53 WHIRLPOOL 5bbf2adfe006b84bfe6ec26c6538c8f81292bf484be878a54c5ed693270b737131506dca528c7a7060e74f3971b6fd47f17ba6500ae455b14ef8f4f4416c1c55 +MISC metadata.xml 687 SHA256 4ac84207da432eaccd9d36829e1f4e24f295c368b276354be9c73653eca09d00 SHA512 376bb763d716ad1cb9513b72f9b301b013339aad3d3df02124d14e653275b322dc18ff4c7d87899a424b2d75cb09f090b516845d6e3e7f46f91e98273abf7320 WHIRLPOOL dbc6db9655151d584c553dc4a8bcf01f1c88105fdd5600d35b097b297cbba4553d9c60f4c469e37229a46bc937ee56fe23ea9535274707057ad949f3f91f3e1f 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 +} diff --git a/games-rpg/twclone/twclone-0.14.ebuild b/games-rpg/twclone/twclone-0.14.ebuild new file mode 100644 index 000000000000..36b7d7a1f33c --- /dev/null +++ b/games-rpg/twclone/twclone-0.14.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils games + +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} + +src_prepare() { + epatch "${FILESDIR}"/${P}-format.patch +} + +src_install() { + DOCS="AUTHORS ChangeLog PROTOCOL README TODO" \ + default + cd "${D}/${GAMES_BINDIR}" + for f in * ; do + mv {,${PN}-}${f} + done + prepgamesdirs +} |