diff options
-rw-r--r-- | games-rpg/dragonhunt/ChangeLog | 9 | ||||
-rw-r--r-- | games-rpg/dragonhunt/Manifest | 26 | ||||
-rw-r--r-- | games-rpg/dragonhunt/dragonhunt-3.55.ebuild | 90 | ||||
-rw-r--r-- | games-rpg/dragonhunt/files/digest-dragonhunt-3.55 | 3 | ||||
-rw-r--r-- | games-rpg/dragonhunt/metadata.xml | 6 |
5 files changed, 134 insertions, 0 deletions
diff --git a/games-rpg/dragonhunt/ChangeLog b/games-rpg/dragonhunt/ChangeLog new file mode 100644 index 000000000000..3091b6fa3d0c --- /dev/null +++ b/games-rpg/dragonhunt/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for games-rpg/dragonhunt +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-rpg/dragonhunt/ChangeLog,v 1.1 2006/11/06 21:33:42 tupone Exp $ + +*dragonhunt-3.55 (06 Nov 2006) + + 06 Nov 2006; <tupone@gentoo.org> +dragonhunt-3.55.ebuild: + New ebuild. Bug #56743 by Alastair Murray + diff --git a/games-rpg/dragonhunt/Manifest b/games-rpg/dragonhunt/Manifest new file mode 100644 index 000000000000..e5141d37fbbc --- /dev/null +++ b/games-rpg/dragonhunt/Manifest @@ -0,0 +1,26 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +DIST Dragon_Hunt-3.55.tar.gz 2159851 RMD160 963dc739d4e464a323acee3f7325713ddb4cb12d SHA1 68d7dbbb0690c23d0c57e8bf03919ecaa70fa6a5 SHA256 d7d73b3ab7aa1c3e91b0221d3759e7da7d07f7569f3d201a00d54624259c84d0 +EBUILD dragonhunt-3.55.ebuild 2369 RMD160 f4d81610330d783c86e7d5313e628f24495adec5 SHA1 368169966be50b18f09765706f3468350e020e49 SHA256 9baa82745656fc20e364230f06759843fe7b0fd1fd3eef2c2e4a455108a2f48b +MD5 6f3a434f1610ba35527213f46c0c3440 dragonhunt-3.55.ebuild 2369 +RMD160 f4d81610330d783c86e7d5313e628f24495adec5 dragonhunt-3.55.ebuild 2369 +SHA256 9baa82745656fc20e364230f06759843fe7b0fd1fd3eef2c2e4a455108a2f48b dragonhunt-3.55.ebuild 2369 +MISC ChangeLog 350 RMD160 4568262cb7ea139a6e8c8fdff817fe6653c7dfbf SHA1 98e5707e68602076e168539d4a438e248fa524c3 SHA256 584125950e6e2cffd135f3138b8b6fc639a21f1958b783ed7a226d46e191da78 +MD5 08890df05c3df59e46ddf162b19b9ea5 ChangeLog 350 +RMD160 4568262cb7ea139a6e8c8fdff817fe6653c7dfbf ChangeLog 350 +SHA256 584125950e6e2cffd135f3138b8b6fc639a21f1958b783ed7a226d46e191da78 ChangeLog 350 +MISC metadata.xml 159 RMD160 5f925ed2fa3718b7d5cdc3f2a12866d3e516bacc SHA1 cd24812821185c81f7c05255d3fa66f5399daaa6 SHA256 c3c3613f26371d08a639f099b4f0d23f1efa7477c4414784a274edfd853eeec7 +MD5 eb5dfd8f6553b4da2c5efe7f0ae9372b metadata.xml 159 +RMD160 5f925ed2fa3718b7d5cdc3f2a12866d3e516bacc metadata.xml 159 +SHA256 c3c3613f26371d08a639f099b4f0d23f1efa7477c4414784a274edfd853eeec7 metadata.xml 159 +MD5 12d9cc6763821d4bc3bf9cc49564a238 files/digest-dragonhunt-3.55 253 +RMD160 c0b9d35491bfa8f5494695cd6e4d10d1fa0b4f11 files/digest-dragonhunt-3.55 253 +SHA256 1fc6a6e7b30dc5d46d35d43150668926f971dbe2c57add3e26480ed7591b56e1 files/digest-dragonhunt-3.55 253 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.5 (GNU/Linux) + +iD8DBQFFT6pBbfN2jvlVAhwRAvyxAKCGGZkkUL6IOld5oviMyF/xVCVZCwCgqRmj +YSH4ikoxPY290cpMRAD8F+E= +=aggs +-----END PGP SIGNATURE----- diff --git a/games-rpg/dragonhunt/dragonhunt-3.55.ebuild b/games-rpg/dragonhunt/dragonhunt-3.55.ebuild new file mode 100644 index 000000000000..74125cad13ac --- /dev/null +++ b/games-rpg/dragonhunt/dragonhunt-3.55.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-rpg/dragonhunt/dragonhunt-3.55.ebuild,v 1.1 2006/11/06 21:33:42 tupone Exp $ + +inherit games + +MY_PN="Dragon_Hunt" + +DESCRIPTION="A simple graphical RPG." +HOMEPAGE="http://emhsoft.com/dh.html" +SRC_URI="http://emhsoft.com/dh/${MY_PN}-${PV}.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_PN}-${PV}" +MODULE_DIR="${GAMES_DATADIR}/${PN}/" +LIB_DIR="${GAMES_LIBDIR}/${PN}" + +src_unpack() { + unpack ${A} + cd ${S} + + # Where to look for modules to load. + sed -i -e "s:\.\./modules/:${MODULE_DIR}:" \ + code/g.py \ + code/map_editor.py \ + code/rpg.py \ + || die "Could not change module path." + + # Where to look for keybinding + sed -i -e "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." + + # Make the launch scripts look in the right place for the code. + sed -i \ + -e '/^tempname/d' \ + -e "s:^cd.*:cd ${LIB_DIR}:" \ + Dragon_Hunt_Linux Map_Editor \ + || die "Could not change launch location." +} + +src_install() { + insinto ${MODULE_DIR} + doins -r modules/* + + insinto ${GAMES_SYSCONFDIR}/${PN} + doins settings.txt + + # Install the code for running the game, the compiled python isn't included + # as I cannot safely change the directory paths in it. + insinto ${LIB_DIR} + doins code/*.py + + newgamesbin Dragon_Hunt_Linux ${PN} + newgamesbin Map_Editor ${PN}-mapeditor + + dodoc README.txt docs/{Changelog,Items.txt,example_map.txt,tiles.txt} + dohtml docs/*.html + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + echo + einfo "If you use the map editor then note that maps will be saved as" + einfo "~/dh_map.txt and must be move to the correct module directory" + einfo "(within ${MODULE_DIR}) by hand." + echo +} diff --git a/games-rpg/dragonhunt/files/digest-dragonhunt-3.55 b/games-rpg/dragonhunt/files/digest-dragonhunt-3.55 new file mode 100644 index 000000000000..3b7950e60dfc --- /dev/null +++ b/games-rpg/dragonhunt/files/digest-dragonhunt-3.55 @@ -0,0 +1,3 @@ +MD5 981431131daa17969f2bfa0fa17d0f25 Dragon_Hunt-3.55.tar.gz 2159851 +RMD160 963dc739d4e464a323acee3f7325713ddb4cb12d Dragon_Hunt-3.55.tar.gz 2159851 +SHA256 d7d73b3ab7aa1c3e91b0221d3759e7da7d07f7569f3d201a00d54624259c84d0 Dragon_Hunt-3.55.tar.gz 2159851 diff --git a/games-rpg/dragonhunt/metadata.xml b/games-rpg/dragonhunt/metadata.xml new file mode 100644 index 000000000000..7466967699ad --- /dev/null +++ b/games-rpg/dragonhunt/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> + |