* [gentoo-commits] proj/gamerlay:master commit in: games-action/gunroarhi/files/, games-action/gunroarhi/
@ 2020-03-05 21:18 Azamat H. Hackimov
0 siblings, 0 replies; only message in thread
From: Azamat H. Hackimov @ 2020-03-05 21:18 UTC (permalink / raw
To: gentoo-commits
commit: f6601a859fe9257c0e4c877229a7188ca398256c
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
AuthorDate: Thu Mar 5 20:36:58 2020 +0000
Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
CommitDate: Thu Mar 5 20:36:58 2020 +0000
URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=f6601a85
games-action/gunroarhi: remove package
Unavailable sources.
Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
.../gunroarhi/files/03_put_prefs_in_home_dir.diff | 92 ----------------------
games-action/gunroarhi/gunroarhi-0.30.ebuild | 72 -----------------
games-action/gunroarhi/metadata.xml | 8 --
3 files changed, 172 deletions(-)
diff --git a/games-action/gunroarhi/files/03_put_prefs_in_home_dir.diff b/games-action/gunroarhi/files/03_put_prefs_in_home_dir.diff
deleted file mode 100644
index 7f5b9aa..0000000
--- a/games-action/gunroarhi/files/03_put_prefs_in_home_dir.diff
+++ /dev/null
@@ -1,92 +0,0 @@
-diff -Naur gr_hi/src/abagames/gr/prefmanager.d gr_hi-p/src/abagames/gr/prefmanager.d
---- gr_hi/src/abagames/gr/prefmanager.d 2005-09-11 02:47:40.000000000 +0200
-+++ gr_hi-p/src/abagames/gr/prefmanager.d 2009-08-28 12:09:08.000000000 +0200
-@@ -6,6 +6,9 @@
- module abagames.gr.prefmanager;
-
- private import std.stream;
-+private import std.c.stdlib;
-+private import std.string;
-+private import std.file;
- private import abagames.util.prefmanager;
- private import abagames.gr.gamemanager;
-
-@@ -16,18 +19,31 @@
- private:
- static const int VERSION_NUM = 14;
- static const int VERSION_NUM_13 = 13;
-- static const char[] PREF_FILE = "gr.prf";
-+ static const char[] PREF_FILE = "gunroar.prf";
- PrefData _prefData;
-
- public this() {
- _prefData = new PrefData;
- }
-
-+ public static char[] pref_dir()
-+ {
-+ char * home = getenv("HOME");
-+ if (home is null)
-+ throw new Error("HOME environment variable not defined");
-+ char[] dir = std.string.toString(home) ~ "/.gunroarhi";
-+ try {
-+ mkdir(dir);
-+ } catch (FileException e) {
-+ }
-+ return dir;
-+ }
-+
- public void load() {
- auto File fd = new File;
- try {
- int ver;
-- fd.open(PREF_FILE);
-+ fd.open(pref_dir() ~ "/" ~ PREF_FILE);
- fd.read(ver);
- if (ver == VERSION_NUM_13)
- _prefData.loadVer13(fd);
-@@ -45,7 +61,7 @@
-
- public void save() {
- auto File fd = new File;
-- fd.create(PREF_FILE);
-+ fd.create(pref_dir() ~ "/" ~ PREF_FILE);
- fd.write(VERSION_NUM);
- _prefData.save(fd);
- fd.close();
-diff -Naur gr_hi/src/abagames/gr/replay.d gr_hi-p/src/abagames/gr/replay.d
---- gr_hi/src/abagames/gr/replay.d 2006-04-06 11:02:54.000000000 +0200
-+++ gr_hi-p/src/abagames/gr/replay.d 2009-08-28 12:10:19.000000000 +0200
-@@ -12,13 +12,13 @@
- private import abagames.util.sdl.mouse;
- private import abagames.gr.gamemanager;
- private import abagames.gr.mouseandpad;
-+private import abagames.gr.prefmanager;
-
- /**
- * Save/Load a replay data.
- */
- public class ReplayData {
- public:
-- static const char[] dir = "replay";
- static const int VERSION_NUM = -11; //otoyan change
- InputRecord!(PadState) padInputRecord;
- InputRecord!(TwinStickState) twinStickInputRecord;
-@@ -32,7 +32,7 @@
-
- public void save(char[] fileName) {
- auto File fd = new File;
-- fd.create(dir ~ "/" ~ fileName);
-+ fd.create(PrefManager.pref_dir() ~ "/" ~ fileName);
- fd.write(VERSION_NUM);
- fd.write(seed);
- fd.write(score);
-@@ -59,7 +59,7 @@
-
- public void load(char[] fileName) {
- auto File fd = new File;
-- fd.open(dir ~ "/" ~ fileName);
-+ fd.open(PrefManager.pref_dir() ~ "/" ~ fileName);
- int ver;
- fd.read(ver);
- if (ver != VERSION_NUM)
diff --git a/games-action/gunroarhi/gunroarhi-0.30.ebuild b/games-action/gunroarhi/gunroarhi-0.30.ebuild
deleted file mode 100644
index 609e280..0000000
--- a/games-action/gunroarhi/gunroarhi-0.30.ebuild
+++ /dev/null
@@ -1,72 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="2"
-
-inherit d-games
-
-MY_PD=gunroar
-MY_PDV=0_15
-MY_PDPV=0.15
-MY_PN=gr_hi
-MY_PV=${PV//./_}
-
-DESCRIPTION="Guns, Guns, Guns! 360-degree gunboat shooter, fork of ABAs 'Gunroar'"
-HOMEPAGE="http://www.edit.ne.jp/~otoyan/soft/gr_hi.html"
-SRC_URI="http://www.edit.ne.jp/~otoyan/soft/gr_hi/${MY_PN}${MY_PV}.zip
- mirror://debian/pool/main/g/${MY_PD}/${MY_PD}_${MY_PDPV}.dfsg1-3.diff.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~ppc ~x86"
-IUSE=""
-
-RDEPEND="media-libs/libsdl
- media-libs/mesa
- media-libs/sdl-mixer"
-
-DEPEND="${RDEPEND}"
-
-S=${WORKDIR}/${MY_PN}
-
-src_prepare(){
- # using frostworks patches with debian's cleanups and minor patches
- epatch "${WORKDIR}"/${MY_PD}_${MY_PDPV}.dfsg1-3.diff
- sed -i -e "s:a7xpg-0.11.dfsg1/::g" -i "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/patches/makefile.patch
- sed -i -e "s:${MY_PD}:${PN}:g" -i "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/patches/makefile.patch
- sed -i -e "s:${MY_PD}_${MY_PDPV}.dfsg1.orig/:old-gr:g" -i "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/patches/03_put_prefs_in_home_dir.diff
- sed -i -e "s:${MY_PD}_${MY_PDPV}.dfsg1/:new-gr:g" -i "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/patches/03_put_prefs_in_home_dir.diff
- sed -i -e "s:${MY_PD}_${MY_PDPV}.dfsg1.hi.orig/:old-gr:g" -i "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/patches/gunroar-hot-iron.patch
- sed -i -e "s:${MY_PD}_${MY_PDPV}.dfsg1.hi/:new-gr:g" -i "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/patches/gunroar-hot-iron.patch
- epatch "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/patches/01_sdl_fix_imports.diff
- epatch "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/patches/02_d_language_changes.diff
- epatch "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/patches/04_adapt_build_file_to_linux.diff
- epatch "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/patches/windowed.patch
- epatch "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/patches/makefile.patch
- epatch "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/patches/gdc-0.24-semantics-for-version.patch
- epatch "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/patches/window-resizing.patch
- epatch "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/patches/avoid-segfault-when-sdl-fails.patch
- epatch "${FILESDIR}"/03_put_prefs_in_home_dir.diff
- sed -i \
- -e 's:"\(images/[^"]*\)":"'${GAMES_DATADIR}'/'${PN}'/\1":g' -i src/abagames/util/sdl/texture.d \
- -e 's:"\(sounds/[^"]*\)":"'${GAMES_DATADIR}'/'${PN}'/\1":g' -i src/abagames/util/sdl/sound.d \
- || die "sed failed"
-}
-
-src_install() {
- dogamesbin ${PN}
-
- local datadir="${GAMES_DATADIR}"/${PN}
- dodir ${datadir}
- insinto "${GAMES_DATADIR}"/${PN}
- doins -r images sounds || die
- newicon "${S}"/${MY_PD}-${MY_PDPV}.dfsg1/debian/${MY_PD}.xpm ${PN}.xpm
- make_desktop_entry ${PN} ${PN}
- dodoc readme*
- prepgamesdirs
-}
-
-pkg_postinst() {
- games_pkg_postinst
-}
diff --git a/games-action/gunroarhi/metadata.xml b/games-action/gunroarhi/metadata.xml
deleted file mode 100644
index 5d0ede2..0000000
--- a/games-action/gunroarhi/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>
- <email>frostworks@gmx.de</email>
- <name>Marcel Unbehaun</name>
-</maintainer>
-</pkgmetadata>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-05 21:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-05 21:18 [gentoo-commits] proj/gamerlay:master commit in: games-action/gunroarhi/files/, games-action/gunroarhi/ Azamat H. Hackimov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox