summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games-simulation/micropolis/Manifest2
-rw-r--r--games-simulation/micropolis/files/micropolis-glibc-2.27.patch45
-rw-r--r--games-simulation/micropolis/files/micropolis-remove-matherr.patch31
-rw-r--r--games-simulation/micropolis/micropolis-1.0-r2.ebuild61
4 files changed, 0 insertions, 139 deletions
diff --git a/games-simulation/micropolis/Manifest b/games-simulation/micropolis/Manifest
index 13bae919aaa3..cc2239cc731b 100644
--- a/games-simulation/micropolis/Manifest
+++ b/games-simulation/micropolis/Manifest
@@ -1,3 +1 @@
-DIST micropolis-activity-source.tgz 7676438 BLAKE2B 9415cf2f1980fe5a1f412561c9a53dca86d388f9fb529801af1e6071b3c92bc03daaff84c1ac1f964578d5805a4f2a9f60cfa0c56c0a1032bc0eed686207e538 SHA512 fe65966c43d044e01a63a3cfe3cad48466eb1e5ec8b13c03abb52d582395a8ab527332d4d04454a4f32e85b65e55d72fe5e4d53a3f37b422d90e9208f00d9976
DIST micropolis-cc31822e4ebe54c0109623ac0c5cdf0e3acad755.tar.bz2 6725746 BLAKE2B a916389a1ccf63e1a13b5b6ea533939fdb14d814480c9e528c8b1bb89cbefbbad9ad067821c1de199f337692e226d35b3219354dc32612486d013cc20f21c5bc SHA512 1b5f644f6d7d7cb78965d0e0edcfcc0bdab7a103dd5dc3ce97a0048da9fa29d8757063d6681febab3d03182433cfe8a7bf1b8145a21e067a4c754af3b5af8e00
-DIST micropolis_git.patch 83549 BLAKE2B 13cd94f3018ffd23dcbe5c1baf0b948cac7fb9b2f858d42f259003f2697060b156b900fcc8611e560a8b46e0e68fb6ff78d376bfc937cf12b55655067fb13f6d SHA512 9d1801478a27184c48d327094cad8238f7972c2cf3624c7c196375f2dd20c3374575b393d44cb2fb99613e19d66c4cc4fb27ae52df9fddf4e42adb42523bdc17
diff --git a/games-simulation/micropolis/files/micropolis-glibc-2.27.patch b/games-simulation/micropolis/files/micropolis-glibc-2.27.patch
deleted file mode 100644
index ee4fd33ae875..000000000000
--- a/games-simulation/micropolis/files/micropolis-glibc-2.27.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-From: Markus Koschany <apo@debian.org>
-Date: Tue, 13 Mar 2018 20:25:31 +0100
-Subject: glibc 2.27
-
-Remove SVID error handling to fix FTBFS with glibc 2.27.
-
-Forwarded: no
-Bug-Debian: https://bugs.debian.org/891338
----
- src/tclx/src/tclxfmat.c | 21 +--------------------
- 1 file changed, 1 insertion(+), 20 deletions(-)
-
-diff --git a/src/tclx/src/tclxfmat.c b/src/tclx/src/tclxfmat.c
-index 19d42c3..2146566 100644
---- a/src/tclx/src/tclxfmat.c
-+++ b/src/tclx/src/tclxfmat.c
-@@ -119,27 +119,8 @@ static int
- ReturnFPMathError (interp)
- Tcl_Interp *interp;
- {
-- char *errorMsg;
-
-- switch (G_errorType) {
-- case DOMAIN:
-- errorMsg = "domain";
-- break;
-- case SING:
-- errorMsg = "singularity";
-- break;
-- case OVERFLOW:
-- errorMsg = "overflow";
-- break;
-- case UNDERFLOW:
-- errorMsg = "underflow";
-- break;
-- case TLOSS:
-- case PLOSS:
-- errorMsg = "loss of significance";
-- break;
-- }
-- Tcl_AppendResult (interp, "floating point ", errorMsg, " error",
-+ Tcl_AppendResult (interp, "floating point error",
- (char *) NULL);
- G_gotTclFPMathErr = FALSE; /* Clear the flag. */
- return TCL_ERROR;
diff --git a/games-simulation/micropolis/files/micropolis-remove-matherr.patch b/games-simulation/micropolis/files/micropolis-remove-matherr.patch
deleted file mode 100644
index c6bb1a1efc5a..000000000000
--- a/games-simulation/micropolis/files/micropolis-remove-matherr.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From: Markus Koschany <apo@debian.org>
-Date: Tue, 13 Mar 2018 21:42:31 +0100
-Subject: remove matherr
-
-Work around "tclxmerr.c:40:30: error: dereferencing pointer to incomplete type
-'struct exception'"
-
----
- src/tclx/src/tclxmerr.c | 9 ---------
- 1 file changed, 9 deletions(-)
-
-diff --git a/src/tclx/src/tclxmerr.c b/src/tclx/src/tclxmerr.c
-index dc3596b..06aad3a 100644
---- a/src/tclx/src/tclxmerr.c
-+++ b/src/tclx/src/tclxmerr.c
-@@ -33,15 +33,6 @@
- *
- *-----------------------------------------------------------------------------
- */
--int
--matherr (except)
-- struct exception *except;
--{
-- if (Tcl_MathError (except->name, except->type))
-- return 1;
-- else
-- return 0;
--}
-
- #else
-
diff --git a/games-simulation/micropolis/micropolis-1.0-r2.ebuild b/games-simulation/micropolis/micropolis-1.0-r2.ebuild
deleted file mode 100644
index c329f78b0817..000000000000
--- a/games-simulation/micropolis/micropolis-1.0-r2.ebuild
+++ /dev/null
@@ -1,61 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit desktop eutils toolchain-funcs
-
-DESCRIPTION="Free version of the well-known city building simulation"
-HOMEPAGE="http://www.donhopkins.com/home/micropolis/"
-SRC_URI="http://www.donhopkins.com/home/micropolis/${PN}-activity-source.tgz
- http://rmdir.de/~michael/${PN}_git.patch"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-RDEPEND="
- media-libs/libsdl
- media-libs/sdl-mixer
- x11-libs/libX11
- x11-libs/libXpm"
-DEPEND="${RDEPEND}"
-BDEPEND="sys-devel/bison"
-
-S=${WORKDIR}/${PN}-activity/
-
-PATCHES=(
- "${DISTDIR}"/${PN}_git.patch
- "${FILESDIR}/micropolis-glibc-2.27.patch"
- "${FILESDIR}/micropolis-remove-matherr.patch"
-)
-
-src_unpack() {
- unpack ${PN}-activity-source.tgz
-}
-
-src_prepare() {
- default
-
- sed -i -e "s:-O3:${CFLAGS}:" \
- src/tclx/config.mk src/{sim,tcl,tk}/makefile || die
- sed -i -e "s:XLDFLAGS=:&${LDFLAGS}:" \
- src/tclx/config.mk || die
-}
-
-src_compile() {
- emake -C src LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)"
-}
-
-src_install() {
- local dir=/usr/share/${PN}
-
- exeinto "${dir}/res"
- doexe src/sim/sim
- insinto "${dir}"
- doins -r activity cities images manual res
-
- make_wrapper micropolis res/sim "${dir}"
- doicon Micropolis.png
- make_desktop_entry micropolis "Micropolis" Micropolis
-}