summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-action')
-rw-r--r--games-action/gunroarhi/Manifest22
-rw-r--r--games-action/gunroarhi/files/03_put_prefs_in_home_dir.diff92
-rw-r--r--games-action/gunroarhi/gunroarhi-0.30.ebuild72
-rw-r--r--games-action/gunroarhi/metadata.xml8
4 files changed, 0 insertions, 194 deletions
diff --git a/games-action/gunroarhi/Manifest b/games-action/gunroarhi/Manifest
deleted file mode 100644
index 24e0e60..0000000
--- a/games-action/gunroarhi/Manifest
+++ /dev/null
@@ -1,22 +0,0 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
-
-DIST gr_hi0_30.zip 5502395 SHA256 c2adc4d1aa616736e968d4214a2bc52b0d2a21ae1dbbe5a01e9c57826901692a
-DIST gunroar_0.15.dfsg1-3.diff.gz 20960 SHA256 4ba7b1cd43ae9fc0fa6c055e83aefb82541733e3ce9d68217efdb942ad165137
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.19 (GNU/Linux)
-
-iQIcBAEBCAAGBQJQlghaAAoJECZQPTSbOzNLPpMP/juWnDxesY8eP2aLWboPcT3C
-MNYeTxi4MqML5cGxXB/eiTvLE6CUawWLJvmRVJYHrq3zXHUj5FmNUEKot6AQXoqO
-MAeP8HKLWhSCrLKg8yWvbSiCcsZNJD710RQBlzkP683cEmNvX60R+qA4ftdeeNbU
-7cXkCpKVYJpQ7MzY+UT/DLur0fs4mYIuyV3mcghlT0K2EsFD2fjNrLkW7b5Vq+dc
-UqzwvFbqyWEUdLzp2AjjBnr7nSa8iOsK4P6cwLBgjOKTyRErsKf2XsgPl3MkGzQQ
-gLsOHkfRE8zhsBr5PccDLX9GJo9bYfloE24fB76EhMKxPa5Evxga+xVtLKTOTaEY
-6KtKxjCQtTvDs3a4kMipjI9cDoTF/BHtAQQJNaLL3eBiQ8GyQhBRMx/zX1KMnmBo
-2PF6EA7RHkjcwybc+aVIEksIwYPawOykIiT0AeThXiqsi/tKVAdK3/Go7c/kDcIg
-h+PvvvbziXpHHEINzOaUHtlOBd87uylGEip1m9d0VIjLm/YHOS9Dvz7QsGWpJUJU
-TBsRqtDsRaB9FsO676+oc57thB9pTHBu/2w0fpoCx0DKMDVMN1X+D9SPEvrQOhnf
-LByCye+PZuDECy+wD2qariXbuvbimQ7ZX5PNdHv0FY07PZr/+8M4hFla5EqgyeSY
-TmJZtYe7c0Yacho1J4zR
-=10rH
------END PGP SIGNATURE-----
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>