summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2006-11-06 21:33:42 +0000
committerAlfredo Tupone <tupone@gentoo.org>2006-11-06 21:33:42 +0000
commit518aed9a020272ce6f6e332b5be472de25647789 (patch)
tree579493ab402b2c0d96e51c22a6ba5aeae86b6ed5 /games-rpg
parentVersion bump, thanks to Sascha Geschwandtner <s.geschwandtner@gmx.de>, bug #1... (diff)
downloadgentoo-2-518aed9a020272ce6f6e332b5be472de25647789.tar.gz
gentoo-2-518aed9a020272ce6f6e332b5be472de25647789.tar.bz2
gentoo-2-518aed9a020272ce6f6e332b5be472de25647789.zip
New ebuild. Bug #56743
(Portage version: 2.1.1-r1)
Diffstat (limited to 'games-rpg')
-rw-r--r--games-rpg/dragonhunt/ChangeLog9
-rw-r--r--games-rpg/dragonhunt/Manifest16
-rw-r--r--games-rpg/dragonhunt/dragonhunt-3.55.ebuild90
-rw-r--r--games-rpg/dragonhunt/files/digest-dragonhunt-3.553
-rw-r--r--games-rpg/dragonhunt/metadata.xml6
5 files changed, 124 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..7bc7ecf1a3b1
--- /dev/null
+++ b/games-rpg/dragonhunt/Manifest
@@ -0,0 +1,16 @@
+DIST Dragon_Hunt-3.55.tar.gz 2159851 RMD160 963dc739d4e464a323acee3f7325713ddb4cb12d SHA1 68d7dbbb0690c23d0c57e8bf03919ecaa70fa6a5 SHA256 d7d73b3ab7aa1c3e91b0221d3759e7da7d07f7569f3d201a00d54624259c84d0
+EBUILD dragonhunt-3.55.ebuild 2264 RMD160 253950f02ee9447b1c366c93d575a6b7c067af71 SHA1 be3a171ff605da732aa6925eb7083d1325f47b2f SHA256 f550178e690020dd421025b497250d9dc3a27193b12894c6fefc301c7c9a538b
+MD5 1c20945359353759f044d907ea1cfe54 dragonhunt-3.55.ebuild 2264
+RMD160 253950f02ee9447b1c366c93d575a6b7c067af71 dragonhunt-3.55.ebuild 2264
+SHA256 f550178e690020dd421025b497250d9dc3a27193b12894c6fefc301c7c9a538b dragonhunt-3.55.ebuild 2264
+MISC ChangeLog 258 RMD160 9a852d0228213ef80499bef3af434f14cfa82e6f SHA1 15167fcef546becea894a95cd36d32d97db5632a SHA256 9f27ba6ab7378d0be1f59aecc127064a6f523b862833ad73b9c6515799ee335d
+MD5 67ea06fbb2c1ae315db23911f544594d ChangeLog 258
+RMD160 9a852d0228213ef80499bef3af434f14cfa82e6f ChangeLog 258
+SHA256 9f27ba6ab7378d0be1f59aecc127064a6f523b862833ad73b9c6515799ee335d ChangeLog 258
+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
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>
+