commit: 9c9a028994d8605df81c14d1fc3335ea5b57de26 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> AuthorDate: Fri Feb 28 23:04:30 2020 +0000 Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru> CommitDate: Fri Feb 28 23:04:30 2020 +0000 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=9c9a0289
games-arcade/atomorun2008: remove package Deprecated eclass. Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com> games-arcade/atomorun2008/atomorun2008-1.0.ebuild | 65 --------------- .../files/atomorun2008-1.0-homedir.diff | 91 --------------------- games-arcade/atomorun2008/files/atomorun2008.png | Bin 4003 -> 0 bytes games-arcade/atomorun2008/metadata.xml | 8 -- 4 files changed, 164 deletions(-) diff --git a/games-arcade/atomorun2008/atomorun2008-1.0.ebuild b/games-arcade/atomorun2008/atomorun2008-1.0.ebuild deleted file mode 100644 index 515c1f2..0000000 --- a/games-arcade/atomorun2008/atomorun2008-1.0.ebuild +++ /dev/null @@ -1,65 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="2" - -inherit d-games - -DESCRIPTION="Matthias Thurau's great OpenGL 3D platform-game Atomorun2008" -HOMEPAGE="http://atomorun2008.whosme.de/" -SRC_URI="http://atomorun2008.whosme.de/${PN}-${PV}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~ppc ~x86" -IUSE="" - -RDEPEND="media-libs/libsdl - media-libs/mesa - media-libs/sdl-mixer" -DEPEND="${RDEPEND}" - -S=${WORKDIR}/${MY_PN} - -src_unpack(){ - unpack ${A} -} - -src_prepare(){ - cd "${S}/${PN}-${PV}" - epatch ${FILESDIR}/"${P}-homedir.diff" - for i in `find src -name *.d`; do sed -i "$i" -e "s:resources/:"${GAMES_DATADIR}"/"${PN}"/resources/:g"; done - cd resources - for i in `find heightmaps -name *.txt`; do sed -i "$i" -e "s:resources/:"${GAMES_DATADIR}"/"${PN}"/resources/:g"; done - for i in `find lvls -name *.txt`; do sed -i "$i" -e "s:resources/:"${GAMES_DATADIR}"/"${PN}"/resources/:g"; done - for i in `find meshes -name *.zms`; do sed -i "$i" -e "s:resources/:"${GAMES_DATADIR}"/"${PN}"/resources/:g"; done - for i in `find meshes -name *.py`; do sed -i "$i" -e "s:resources/:"${GAMES_DATADIR}"/"${PN}"/resources/:g"; done -} - -src_compile() { - cd "${S}/${PN}-${PV}" - emake || die -} - -src_install() { - cd "${S}/${PN}-${PV}" - dogamesbin ${PN} - - local datadir="${GAMES_DATADIR}"/"${PN}" - dodir ${datadir} - insinto "${GAMES_DATADIR}"/"${PN}" - doins -r resources || die - - insinto "${GAMES_SYSCONFDIR}"/"${PN}" - doins resources/config.cfg || die "doins config.cfg failed" - - newicon "${FILESDIR}"/"${PN}.png" "${PN}.png" - make_desktop_entry "${PN}" "${PN}" - dodoc README* - prepgamesdirs -} - -pkg_postinst() { - games_pkg_postinst -} diff --git a/games-arcade/atomorun2008/files/atomorun2008-1.0-homedir.diff b/games-arcade/atomorun2008/files/atomorun2008-1.0-homedir.diff deleted file mode 100644 index b04ee58..0000000 --- a/games-arcade/atomorun2008/files/atomorun2008-1.0-homedir.diff +++ /dev/null @@ -1,91 +0,0 @@ -diff -Naur atomorun2008-1.0/src/application.d atomorun2008-1.0-p/src/application.d ---- atomorun2008-1.0/src/application.d 2008-03-13 16:33:20.000000000 +0100 -+++ atomorun2008-1.0-p/src/application.d 2009-08-28 18:16:49.000000000 +0200 -@@ -24,6 +24,8 @@ - - import std.stdio; - import std.stream; -+import std.c.stdlib; -+import std.string; - - class Application : Task, ActionListener { - public: -@@ -138,17 +140,28 @@ - }; - }; - -+ -+ static const char[] PREF_FILE = ".atomorun2008/savegame"; -+ -+public char[] pref_file() { -+ char * home = getenv("HOME"); -+ if (home is null) -+ throw new Error("HOME environment variable is not defined"); -+ return std.string.toString(home) ~ "/" ~ PREF_FILE; -+ } -+ -+ - private: - void addPrize(int p) { - File savegame = new File(); -- savegame.open("resources/savegame", FileMode.In); -+ savegame.open(pref_file(), FileMode.In); - int[] savegameData; - while (!savegame.eof) { - savegameData ~= 0; - savegame.readf(&savegameData[length-1]); - }; - savegame.close(); -- savegame.open("resources/savegame", FileMode.Out); -+ savegame.open(pref_file(), FileMode.Out); - if (p>savegameData[0] && attribute == "resources/lvls/lvl1.txt") savegame.writef(p, " "); - else savegame.writef(savegameData[0], " "); - if (p>savegameData[1] && attribute == "resources/lvls/lvl2.txt") savegame.writef(p, " "); -diff -Naur atomorun2008-1.0/src/dengine.d atomorun2008-1.0-p/src/dengine.d ---- atomorun2008-1.0/src/dengine.d 2008-03-11 11:44:54.000000000 +0100 -+++ atomorun2008-1.0-p/src/dengine.d 2009-08-28 18:17:09.000000000 +0200 -@@ -12,7 +12,7 @@ - - class DEngine : Task { - void init() { -- Config.load("resources/config.cfg"); -+ Config.load("/etc/games/atomorun2008/config.cfg"); - - myTasks ~= Window.getInstance(); - myTasks ~= Input.getInstance(); -diff -Naur atomorun2008-1.0/src/menuelvl.d atomorun2008-1.0-p/src/menuelvl.d ---- atomorun2008-1.0/src/menuelvl.d 2008-03-13 16:35:20.000000000 +0100 -+++ atomorun2008-1.0-p/src/menuelvl.d 2009-08-28 18:18:20.000000000 +0200 -@@ -16,11 +16,23 @@ - import texture2d; - - import std.stream; -+import std.c.stdlib; -+import std.string; - - import std.stdio; - - class MenueLVL : MenueImpl { - public: -+ -+ static const char[] PREF_FILE = ".atomorun2008/savegame"; -+ -+public char[] pref_file() { -+ char * home = getenv("HOME"); -+ if (home is null) -+ throw new Error("HOME environment variable is not defined"); -+ return std.string.toString(home) ~ "/" ~ PREF_FILE; -+ } -+ - override void init(Menue theMenue) { - myButtons.length = 1; - myButtons[0] = new Button; -@@ -57,7 +69,7 @@ - myImageButtons[6].addActionListener(theMenue, "Game", "resources/lvls/lvl3b.txt"); - - File hm = new File(); -- hm.open("resources/savegame", FileMode.In); -+ hm.open(pref_file(), FileMode.In); - int data; - while (!hm.eof) { - hm.readf(&data); diff --git a/games-arcade/atomorun2008/files/atomorun2008.png b/games-arcade/atomorun2008/files/atomorun2008.png deleted file mode 100755 index ce18ef9..0000000 Binary files a/games-arcade/atomorun2008/files/atomorun2008.png and /dev/null differ diff --git a/games-arcade/atomorun2008/metadata.xml b/games-arcade/atomorun2008/metadata.xml deleted file mode 100644 index 1811bf7..0000000 --- a/games-arcade/atomorun2008/metadata.xml +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<maintainer type="person"> - <email>[email protected]</email> - <name>Marcel Unbehaun</name> -</maintainer> -</pkgmetadata>
