summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /games-rpg/dragonhunt
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'games-rpg/dragonhunt')
-rw-r--r--games-rpg/dragonhunt/Manifest1
-rw-r--r--games-rpg/dragonhunt/dragonhunt-3.56-r1.ebuild89
-rw-r--r--games-rpg/dragonhunt/metadata.xml6
3 files changed, 96 insertions, 0 deletions
diff --git a/games-rpg/dragonhunt/Manifest b/games-rpg/dragonhunt/Manifest
new file mode 100644
index 00000000000..8d9951e4555
--- /dev/null
+++ b/games-rpg/dragonhunt/Manifest
@@ -0,0 +1 @@
+DIST Dragon_Hunt-3.56.tar.gz 2170718 SHA256 70a22937fd002f2d82d8998623b6ec101fadfbafc4e0d1857aa0686c6bf1eba9 SHA512 86ca32436088e8cda8993e21ebe6180f8361eb8bf5e052b3744a1db50073826118d1db657d713c7d75cd78c50c78c940caaf7adc5d31ad895d02a44f82b1e72a WHIRLPOOL c19fb4fedaeb62a65d8bf3938f8f629394ab4b1d8d0ccb1c88ebeac280a596ae7a93f34741d2e2c998d863e37bfebe95fe070f3d017202bf3b3eb35712a6598b
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 00000000000..9065e388ee5
--- /dev/null
+++ b/games-rpg/dragonhunt/dragonhunt-3.56-r1.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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/metadata.xml b/games-rpg/dragonhunt/metadata.xml
new file mode 100644
index 00000000000..7466967699a
--- /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>
+