diff options
-rw-r--r-- | games-rpg/zeldaroth/Manifest | 22 | ||||
-rw-r--r-- | games-rpg/zeldaroth/files/zeldaroth-homedir.patch | 12 | ||||
-rw-r--r-- | games-rpg/zeldaroth/metadata.xml | 6 | ||||
-rw-r--r-- | games-rpg/zeldaroth/zeldaroth-6.11.ebuild | 40 |
4 files changed, 27 insertions, 53 deletions
diff --git a/games-rpg/zeldaroth/Manifest b/games-rpg/zeldaroth/Manifest index 1d29579..950cf07 100644 --- a/games-rpg/zeldaroth/Manifest +++ b/games-rpg/zeldaroth/Manifest @@ -1,21 +1 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA256 - -DIST ZeldaROTH_US-src-linux.zip 1552688 SHA256 9919a7fb0d2781f6323bfa27a7929fea68f4b0f26786ba9b6880b1f6a3e6f684 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.19 (GNU/Linux) - -iQIcBAEBCAAGBQJQlghjAAoJECZQPTSbOzNLW60P/jTcQ+J1S4Gz33G7IKjFPoez -PCFOzdC8iBNyb7xOuY45Xb9/4efXmfw6OnzxhMBbzMJWesyFozwjFCm6wgtt13V+ -J44ef9L9XcMa0HUYSPzfV4qcJ1FtnxxTh8cq6g1jbKks/uCsH6ETCZaawPLl/IU8 -fWI4UCrrdIzRKUuUfi6Fs9mqUBYuMZz2JL+awZ1Qymoj+m8QEMBhaCmTmswdx/MZ -mH2ZvuKGw/KPSUvosiVrEU5d2UAZ0mB9rl2/ONbX1NPO9FtLatva0mEbZsBhWRjr -gfSdZhv/BzGOrT/BLcdGHTex3DRb2V0Nid0TBdJS09tEUpuJl9zbMIIP+mYPH5Yo -Rh/kOapUkPHLnep3RfHICFwXgvvZbP8CA3TPmAbLpqnvTBlZPT4FJLrgbSVOlOpZ -au5I96+L0PYzgXh3fstxXou3ASkdVN4jKoy8tU/16JoOuvlWlH9Smm0nIEu1XAz7 -6B+W2Avf5yn5wKnBxnQP80dCe1Bf+y7IDJT0BUW74j5FRBAocf5pqtZ6EJb+p3Au -EPBLsd5x/dZePD+uIlS5ULGQf/+WJjG/Ojt2p5UPVWGJU9Cg1gaQ2IPO1ViS1j3A -+bgmnl65prYSQon+c8qE8Tq7ARYwm6r8TFCqvFYXA8GX3x9g0IQ8FFPncXqqw5tz -zSf4CiaGHM/l0rZ46H8Z -=TlmW ------END PGP SIGNATURE----- +DIST ZeldaROTH_US-src-linux.zip 1552688 SHA256 9919a7fb0d2781f6323bfa27a7929fea68f4b0f26786ba9b6880b1f6a3e6f684 SHA512 4a07833f9222fa0916c4b923e0be271462f7348a65a0062b67dd0cf4ab14981703ed2b17c871c8dce221dbdbf56274248c1c91158f588c1dc997398d08a7a234 WHIRLPOOL a6e53827eb688f38099bcdac0b2986be09858ab820c4ab5c19cefcffab2d66744ff7d219d8aeac97a90e1c34821d95443c77037b614476728719f8c7fd273775 diff --git a/games-rpg/zeldaroth/files/zeldaroth-homedir.patch b/games-rpg/zeldaroth/files/zeldaroth-homedir.patch index 9fd8d67..241aaee 100644 --- a/games-rpg/zeldaroth/files/zeldaroth-homedir.patch +++ b/games-rpg/zeldaroth/files/zeldaroth-homedir.patch @@ -1,6 +1,6 @@ -diff -Naur ZeldaROTH_US-src-linux/src/Joueur.cpp ZeldaROTH_US-src-linux/src/Joueur.cpp ---- ZeldaROTH_US-src-linux/src/Joueur.cpp 2009-02-18 23:59:34.000000000 +0100 -+++ ZeldaROTH_US-src-linux/src/Joueur.cpp 2010-10-10 11:48:46.000000000 +0200 +diff -Naur a/Joueur.cpp b/Joueur.cpp +--- a/Joueur.cpp 2009-02-18 23:59:34.000000000 +0100 ++++ b/Joueur.cpp 2010-10-10 11:48:46.000000000 +0200 @@ -17,6 +17,7 @@ #include "Texte.h"
#include "Projectile.h"
@@ -58,9 +58,9 @@ diff -Naur ZeldaROTH_US-src-linux/src/Joueur.cpp ZeldaROTH_US-src-linux/src/Joue if(!f.is_open()) return;
f.read((char *)&temps,sizeof(int));
f.read((char *)&zone,sizeof(int)); gpJeu->setZone(zone);
-diff -Naur ZeldaROTH_US-src-linux/src/Keyboard.cpp ZeldaROTH_US-src-linux/src/Keyboard.cpp ---- ZeldaROTH_US-src-linux/src/Keyboard.cpp 2009-02-18 23:56:22.000000000 +0100 -+++ ZeldaROTH_US-src-linux/src/Keyboard.cpp 2010-10-10 11:49:55.000000000 +0200 +diff -Naur a/Keyboard.cpp b/Keyboard.cpp +--- a/Keyboard.cpp 2009-02-18 23:56:22.000000000 +0100 ++++ b/Keyboard.cpp 2010-10-10 11:49:55.000000000 +0200 @@ -19,6 +19,7 @@ #include "Projectile.h"
#include "Jeu.h"*/
diff --git a/games-rpg/zeldaroth/metadata.xml b/games-rpg/zeldaroth/metadata.xml index 5d0ede2..c18eb4b 100644 --- a/games-rpg/zeldaroth/metadata.xml +++ b/games-rpg/zeldaroth/metadata.xml @@ -1,8 +1,8 @@ <?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 type="person"> + <email>frostworks@gmx.de</email> + <name>Marcel Unbehaun</name> </maintainer> </pkgmetadata> diff --git a/games-rpg/zeldaroth/zeldaroth-6.11.ebuild b/games-rpg/zeldaroth/zeldaroth-6.11.ebuild index ad852e9..cd0fcee 100644 --- a/games-rpg/zeldaroth/zeldaroth-6.11.ebuild +++ b/games-rpg/zeldaroth/zeldaroth-6.11.ebuild @@ -1,12 +1,11 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-rpg/zeldaroth/zeldaroth-6.11.ebuild,v 1.0 2010/10/10 09:17:32 frostwork Exp $ -EAPI="2" +EAPI=7 MY_PN="ZeldaROTH_US-src-linux" -inherit games +inherit desktop eutils DESCRIPTION="The Legend of Zelda - Return of the Hylian" HOMEPAGE="http://www.zeldaroth.fr/us/zroth.php" @@ -14,7 +13,7 @@ SRC_URI="http://www.zeldaroth.fr/us/files/ROTH/Linux/${MY_PN}.zip" LICENSE="public-domain" SLOT="0" -KEYWORDS="~x86" +KEYWORDS="~amd64 ~x86" IUSE="" RDEPEND=" @@ -24,27 +23,22 @@ RDEPEND=" media-libs/sdl-mixer[midi] " -src_prepare() { - epatch "${FILESDIR}/${PN}-homedir.patch" - sed -i -e "s:ZeldaROTH_US:"${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 -} +S="${WORKDIR}/${MY_PN}/src" +PATCHES=( "${FILESDIR}/${PN}-homedir.patch" ) -src_compile() { - cd ${MY_PN}/src - emake || die "emake failed" +src_prepare() { + default + sed -i -e "s:ZeldaROTH_US:"${PN}":g" -i Makefile || die + sed -i -e "s:CFLAGS =:#CFLAGS =:g" -i Makefile || die + for i in `find . -name "*.cpp"`; do + sed -i "$i" -e "s:data/:/usr/share/"${PN}"/data/:g" || die; + done } - 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/triforce.ico ${PN}.png + dobin ${PN} + insinto "/usr/share/${PN}" + doins -r data || die "data install failed" + newicon data/images/logos/triforce.ico ${PN}.png make_desktop_entry ${PN} - - prepgamesdirs } - - |