diff options
| author | eroen | 2014-12-21 00:48:37 +0100 |
|---|---|---|
| committer | eroen | 2014-12-21 21:45:00 +0100 |
| commit | 6a8e7682ee934c4ceed3e65abdc0140c0afc2466 (patch) | |
| tree | f4e3fabd511da624484f3251cda38bc345db7541 /games-simulation/simutrans | |
| parent | de575d9600560b0f8059fa9211d6462d46d5d9b4 (diff) | |
| download | eroen-overlay-6a8e7682ee934c4ceed3e65abdc0140c0afc2466.tar.gz eroen-overlay-6a8e7682ee934c4ceed3e65abdc0140c0afc2466.tar.bz2 eroen-overlay-6a8e7682ee934c4ceed3e65abdc0140c0afc2466.tar.xz | |
simutrans-0.120.0.1 - bump
Diffstat (limited to 'games-simulation/simutrans')
| -rw-r--r-- | games-simulation/simutrans/Manifest | 3 | ||||
| -rw-r--r-- | games-simulation/simutrans/files/simutrans-0.120.0.1-Makefile.patch | 97 | ||||
| -rw-r--r-- | games-simulation/simutrans/simutrans-0.120.0.1.ebuild | 82 |
3 files changed, 182 insertions, 0 deletions
diff --git a/games-simulation/simutrans/Manifest b/games-simulation/simutrans/Manifest index aea54f11..5bea5c55 100644 --- a/games-simulation/simutrans/Manifest +++ b/games-simulation/simutrans/Manifest @@ -1,3 +1,6 @@ DIST simulinux-112-3.zip 3071766 SHA256 2ca8375b44b433e7034dd17515d1f8319d4a04e18960d0d8c828cf7603199e92 SHA512 9e051989761d0c469b070af99b95ad04f1f96e85513664d5ff13b564404bed579217d90f92e5e80069288d0e5db0887a1f1ca9a62250895a58f63ad592d62e7c WHIRLPOOL f2a844e981ec4db115ef9e36e18e8bce8f494063d4d3d1e13e56c9837c382d6559954ef2002e26a40accf82da088aa5cd91001ac7f834134f50472840692b920 +DIST simulinux-i86-120-0-1.zip 2880220 SHA256 87558eff3189d17ff442aaec1bb287cedf65cd0d36d2d460012b96d5f026910b SHA512 8de50881548e6803992f08ccdb6c0633da8902accab5fc897758dcb6b8f7f407d84e0f8df83df96dff84381bc12ee3607d826d027ebb6cc8973af092aae1ed58 WHIRLPOOL be517cad9201def55176831a81d417c369cbcd3528160cd730b70710e1b685d7613502a29b96e7a8f7d76426eef8180730bb0634e0079348b6b17b6e7e45e494 DIST simupak64-112-3.zip 4117394 SHA256 dc443d9ddc1f36e10435f672a03f86d4ad83e33926045b14664f6d2580b56e8b SHA512 7e5997efb52c36a1871e25ca3f278088aa5450f6ba4abb447dd3881438bda4473571166b79719cb8b5879f878538e74c5375683b8d76ddbdd5c575de690c44a9 WHIRLPOOL aa92bd5882827e6c1cb54a99bf92ff6251c31fb37072457b802d499e47e3b3ea5ff52592e56d04d71c6e1e8b2588c57c195793233a0b5322247651a2a3b02d6a +DIST simupak64-120-0-1.zip 4051769 SHA256 02a709dfa4b0c22e0b463ebcbd9684548356de1c61566cff9c127a79990dbb78 SHA512 21badd251b9018bef55531923e23cb1935c3831784fab028febd3879384330e843329499ab08a08e71238fb92bf7db36e18ecbbc4e719a942e427f58fc634afc WHIRLPOOL 5ae84653b5a138b5a987b7ca6512994f3ba8dff48fffbb94f6fe0bf4845d5537e93734f73174eb328f20b6c9986235ae6c461c55b5efde53a4b81620a3b1da83 DIST simutrans-src-112-3.zip 1677347 SHA256 8aa9ded7ac65587d65070b950b50f4094b7f77d33d263d1b821a0fe9f214b849 SHA512 0d63da8bed2298dd4516caea748a10c7c27eec2fb00ced9c76600ec93a975a01efa0fe7b4c8f8a5dc9e035b8c1dcf1f7772dfec54594f41efb8c4790d4da99e9 WHIRLPOOL 7ed9310d49339421fed2c4ca8098f21d367de7ad2d933d1d56d5c25542995657f1a98b34066464fbf916ffa4903338bd519fd1e15437017d7899bc2b4c4466f1 +DIST simutrans-src-120-0-1.zip 3909005 SHA256 010a6e3765891e1821364e54f6bcdfb2911b627ffca3acae8350e06e53113683 SHA512 6f32b6f1c12f45125de8a12c4a034387a784e21fd8cdedcf7b1daefd9174d9a94825e8f68effa2ff1436cce2e2bc8cb5707161f3fa004185ae158400840dc450 WHIRLPOOL 36155184f5806a9cfab742f26e3fc78d5d7d928f99cddabbaf36c7c90d065dab02bb174c07d9633958f8b891b0db8cc5c94e45fd4f22d917b9a037c51a99b69a diff --git a/games-simulation/simutrans/files/simutrans-0.120.0.1-Makefile.patch b/games-simulation/simutrans/files/simutrans-0.120.0.1-Makefile.patch new file mode 100644 index 00000000..fce59ebe --- /dev/null +++ b/games-simulation/simutrans/files/simutrans-0.120.0.1-Makefile.patch @@ -0,0 +1,97 @@ +--- Makefile.orig 2014-12-20 20:49:14.974041829 +0100 ++++ Makefile 2014-12-20 20:52:26.302603669 +0100 +@@ -81,8 +81,6 @@ + ifeq ($(findstring $(OSTYPE), amiga haiku mac),)
+ CFLAGS += -minline-all-stringops
+ endif
+-else
+- CFLAGS += -O
+ endif
+
+ ifdef DEBUG
+@@ -101,6 +99,7 @@ + endif
+ else
+ CFLAGS += -DNDEBUG
++ CXXFLAGS += -DNDEBUG
+ endif
+
+ ifneq ($(PROFILE),)
+@@ -114,6 +113,7 @@ + ifneq ($(MULTI_THREAD),)
+ ifeq ($(shell expr $(MULTI_THREAD) \>= 1), 1)
+ CFLAGS += -DMULTI_THREAD
++ CXXFLAGS += -DMULTI_THREAD
+ ifeq ($(OSTYPE),mingw)
+ #use lpthreadGC2d for debug alternatively
+ LDFLAGS += -lpthreadGC2
+@@ -132,11 +132,13 @@ + endif
+ ifneq ($(REV),)
+ CFLAGS += -DREVISION="$(REV)"
++ CXXFLAGS += -DREVISION="$(REV)"
+ endif
+ endif
+ endif
+
+ CFLAGS += -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align $(FLAGS)
++CXXFLAGS += -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align $(FLAGS)
+ CCFLAGS += -Wstrict-prototypes
+
+
+@@ -455,6 +457,7 @@ + ALLEGRO_LDFLAGS := $(shell $(ALLEGRO_CONFIG) --libs)
+ endif
+ CFLAGS += $(ALLEGRO_CFLAGS) -DUSE_SOFTPOINTER
++ CXXFLAGS += $(ALLEGRO_CFLAGS) -DUSE_SOFTPOINTER
+ LIBS += $(ALLEGRO_LDFLAGS)
+ endif
+
+@@ -492,6 +495,7 @@ + SDL_LDFLAGS := $(shell $(SDL_CONFIG) --libs)
+ endif
+ CFLAGS += $(SDL_CFLAGS)
++ CXXFLAGS += $(SDL_CFLAGS)
+ LIBS += $(SDL_LDFLAGS)
+ endif
+
+@@ -523,6 +527,7 @@ + SDL_LDFLAGS := $(shell $(SDL2_CONFIG) --libs)
+ endif
+ CFLAGS += $(SDL_CFLAGS)
++ CXXFLAGS += $(SDL_CFLAGS)
+ LIBS += $(SDL_LDFLAGS)
+ endif
+
+@@ -538,6 +543,7 @@ + SDL_LDFLAGS := $(shell $(SDL_CONFIG) --libs)
+ endif
+ CFLAGS += $(SDL_CFLAGS)
++ CXXFLAGS += $(SDL_CFLAGS)
+ LIBS += $(SDL_LDFLAGS) -lSDL_mixer
+ endif
+
+@@ -564,6 +570,7 @@ + SDL_LDFLAGS := $(shell $(SDL_CONFIG) --libs)
+ endif
+ CFLAGS += $(SDL_CFLAGS)
++ CXXFLAGS += $(SDL_CFLAGS)
+ LIBS += $(SDL_LDFLAGS) -lglew32
+ ifeq ($(OSTYPE),mingw)
+ LIBS += -lopengl32
+@@ -579,6 +586,7 @@ + endif
+
+ CFLAGS += -DCOLOUR_DEPTH=$(COLOUR_DEPTH)
++CXXFLAGS += -DCOLOUR_DEPTH=$(COLOUR_DEPTH)
+
+ ifneq ($(findstring $(OSTYPE), cygwin mingw),)
+ SOURCES += simres.rc
+@@ -586,7 +594,6 @@ + endif
+
+ CCFLAGS += $(CFLAGS)
+-CXXFLAGS += $(CFLAGS)
+
+ BUILDDIR ?= build/$(CFG)
+ PROGDIR ?= $(BUILDDIR)
diff --git a/games-simulation/simutrans/simutrans-0.120.0.1.ebuild b/games-simulation/simutrans/simutrans-0.120.0.1.ebuild new file mode 100644 index 00000000..5b566533 --- /dev/null +++ b/games-simulation/simutrans/simutrans-0.120.0.1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 +inherit eutils flag-o-matic gnome2-utils games + +MY_PV=${PV##0.} +MY_PV=${MY_PV//./-} +DESCRIPTION="A free Transport Tycoon clone" +HOMEPAGE="http://www.simutrans.com/" +SRC_URI="mirror://sourceforge/simutrans/simutrans-src-${MY_PV}.zip + mirror://sourceforge/simutrans/simulinux-i86-${MY_PV}.zip + mirror://sourceforge/simutrans/simupak64-${MY_PV}.zip" + +LICENSE="Artistic MIT" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="" + +RDEPEND="media-libs/libsdl[sound,video] + sys-libs/zlib + app-arch/bzip2 + media-libs/sdl-mixer" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR} + +src_prepare() { + strip-flags # bug #293927 + +# if use !x86 ; then +# echo "FLAGS+= -DUSE_C" >> config.default || die +# fi + + # make it look in the install location for the data + sed -i \ + -e "s:argv\[0\]:\"${GAMES_DATADIR}/${PN}/\":" \ + simmain.cc || die + + epatch \ + "${FILESDIR}"/${P}-Makefile.patch + rm -f simutrans/{simutrans,*.txt} + mv simutrans/get_pak.sh "${T}" || die +} + +src_configure() { + sh configure.sh || die + + local backend=mixer_sdl + sed -e '/^DEBUG/d' \ + -e '/^OPTIMISE/d' \ + -e '/^BACKEND/s/=.*$/= '"${backend}"'/' \ + -i config.default + echo 'VERBOSE = 1' >> config.default +} + +src_install() { + newgamesbin sim ${PN} + dogamesbin "${T}"/get_pak.sh + insinto "${GAMES_DATADIR}"/${PN} + doins -r simutrans/* + dodoc documentation/* + doicon simutrans.ico + make_desktop_entry simutrans Simutrans simutrans.ico + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} |
