Please, bump games-simulation/simutrans-111 Reproducible: Always
Created attachment 299929 [details] ebuild for current version 111.1 The ebuild is a slightly adapted version from the one in kork overlay, adding support for ppc and reflecting the newest available versions of both the game itself as well as the pak128 pakset. I'm not sure how to handle the additional define "-DUSE_C", which is needed on every arch non-x86 in order to use C stuff for some copying instead of x86 assembly. Right now it's an additional if statement per arch, but might be substituted by "if use !x86" or by using "-DUSE_C" universally even on x86. It also reflects the default build subtree location build/default/ within the source directory. Another comment on the addons/paksets: I'm not sure whether these should be placed in the game ebuild or separated into their own ebuild, either all-in-one with loads of use-flags or one ebuild per addon/pakset.
Created attachment 299937 [details] fixed ebuild fixed naming of zipfile for the food-addon
ISimutrans bumped to 111.2.2
0.111.2.2 builds and runs fine with the following changes: --- simutrans-0.111.1.ebuild 2012-06-16 13:36:04.406764068 +0100 +++ simutrans-0.111.2.2.ebuild 2012-06-16 15:04:19.426558572 +0100 @@ -7,9 +7,10 @@ MY_PV=${PV/0./} MY_PV=${MY_PV//./-} -MY_FOOD_PV=${MY_PV/%-2/-1} -MY_128_SV=111.0 -MY_128_PV=2.0.0--${MY_128_SV%.2} +MY_64_PV=111-2 +MY_FOOD_PV=111-1 +MY_128_SV=111.2 +MY_128_PV=2.1.0--${MY_128_SV} MY_SRCFRG="http://sourceforge.net/projects/${PN}/files" DESCRIPTION="A free Transport Tycoon clone" @@ -18,8 +19,8 @@ SRC_URI=" ${MY_SRCFRG}/simutrans/${MY_PV}/simutrans-src-${MY_PV}.zip/download -> simutrans-src-${MY_PV}.zip ${MY_SRCFRG}/simutrans/${MY_PV}/simulinux-${MY_PV}.zip/download -> simulinux-${MY_PV}.zip - ${MY_SRCFRG}/pak64/${MY_PV}/simupak64-${MY_PV}.zip/download -> simupak64-${MY_PV}.zip - ${MY_SRCFRG}/pak64/${MY_PV}/simupak64-food-${MY_PV}.zip/download -> simupak64-food-${MY_FOOD_PV}.zip + ${MY_SRCFRG}/pak64/${MY_64_PV}/simupak64-${MY_64_PV}.zip/download -> simupak64-${MY_64_PV}.zip + ${MY_SRCFRG}/pak64/${MY_FOOD_PV}/simupak64-food-${MY_FOOD_PV}.zip/download -> simupak64-food-${MY_FOOD_PV}.zip pak128? ( ${MY_SRCFRG}/pak128/pak128%20for%20${MY_128_SV//./-}/pak128-${MY_128_PV}.zip/download -> simupak128-${MY_128_PV}.zip ) " @@ -66,6 +67,9 @@ || die "sed failed" rm -f simutrans/simutrans + + # Fix compilation as per http://forum.simutrans.com/index.php?topic=9658.0 + epatch "${FILESDIR}"/${P}-csv-include.patch } src_install() { --- utils/csv.cc.old 2012-03-18 21:10:39.000000000 +0000 +++ utils/csv.cc 2012-06-16 14:48:07.643645405 +0100 @@ -8,6 +8,7 @@ #include <cstring> #include <stdio.h> #include <assert.h> +#include <stdlib.h> #include "csv.h" #include "simstring.h"
Created attachment 315511 [details] ebuild v0.111.2.2
Created attachment 315513 [details, diff] Patch to prevent build failure in csv.cc
*** Bug 376543 has been marked as a duplicate of this bug. ***
(In reply to comment #5) added some other paksets (128german, 64german, 128Britain) to your version. Although 0.111.3 is out, i'd prefer to version bump to 111.2.2, because 0.111.3 crashes here from time to time, when using german language ... Maybe some problem with the paksets ... diff: --- simutrans-0.111.2.2.ebuild 2012-06-27 10:35:18.000000000 +0200 +++ simutrans-0.111.2.2-r1.ebuild 2012-06-27 13:51:46.000000000 +0200 @@ -13,0 +14,7 @@ + +MY_64DE_SV=110-0c +MY_128DE_SV=111.2 +MY_128DE_PV=0.3_${MY_128DE_SV} +MY_128GB_SV=111-0 +MY_128GB_PV=1.11-111-2 + @@ -25 +32,13 @@ - " + + pak64german? ( + ${MY_SRCFRG}/pak.german/pak64.german-${MY_64DE_SV}/simupak-german64-${MY_64DE_SV}.zip/download -> simupak-german64-${MY_64DE_SV}.zip + ${MY_SRCFRG}/pak.german/pak64.german-${MY_64DE_PV}/simutrans-german64-addons-${MY_64DE_SV/c/}.zip/download -> simutrans-german64-addons-${MY_64DE_SV/c/}.zip + ${MY_SRCFRG}/pak.german/pak64.german-${MY_64DE_PV}/simupak-german64-industry-${MY_64DE_SV/c/}.zip/download -> simupak-german64-industry-${MY_64DE_SV/c/}.zip + ) + + pak128german? ( ${MY_SRCFRG}/PAK128.german/PAK128.german_${MY_128DE_SV}/PAK128.german_${MY_128DE_PV}.zip/download -> PAK128.german_${MY_128DE_PV}.zip ) + + pak128britain? ( + ${MY_SRCFRG}/pak128.britain/pak128.Britain%20for%20${MY_128GB_SV}/pak128.Britain.${MY_128GB_PV}.zip/download -> pak128.Britain.${MY_128GB_PV}.zip + ) +" @@ -30 +49,4 @@ -IUSE="+pak128" +IUSE="+pak128 pak64german pak128german pak128britain" + +# do not look on gentoo-mirrors, these files are not there ..... (yet :) +RESTRICT="primaryuri" @@ -72,0 +95,15 @@ + + # rename some files for consistent naming scheme + if use pak128britain ; then + mv pak128.Britain.111 simutrans/pak128.Britain + fi + + if use pak128german ; then + mv simutrans/PAK128.german simutrans/pak128.German + fi + + if use pak64german ; then + mv simutrans/pak64.german simutrans/pak64.German + mv simutrans/addons/pak64.german simutrans/addons/pak64.German + fi + @@ -82,0 +120,3 @@ + + elog "To install additional paksets add one of the following USE-Flags: pak128 pak64german pak128german pak128britain" + Compiles fine and runs stable on amd64.
Created attachment 316413 [details] Updated ebuild for Verseion 0.111.2.2 addes some more graphicel addons (paksets)
Created attachment 321010 [details] Ebuild for recent version 111.3.1 Updated ebuild for v111.3.1. Many paksets arent available yet for that version, but some already are.
Created attachment 321014 [details] Ebuild for complete version 110.0.1 I'll also add an ebuild for version 110.0.1, which enjoys much better pakset support than any of the 111.* versions so far.
Created attachment 334678 [details] Ebuild for Simutrans V 0.112.1
Created attachment 334680 [details] metadata.xml for 112-1
(In reply to comment #12) > Created attachment 334678 [details] > Ebuild for Simutrans V 0.112.1 Fogot to write: compiles & runs fine on amd64, not tested on x86 and ppc
games-simulation/simutrans-112.1 is in portage.