summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2015-01-02 08:02:50 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2015-01-02 08:02:50 +0000
commit8dc1bc1a9dca9053fc1537db8eb2f11fd6d265bf (patch)
tree0070b672285e6cdc7be8649cfa1e76e0005b6aea /games-rpg
parentEAPI=5; use python-single-r1 (diff)
downloadgentoo-2-8dc1bc1a9dca9053fc1537db8eb2f11fd6d265bf.tar.gz
gentoo-2-8dc1bc1a9dca9053fc1537db8eb2f11fd6d265bf.tar.bz2
gentoo-2-8dc1bc1a9dca9053fc1537db8eb2f11fd6d265bf.zip
tidy
(Portage version: 2.2.14/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'games-rpg')
-rw-r--r--games-rpg/dragonhunt/ChangeLog8
-rw-r--r--games-rpg/dragonhunt/dragonhunt-3.56-r1.ebuild24
2 files changed, 16 insertions, 16 deletions
diff --git a/games-rpg/dragonhunt/ChangeLog b/games-rpg/dragonhunt/ChangeLog
index 0f6491d5233c..b08f9bc94df6 100644
--- a/games-rpg/dragonhunt/ChangeLog
+++ b/games-rpg/dragonhunt/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-rpg/dragonhunt
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/dragonhunt/ChangeLog,v 1.9 2013/09/05 19:44:42 mgorny Exp $
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/dragonhunt/ChangeLog,v 1.10 2015/01/02 08:02:50 mr_bones_ Exp $
+
+ 02 Jan 2015; Michael Sterrett <mr_bones_@gentoo.org>
+ dragonhunt-3.56-r1.ebuild:
+ tidy
05 Sep 2013; Michał Górny <mgorny@gentoo.org> dragonhunt-3.56-r1.ebuild:
Clean up PYTHON_COMPAT from old implementations.
diff --git a/games-rpg/dragonhunt/dragonhunt-3.56-r1.ebuild b/games-rpg/dragonhunt/dragonhunt-3.56-r1.ebuild
index 6fc5db585795..30fe069be74a 100644
--- a/games-rpg/dragonhunt/dragonhunt-3.56-r1.ebuild
+++ b/games-rpg/dragonhunt/dragonhunt-3.56-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/dragonhunt/dragonhunt-3.56-r1.ebuild,v 1.2 2013/09/05 19:44:42 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/dragonhunt/dragonhunt-3.56-r1.ebuild,v 1.3 2015/01/02 08:02:50 mr_bones_ Exp $
EAPI=5
-PYTHON_COMPAT=( python2_6 python2_7 )
+PYTHON_COMPAT=( python2_7 )
inherit eutils python-single-r1 games
MY_P="Dragon_Hunt-${PV}"
@@ -33,38 +33,34 @@ src_prepare() {
sed -i "s:\.\./modules/:${GAMES_DATADIR}/${PN}/:" \
code/g.py \
code/map_editor.py \
- code/rpg.py \
- || die "Could not change module path."
+ code/rpg.py || die
# Where to look for keybinding
sed -i "s:\.\./settings:${GAMES_SYSCONFDIR}/${PN}/settings:" \
- code/g.py \
- || die "Could not change settings.txt directory"
+ code/g.py || die
# Save games in ~/.${PN}/.
sed -i \
-e "s:^\(from os import.*\):\1\, environ:" \
-e "s:g.mod_dir.*\"/saves/\?\":environ[\"HOME\"] + \"/.${PN}/\":" \
- code/g.py code/loadgame.py \
- || die "Could not change savegames location."
+ code/g.py code/loadgame.py || die
# Save maps in ~/.
sed -i \
-e "s:^\(from os import.*\):\1\, environ:" \
-e "s:g.mod_dir.*\"map\.txt\":environ[\"HOME\"]\ +\ \"/dh_map.txt\":" \
- code/map_editor.py \
- || die "Could not change map location."
+ code/map_editor.py || die
}
src_install() {
insinto "${GAMES_DATADIR}"/${PN}
- doins -r modules/* || die "doins modules failed"
+ doins -r modules/*
insinto "${GAMES_SYSCONFDIR}"/${PN}
- doins settings.txt || die "doins settings.txt failed"
+ doins settings.txt
insinto "$(games_get_libdir)"/${PN}
- doins code/*.py || die "doins code failed"
+ doins code/*.py
games_make_wrapper ${PN} "${EPYTHON} ./rpg.py" "$(games_get_libdir)"/${PN}
games_make_wrapper ${PN}-mapeditor "${EPYTHON} ./map_editor.py" \