summaryrefslogtreecommitdiff
path: root/games-rpg/dragonhunt
diff options
context:
space:
mode:
Diffstat (limited to 'games-rpg/dragonhunt')
-rw-r--r--games-rpg/dragonhunt/Manifest6
-rw-r--r--games-rpg/dragonhunt/dragonhunt-3.56-r1.ebuild88
-rw-r--r--games-rpg/dragonhunt/dragonhunt-3.56-r2.ebuild86
-rw-r--r--games-rpg/dragonhunt/metadata.xml8
4 files changed, 188 insertions, 0 deletions
diff --git a/games-rpg/dragonhunt/Manifest b/games-rpg/dragonhunt/Manifest
new file mode 100644
index 000000000000..5d01bcc9c4f6
--- /dev/null
+++ b/games-rpg/dragonhunt/Manifest
@@ -0,0 +1,6 @@
+DIST Dragon_Hunt-3.56.tar.gz 2170718 SHA256 70a22937fd002f2d82d8998623b6ec101fadfbafc4e0d1857aa0686c6bf1eba9 SHA512 86ca32436088e8cda8993e21ebe6180f8361eb8bf5e052b3744a1db50073826118d1db657d713c7d75cd78c50c78c940caaf7adc5d31ad895d02a44f82b1e72a WHIRLPOOL c19fb4fedaeb62a65d8bf3938f8f629394ab4b1d8d0ccb1c88ebeac280a596ae7a93f34741d2e2c998d863e37bfebe95fe070f3d017202bf3b3eb35712a6598b
+EBUILD dragonhunt-3.56-r1.ebuild 2235 SHA256 04ec3c75e8cca37e553ac229887de90ead8f7918222d68a46cc16d90065c171f SHA512 38995ab7966a186cffe0743e43e8a0bb681bfa08eb5e06177a0ddabfa6185030797c1a44d3c86f77b7a1a5a9fba6738943694aec5ade400f24085e9280fdfff6 WHIRLPOOL 1655c8b87c0e700134a250fd2502e550a6eea10195af05c14ca4d3b7e98d209795a4046465c5120afb90425490973b1a29d1331ced2016d89ad48a447053416d
+EBUILD dragonhunt-3.56-r2.ebuild 2110 SHA256 a94b0088aee4ce8b182d8d4efc4784eb2bd2ff806b3d1c0dcb47f8f15e6d0439 SHA512 12562488edba40cbc108d8ebdd956b842be85c17b7e5baeaf3594a5c0fbdc79dfd7b592c862d8a7cebce5a1e32b5e6bfe2b7c429dee69426042c70ce624ba199 WHIRLPOOL d41d4447bd3a8c58b04135a3285bf8466e604c7ea8cd2a3802542b1ff905850c89e2f042c4302a5d14e7c401a2e98df146a7dc6a5ae71f62ba7b847bc39bf886
+MISC ChangeLog 3092 SHA256 63811ad74205ccfa5571aa7f59ff3ea7b3665886bfb2898266a5b14846ea2365 SHA512 2a39ab0b5cbb056f2fe7789eae8022c46589e228179c0c45a0443fdcfff2491e3184a685ea41027f8faae57994594b39d48e76356141779dfcd2ec3eea4db0ca WHIRLPOOL 5a6086cea63da4cab3113e029e953b7290b0c3a5212132f2d1bfc3d98358c1a4019fc38681ea7f2d7cd38ccfd34788ef12885f02a1bfcc8692fb4baab813cd19
+MISC ChangeLog-2015 1702 SHA256 ae8bd32812f903778570936c6562d04bcc723ddd54a3bc2b434ae991371c0989 SHA512 4ef1d62827939cb804f7e4d49f8cdbf026ccef973a477a7f3f7092e56325dcade9fca8db0eafdd7f050d68a537957d131d6f25ae3822a8669c907e2fb2e07b69 WHIRLPOOL 400e34e3404b374592c8ac24ebe899d5552124e9bf9155f8c3120304cc32bd718dbe2b8affab7f63d1b9ca071e4bd13ee5ea37d5da3d9276dbf9e4ba5e821147
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-rpg/dragonhunt/dragonhunt-3.56-r1.ebuild b/games-rpg/dragonhunt/dragonhunt-3.56-r1.ebuild
new file mode 100644
index 000000000000..0b72e9a1340e
--- /dev/null
+++ b/games-rpg/dragonhunt/dragonhunt-3.56-r1.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit eutils python-single-r1 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=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}"
+RDEPEND="${DEPEND}
+ dev-python/pygame[${PYTHON_USEDEP}]"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ games_pkg_setup
+ python-single-r1_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
+
+ # Where to look for keybinding
+ sed -i "s:\.\./settings:${GAMES_SYSCONFDIR}/${PN}/settings:" \
+ 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
+
+ # 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
+}
+
+src_install() {
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r modules/*
+
+ insinto "${GAMES_SYSCONFDIR}"/${PN}
+ doins settings.txt
+
+ insinto "$(games_get_libdir)"/${PN}
+ doins code/*.py
+
+ games_make_wrapper ${PN} "${EPYTHON} ./rpg.py" "$(games_get_libdir)"/${PN}
+ games_make_wrapper ${PN}-mapeditor "${EPYTHON} ./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
+
+ python_optimize "${ED}$(games_get_libdir)"/${PN} \
+ "${ED}${GAMES_DATADIR}/${PN}/Dark Ages/data/make_map.py"
+
+ 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
+}
diff --git a/games-rpg/dragonhunt/dragonhunt-3.56-r2.ebuild b/games-rpg/dragonhunt/dragonhunt-3.56-r2.ebuild
new file mode 100644
index 000000000000..e908b7b28145
--- /dev/null
+++ b/games-rpg/dragonhunt/dragonhunt-3.56-r2.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+inherit eutils python-single-r1
+
+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=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}"
+RDEPEND="${DEPEND}
+ dev-python/pygame[${PYTHON_USEDEP}]"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ # Where to look for modules to load.
+ sed -i "s:\.\./modules/:/usr/share/${PN}/:" \
+ code/g.py \
+ code/map_editor.py \
+ code/rpg.py || die
+
+ # Where to look for keybinding
+ sed -i "s:\.\./settings:/etc/${PN}/settings:" \
+ 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
+
+ # 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
+}
+
+src_install() {
+ insinto /usr/share/${PN}
+ doins -r modules/*
+
+ insinto /etc/${PN}
+ doins settings.txt
+
+ insinto /usr/$(get_libdir)/${PN}
+ doins code/*.py
+
+ make_wrapper ${PN} "${EPYTHON} ./rpg.py" /usr/$(get_libdir)/${PN}
+ make_wrapper ${PN}-mapeditor "${EPYTHON} ./map_editor.py" \
+ /usr/$(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}
+ dodoc -r docs/*.html
+
+ python_optimize "${ED}/usr/$(get_libdir)"/${PN} \
+ "${ED}/usr/share/${PN}/Dark Ages/data/make_map.py"
+}
+
+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 /usr/share/${PN}) by hand."
+ echo
+}
diff --git a/games-rpg/dragonhunt/metadata.xml b/games-rpg/dragonhunt/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-rpg/dragonhunt/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>