From 66f663e192d90c42c6cef01cfd3d5e1e1c111343 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Wed, 9 Dec 2015 09:18:34 +0100 Subject: [PATCH] castle_combat: remove game It was broken already (pygame sound error), and also requires numeric which is being removed. --- pkgs/games/castle-combat/default.nix | 71 ---------------------------- pkgs/top-level/all-packages.nix | 2 - 2 files changed, 73 deletions(-) delete mode 100644 pkgs/games/castle-combat/default.nix diff --git a/pkgs/games/castle-combat/default.nix b/pkgs/games/castle-combat/default.nix deleted file mode 100644 index d4f8f7cec7ae..000000000000 --- a/pkgs/games/castle-combat/default.nix +++ /dev/null @@ -1,71 +0,0 @@ -{ fetchurl, stdenv, buildPythonPackage, pygame, twisted, numeric, makeWrapper }: - -buildPythonPackage rec { - name = "castle-combat-0.8.1"; - namePrefix = ""; - - src = fetchurl { - url = "mirror://sourceforge/castle-combat/${name}.tar.gz"; - sha256 = "1hp4y5dgj88j9g44h4dqiakrgj8lip1krlrdl2qpffin08agrvik"; - }; - - buildInputs = [ makeWrapper ]; - propagatedBuildInputs = - [ pygame twisted - - # XXX: `Numeric.pth' should be found by Python but it's not. - # Gobolinux has the same problem: - # http://bugs.python.org/issue1431 . - numeric - ]; - - patchPhase = '' - sed -i "src/common.py" \ - -e "s|^data_path *=.*$|data_path = \"$out/share/${name}\"|g" - - mv -v "src/"*.py . - sed -i "setup.py" -e's/"src"/""/g' - ''; - - postInstall = '' - mkdir -p "$out/share/${name}" - cp -rv "data/"* "$out/share/${name}" - - mv -v "$out/bin/castle-combat.py" "$out/bin/castle-combat" - ''; - - postPhases = "fixLoaderPath"; - - fixLoaderPath = - let dollar = "\$"; in - '' sed -i "$out/bin/castle-combat" \ - -e "/^exec/ iexport LD_LIBRARY_PATH=\"$(cat ${stdenv.cc}/nix-support/orig-cc)/lib\:"'${dollar}'"LD_LIBRARY_PATH\"\\ -export LD_LIBRARY_PATH=\"$(cat ${stdenv.cc}/nix-support/orig-cc)/lib64\:"'${dollar}'"LD_LIBRARY_PATH\"" - ''; - # ^ - # `--- The run-time says: "libgcc_s.so.1 must be installed for - # pthread_cancel to work", which means it needs help to find it. - - # No test suite. - doCheck = false; - - broken = true; # pygame.error: Unrecognized music format - - meta = { - description = "Castle-Combat, a clone of the old arcade game Rampart"; - - longDescription = '' - Castle-Combat is a clone of the old arcade game Rampart. Up to - four players (or more in future versions) build castle walls, - place cannons inside these walls, and shoot at the walls of - their enemy(s). If a player cannot build a complete wall around - one of his castles, he loses. The last surviving player wins. - ''; - - homepage = http://www.linux-games.com/castle-combat/; - - license = "unknown"; - - maintainers = [ ]; - }; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9bfc7691f73d..69dfafb4ef57 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13958,8 +13958,6 @@ let bzflag = callPackage ../games/bzflag { }; - castle_combat = callPackage ../games/castle-combat { }; - cataclysm-dda = callPackage ../games/cataclysm-dda { }; chessdb = callPackage ../games/chessdb { };