summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzamat H. Hackimov <azamat.hackimov@gmail.com>2018-11-11 02:32:26 +0300
committerAzamat H. Hackimov <azamat.hackimov@gmail.com>2018-11-11 02:44:20 +0300
commitbc45f323b5c6310297bc573c90bf4598f255796d (patch)
treec02ad6d38d83ce3784f9b2505d54963146fad73f /games-rpg
parentgames-rpg/lonesurvivor: update ebuild (diff)
downloadgamerlay-bc45f323b5c6310297bc573c90bf4598f255796d.tar.gz
gamerlay-bc45f323b5c6310297bc573c90bf4598f255796d.tar.bz2
gamerlay-bc45f323b5c6310297bc573c90bf4598f255796d.zip
games-rpg/zelda3t: update ebuild
Migrate from games.eclass, cleanup Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com> Package-Manager: Portage-2.3.49, Repoman-2.3.11
Diffstat (limited to 'games-rpg')
-rw-r--r--games-rpg/zelda3t/Manifest22
-rw-r--r--games-rpg/zelda3t/files/zelda3t-homedir.patch12
-rw-r--r--games-rpg/zelda3t/metadata.xml2
-rw-r--r--games-rpg/zelda3t/zelda3t-1.9.ebuild36
4 files changed, 24 insertions, 48 deletions
diff --git a/games-rpg/zelda3t/Manifest b/games-rpg/zelda3t/Manifest
index ae047e5..eb250ba 100644
--- a/games-rpg/zelda3t/Manifest
+++ b/games-rpg/zelda3t/Manifest
@@ -1,21 +1 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
-
-DIST Zelda3T_US-src-linux.zip 4287661 SHA256 2c2b1c8bca4e8b1c362ef2ddfb95cebf0c5526d4aa6917340289db0a5d0096d3
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.19 (GNU/Linux)
-
-iQIcBAEBCAAGBQJQlghhAAoJECZQPTSbOzNL4P8P/00ohdgR2ywfHubRWL7VO5Aw
-RmlgfxaRvynTaK25RA7Ra3reoiaro6USZ1RDZkYspRVEM0LsvQzGP9hTZ/qMpd+H
-hNsbTcdNEDMw8Ca2dzEzZn/99hHpy2RatIBj2E3QV/aM9HP6VU7XRV/5WGb2vmri
-SJTdy469+UA52d6t/cmBVPXwuEE8Y7MaVw+ibIdMKlZOChseQdadhUAIZbK1RgJc
-zYaLvzca4Y5+4ydDE2k3J0Kmx1SwGFuUJOWGt3upd+3lBR8T/RLSZUyNlIg5NWFo
-5KIGfqMLwpElgBqdTkkRAbyIJkHHyTieWcjPbXoqNqi/++XiHPhGhCLXtdieKfpN
-sNHproMFUu7O2zVErT5t5CMTuaYCMzM/Et8CL988a/x8i5uYJx+O7LTSItx3J15e
-2rce9AYPr7eWXLk83K82sFgiY1CRNaQl3WTbdjT5JoANohfDd78IsY07Sj3qixxY
-AnEGdhG+TbQyNhjH38SAJ8qd/BwL3ZJSXvqoOLK8veegQBISc5rN/q5AEqfqUO/H
-QhpE5ml9XE5u+umKXK9it75OyDxw+Hc1NoMhzt7lrZzzuPjAmws+rNaKSu31tDf9
-+k2+VEX0g9d9sbA27A4V52svlnol5wwAaBtjV7HSuuXlowwm/cUSaR8Ssmnf+Gnz
-8fMgVSdpnsKO91MQqXx3
-=lBMv
------END PGP SIGNATURE-----
+DIST Zelda3T_US-src-linux.zip 4287661 SHA256 2c2b1c8bca4e8b1c362ef2ddfb95cebf0c5526d4aa6917340289db0a5d0096d3 SHA512 4bb167d9a27031ef36ff0098cc91108f0543cf76604ecea85bca12ae26850170cb54a70cc6b03fca26d7cefb4e9eba7644c5229209d39bb6a1b4429181f2f7df WHIRLPOOL 7a816374722734df45d016ee596743877c972d525f9816840e452322c49461e95fdf14cb3fd759e0bde78a9c666734708234329b18555b52020511493f684b30
diff --git a/games-rpg/zelda3t/files/zelda3t-homedir.patch b/games-rpg/zelda3t/files/zelda3t-homedir.patch
index adc14e1..7c4f019 100644
--- a/games-rpg/zelda3t/files/zelda3t-homedir.patch
+++ b/games-rpg/zelda3t/files/zelda3t-homedir.patch
@@ -1,6 +1,6 @@
-diff -Naur Zelda3T_US-src-linux/src/Joueur.cpp Zelda3T_US-src-linux/src/Joueur.cpp
---- Zelda3T_US-src-linux/src/Joueur.cpp 2010-01-16 17:58:24.000000000 +0100
-+++ Zelda3T_US-src-linux/src/Joueur.cpp 2010-10-10 11:31:13.000000000 +0200
+diff -Naur a/Joueur.cpp b/Joueur.cpp
+--- a/Joueur.cpp 2010-01-16 17:58:24.000000000 +0100
++++ b/Joueur.cpp 2010-10-10 11:31:13.000000000 +0200
@@ -18,6 +18,7 @@
#include "Projectile.h"
#include "Jeu.h"
@@ -60,9 +60,9 @@ diff -Naur Zelda3T_US-src-linux/src/Joueur.cpp Zelda3T_US-src-linux/src/Joueur.c
if(!f.is_open()) return;
f.read((char *)&temps,sizeof(int));
f.read((char *)&zone,sizeof(int)); gpJeu->setZone(zone);
-diff -Naur Zelda3T_US-src-linux/src/Keyboard.cpp Zelda3T_US-src-linux/src/Keyboard.cpp
---- Zelda3T_US-src-linux/src/Keyboard.cpp 2009-08-14 08:10:58.000000000 +0200
-+++ Zelda3T_US-src-linux/src/Keyboard.cpp 2010-10-10 11:28:51.000000000 +0200
+diff -Naur a/Keyboard.cpp b/Keyboard.cpp
+--- a/Keyboard.cpp 2009-08-14 08:10:58.000000000 +0200
++++ b/Keyboard.cpp 2010-10-10 11:28:51.000000000 +0200
@@ -13,6 +13,7 @@
#include <SDL/SDL.h>
diff --git a/games-rpg/zelda3t/metadata.xml b/games-rpg/zelda3t/metadata.xml
index 5d0ede2..1811bf7 100644
--- a/games-rpg/zelda3t/metadata.xml
+++ b/games-rpg/zelda3t/metadata.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<maintainer>
+<maintainer type="person">
<email>frostworks@gmx.de</email>
<name>Marcel Unbehaun</name>
</maintainer>
diff --git a/games-rpg/zelda3t/zelda3t-1.9.ebuild b/games-rpg/zelda3t/zelda3t-1.9.ebuild
index 37178b3..8c52089 100644
--- a/games-rpg/zelda3t/zelda3t-1.9.ebuild
+++ b/games-rpg/zelda3t/zelda3t-1.9.ebuild
@@ -1,12 +1,11 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/zelda3t/zelda3t-1.9.ebuild,v 1.0 2010/10/10 09:17:32 frostwork Exp $
-EAPI="2"
+EAPI=6
-MY_PN="Zelda3T_US-src-linux"
+inherit eutils
-inherit games
+MY_PN="Zelda3T_US-src-linux"
DESCRIPTION="The Legend of Zelda - Time to Triumph"
HOMEPAGE="http://www.zeldaroth.fr/us/z3t.php"
@@ -14,7 +13,7 @@ SRC_URI="http://www.zeldaroth.fr/us/files/3T/Linux/${MY_PN}.zip"
LICENSE="public-domain"
SLOT="0"
-KEYWORDS="~x86"
+KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="
@@ -24,27 +23,24 @@ RDEPEND="
media-libs/sdl-mixer[midi]
"
+S="${WORKDIR}/${MY_PN}/src"
+
src_prepare() {
- epatch "${FILESDIR}/${PN}-homedir.patch"
- sed -i -e "s:Zelda3T:"${PN}":g" -i ${MY_PN}/src/Makefile
- sed -i -e "s:CFLAGS =:#CFLAGS =:g" -i ${MY_PN}/src/Makefile
- for i in `find ${MY_PN}/src -name *.cpp`; do sed -i "$i" -e "s:data/:"${GAMES_DATADIR}"/"${PN}/data/":g"; done
+ default
+ eapply "${FILESDIR}/${PN}-homedir.patch"
+ sed -i -e "s:Zelda3T:"${PN}":g" -i Makefile
+ sed -i -e "s:CFLAGS =:#CFLAGS =:g" -i Makefile
+# for i in `find ${MY_PN}/src -name *.cpp`; do sed -i "$i" -e "s:data/:"${GAMES_DATADIR}"/"${PN}/data/":g"; done
}
src_compile() {
- cd ${MY_PN}/src
emake || die "emake failed"
}
-
src_install() {
- dogamesbin ${MY_PN}/src/${PN}
- insinto "${GAMES_DATADIR}"/${PN}
- doins -r ${MY_PN}/src/data || die "data install failed"
- newicon ${MY_PN}/src/data/images/logos/ocarina.ico ${PN}.png
+ dobin ${PN}
+ insinto /usr/share/${PN}
+ doins -r data || die "data install failed"
+ newicon data/images/logos/ocarina.ico ${PN}.png
make_desktop_entry ${PN}
-
- prepgamesdirs
}
-
-