Portage is a package management system used by Gentoo Linux
# ChangeLog for games-rpg/dragonhunt
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/games-rpg/dragonhunt/ChangeLog,v 1.2 2007/05/20 21:14:38 nyhm Exp $
*dragonhunt-3.56 (20 May 2007)
20 May 2007; Tristan Heaven
Version bump
*dragonhunt-3.55 (06 Nov 2006)
06 Nov 2006;
New ebuild. Bug #56743 by Alastair Murray
DIST Dragon_Hunt-3.56.tar.gz 2170718 RMD160 82199f84e20a3620e223a3488129f34a7f2de01e SHA1 1ed23a5ef8dcad0bf1f66dcb89475224b07a2c52 SHA256 70a22937fd002f2d82d8998623b6ec101fadfbafc4e0d1857aa0686c6bf1eba9
EBUILD dragonhunt-3.56.ebuild 2332 RMD160 042d6b757d3d1b1f2c9077742b712d094d92b771 SHA1 3655c91823fc18e9794ce965f1b2d09d66ca2b26 SHA256 9251f6636abc6a88f74e5511a5c35836e617634d1d8908535fecb7f65abe0818
MISC ChangeLog 469 RMD160 3620be8bbd5808280185f255aa9216a99ce636f3 SHA1 32e9decd3bd89c7c79fe5a84b61c20bea2349b3a SHA256 aaeb6d224198bce1c7ce2dbdb3d485a48c5f7f997fbcc8db7cc3520c60020f65
MISC metadata.xml 159 RMD160 5f925ed2fa3718b7d5cdc3f2a12866d3e516bacc SHA1 cd24812821185c81f7c05255d3fa66f5399daaa6 SHA256 c3c3613f26371d08a639f099b4f0d23f1efa7477c4414784a274edfd853eeec7
# Copyright 1999-2007 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.1 2007/05/20 21:14:38 nyhm Exp $
inherit eutils 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 CCPL-ShareAlike-1.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="dev-lang/python
dev-python/pygame"
S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A}
cd "${S}"
# 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
}