From 103375a57fcee5a74d0123683f6b92fcb31dead3 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 18 Sep 2003 19:33:45 +0000 Subject: version bump --- games-rpg/openrpg/ChangeLog | 7 ++- games-rpg/openrpg/files/1.5.1-gentoo-paths.patch | 42 +++++++++++++++++ games-rpg/openrpg/files/digest-openrpg-1.5.1 | 1 + games-rpg/openrpg/openrpg-1.5.1.ebuild | 58 ++++++++++++++++++++++++ 4 files changed, 107 insertions(+), 1 deletion(-) create mode 100644 games-rpg/openrpg/files/1.5.1-gentoo-paths.patch create mode 100644 games-rpg/openrpg/files/digest-openrpg-1.5.1 create mode 100644 games-rpg/openrpg/openrpg-1.5.1.ebuild (limited to 'games-rpg/openrpg') diff --git a/games-rpg/openrpg/ChangeLog b/games-rpg/openrpg/ChangeLog index ed3590a438ea..a8e79f33fd86 100644 --- a/games-rpg/openrpg/ChangeLog +++ b/games-rpg/openrpg/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-rpg/openrpg # Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-rpg/openrpg/ChangeLog,v 1.2 2003/09/10 16:09:40 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-rpg/openrpg/ChangeLog,v 1.3 2003/09/18 19:33:45 vapier Exp $ + +*openrpg-1.5.1 (18 Sep 2003) + + 18 Sep 2003; Mike Frysinger : + Version bump + fix permission problems in #28010. *openrpg-1.4.1 (12 Jul 2003) diff --git a/games-rpg/openrpg/files/1.5.1-gentoo-paths.patch b/games-rpg/openrpg/files/1.5.1-gentoo-paths.patch new file mode 100644 index 000000000000..fe9602f6b78f --- /dev/null +++ b/games-rpg/openrpg/files/1.5.1-gentoo-paths.patch @@ -0,0 +1,42 @@ +diff -ur openrpg1.orig/start.py openrpg1/start.py +--- openrpg1.orig/start.py 2003-09-18 15:15:42.793028328 -0400 ++++ openrpg1/start.py 2003-09-18 15:15:43.010995192 -0400 +@@ -1,5 +1,10 @@ + #!/usr/bin/env python + ++from os import chdir; ++chdir("GENTOO_DATADIR"); ++from sys import path; ++path.append("GENTOO_LIBDIR"); ++ + import pyver + pyver.checkPyVersion() + +diff -ur openrpg1.orig/start_server.py openrpg1/start_server.py +--- openrpg1.orig/start_server.py 2003-09-18 15:15:42.793028328 -0400 ++++ openrpg1/start_server.py 2003-09-18 15:15:43.011995040 -0400 +@@ -1,5 +1,10 @@ + #!/usr/bin/env python + ++from os import chdir; ++chdir("GENTOO_DATADIR"); ++from sys import path; ++path.append("GENTOO_LIBDIR"); ++ + import pyver + import sys + pyver.checkPyVersion() +diff -ur openrpg1.orig/start_server_gui.py openrpg1/start_server_gui.py +--- openrpg1.orig/start_server_gui.py 2003-09-18 15:15:42.794028176 -0400 ++++ openrpg1/start_server_gui.py 2003-09-18 15:15:43.012994888 -0400 +@@ -1,5 +1,10 @@ + #!/usr/bin/env python + ++from os import chdir; ++chdir("GENTOO_DATADIR"); ++from sys import path; ++path.append("GENTOO_LIBDIR"); ++ + import pyver + pyver.checkPyVersion() + diff --git a/games-rpg/openrpg/files/digest-openrpg-1.5.1 b/games-rpg/openrpg/files/digest-openrpg-1.5.1 new file mode 100644 index 000000000000..46579ade9c77 --- /dev/null +++ b/games-rpg/openrpg/files/digest-openrpg-1.5.1 @@ -0,0 +1 @@ +MD5 624f1a2ef2d9b2753dde159e10c75747 openrpg-1.5.1.tar.gz 672216 diff --git a/games-rpg/openrpg/openrpg-1.5.1.ebuild b/games-rpg/openrpg/openrpg-1.5.1.ebuild new file mode 100644 index 000000000000..4c4b56731f9b --- /dev/null +++ b/games-rpg/openrpg/openrpg-1.5.1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-rpg/openrpg/openrpg-1.5.1.ebuild,v 1.1 2003/09/18 19:33:45 vapier Exp $ + +inherit games + +DESCRIPTION="Open RPG Client" +HOMEPAGE="http://www.openrpg.com/" +SRC_URI="mirror://sourceforge/openrpg/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" + +DEPEND=">=dev-python/wxPython-2.4.0.2 + >=dev-lang/python-2.2.2" + +S=${WORKDIR}/${PN}1 + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${PV}-gentoo-paths.patch + find -name CVS -type d -exec rm -rf '{}' \; 2>/dev/null +} + +src_install() { + dodoc readme.txt + rm readme.txt license.txt + + newgamesbin start.py openrpg + dosed "s:GENTOO_DATADIR:${GAMES_DATADIR}/${PN}:" ${GAMES_BINDIR}/openrpg + dosed "s:GENTOO_LIBDIR:${GAMES_LIBDIR}/${PN}:" ${GAMES_BINDIR}/openrpg + newgamesbin start_server.py openrpg-server + dosed "s:GENTOO_DATADIR:${GAMES_DATADIR}/${PN}:" ${GAMES_BINDIR}/openrpg-server + dosed "s:GENTOO_LIBDIR:${GAMES_LIBDIR}/${PN}:" ${GAMES_BINDIR}/openrpg-server + newgamesbin start_server_gui.py openrpg-server-gui + dosed "s:GENTOO_DATADIR:${GAMES_DATADIR}/${PN}:" ${GAMES_BINDIR}/openrpg-server-gui + dosed "s:GENTOO_LIBDIR:${GAMES_LIBDIR}/${PN}:" ${GAMES_BINDIR}/openrpg-server-gui + rm start.py start_server.py start_server_gui.py + + insinto ${GAMES_LIBDIR}/${PN} + doins *.py + mv orpg/templates . + cp -r orpg ${D}/${GAMES_LIBDIR}/${PN}/ + rm -rf orpg *.py + + dodir ${GAMES_DATADIR}/${PN} + dodir ${GAMES_DATADIR}/${PN}/orpg + mv templates ${D}/${GAMES_DATADIR}/${PN}/orpg/ + cp -r * ${D}/${GAMES_DATADIR}/${PN} + + dodir ${GAMES_DATADIR}/${PN}/myfiles + prepgamesdirs + # i dont like this but the game needs to be rewritten more than + # i care to do myself to support ${HOME}/.openrpg + fperms g+w ${GAMES_DATADIR}/${PN}/myfiles +} -- cgit v1.2.3-65-gdbad