summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2015-01-26 22:35:49 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2015-01-26 22:35:49 +0000
commitbc77e34a124a992981e340bde7bde074cb59ad20 (patch)
tree445d6dd4ae1bf4e7824cdba5fd3d8f5c57abdbd2 /games-rpg
parentold (diff)
downloadgentoo-2-bc77e34a124a992981e340bde7bde074cb59ad20.tar.gz
gentoo-2-bc77e34a124a992981e340bde7bde074cb59ad20.tar.bz2
gentoo-2-bc77e34a124a992981e340bde7bde074cb59ad20.zip
old
(Portage version: 2.2.14/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'games-rpg')
-rw-r--r--games-rpg/dragonhunt/ChangeLog5
-rw-r--r--games-rpg/dragonhunt/dragonhunt-3.56.ebuild86
2 files changed, 4 insertions, 87 deletions
diff --git a/games-rpg/dragonhunt/ChangeLog b/games-rpg/dragonhunt/ChangeLog
index f2b20073ba73..9f6903721a47 100644
--- a/games-rpg/dragonhunt/ChangeLog
+++ b/games-rpg/dragonhunt/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for games-rpg/dragonhunt
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/dragonhunt/ChangeLog,v 1.12 2015/01/26 09:50:13 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/dragonhunt/ChangeLog,v 1.13 2015/01/26 22:35:49 mr_bones_ Exp $
+
+ 26 Jan 2015; Michael Sterrett <mr_bones_@gentoo.org> -dragonhunt-3.56.ebuild:
+ old
26 Jan 2015; Agostino Sarubbo <ago@gentoo.org> dragonhunt-3.56-r1.ebuild:
Stable for x86, wrt bug #534290
diff --git a/games-rpg/dragonhunt/dragonhunt-3.56.ebuild b/games-rpg/dragonhunt/dragonhunt-3.56.ebuild
deleted file mode 100644
index 3fa2018d6358..000000000000
--- a/games-rpg/dragonhunt/dragonhunt-3.56.ebuild
+++ /dev/null
@@ -1,86 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/dragonhunt/dragonhunt-3.56.ebuild,v 1.6 2013/02/07 22:12:52 ulm Exp $
-
-EAPI=2
-PYTHON_DEPEND="2"
-inherit eutils python games
-
-MY_P="Dragon_Hunt-${PV}"
-DESCRIPTION="A simple graphical RPG"
-HOMEPAGE="http://emhsoft.com/dh.html"
-SRC_URI="http://emhsoft.com/dh/${MY_P}.tar.gz"
-
-LICENSE="GPL-2 CC-SA-1.0"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE=""
-
-RDEPEND="dev-python/pygame"
-
-S=${WORKDIR}/${MY_P}
-
-pkg_setup() {
- python_set_active_version 2
- games_pkg_setup
-}
-
-src_prepare() {
- # Where to look for modules to load.
- sed -i "s:\.\./modules/:${GAMES_DATADIR}/${PN}/:" \
- code/g.py \
- code/map_editor.py \
- code/rpg.py \
- || die "Could not change module path."
-
- # Where to look for keybinding
- sed -i "s:\.\./settings:${GAMES_SYSCONFDIR}/${PN}/settings:" \
- code/g.py \
- || die "Could not change settings.txt directory"
-
- # 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."
-
- # 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."
-}
-
-src_install() {
- insinto "${GAMES_DATADIR}"/${PN}
- doins -r modules/* || die "doins modules failed"
-
- insinto "${GAMES_SYSCONFDIR}"/${PN}
- doins settings.txt || die "doins settings.txt failed"
-
- insinto "$(games_get_libdir)"/${PN}
- doins code/*.py || die "doins code failed"
-
- games_make_wrapper ${PN} "$(PYTHON) ./rpg.py" "$(games_get_libdir)"/${PN}
- games_make_wrapper ${PN}-mapeditor "$(PYTHON) ./map_editor.py" \
- "$(games_get_libdir)"/${PN}
-
- newicon modules/default/images/buttons/icon.png ${PN}.png
- make_desktop_entry ${PN} "Dragon Hunt"
- make_desktop_entry ${PN}-mapeditor "Dragon Hunt - Editor"
-
- dodoc README.txt docs/{Changelog,Items.txt,example_map.txt,tiles.txt}
- dohtml docs/*.html
- prepgamesdirs
-}
-
-pkg_postinst() {
- games_pkg_postinst
- echo
- elog "If you use the map editor then note that maps will be saved as"
- elog "~/dh_map.txt and must be move to the correct module directory"
- elog "(within ${GAMES_DATADIR}/${PN}) by hand."
- echo
-}