summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-01-18 04:21:38 +0000
committerMike Frysinger <vapier@gentoo.org>2004-01-18 04:21:38 +0000
commitcc72eec405c75f54ce7556107e931436176f0684 (patch)
tree9ca623a95e6fe73d445eb689da5f221a76721bf3 /games-rpg/openrpg
parentver bump #38464 (diff)
downloadhistorical-cc72eec405c75f54ce7556107e931436176f0684.tar.gz
historical-cc72eec405c75f54ce7556107e931436176f0684.tar.bz2
historical-cc72eec405c75f54ce7556107e931436176f0684.zip
ver bump #38523
Diffstat (limited to 'games-rpg/openrpg')
-rw-r--r--games-rpg/openrpg/ChangeLog7
-rw-r--r--games-rpg/openrpg/files/1.6.1-gentoo-paths.patch42
-rw-r--r--games-rpg/openrpg/files/digest-openrpg-1.6.11
-rw-r--r--games-rpg/openrpg/openrpg-1.6.1.ebuild59
4 files changed, 108 insertions, 1 deletions
diff --git a/games-rpg/openrpg/ChangeLog b/games-rpg/openrpg/ChangeLog
index a8e79f33fd86..b849a06a4ebe 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.3 2003/09/18 19:33:45 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/openrpg/ChangeLog,v 1.4 2004/01/18 04:21:38 vapier Exp $
+
+*openrpg-1.6.1 (17 Jan 2004)
+
+ 17 Jan 2004; Mike Frysinger <vapier@gentoo.org> :
+ Version bump #38523.
*openrpg-1.5.1 (18 Sep 2003)
diff --git a/games-rpg/openrpg/files/1.6.1-gentoo-paths.patch b/games-rpg/openrpg/files/1.6.1-gentoo-paths.patch
new file mode 100644
index 000000000000..fe9602f6b78f
--- /dev/null
+++ b/games-rpg/openrpg/files/1.6.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.6.1 b/games-rpg/openrpg/files/digest-openrpg-1.6.1
new file mode 100644
index 000000000000..c259d67b8fd9
--- /dev/null
+++ b/games-rpg/openrpg/files/digest-openrpg-1.6.1
@@ -0,0 +1 @@
+MD5 33d9567f6e600d5c12f285627bfa50c8 openrpg-1.6.1.tar.gz 700872
diff --git a/games-rpg/openrpg/openrpg-1.6.1.ebuild b/games-rpg/openrpg/openrpg-1.6.1.ebuild
new file mode 100644
index 000000000000..fe1e08db2d91
--- /dev/null
+++ b/games-rpg/openrpg/openrpg-1.6.1.ebuild
@@ -0,0 +1,59 @@
+# 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.6.1.ebuild,v 1.1 2004/01/18 04:21:38 vapier Exp $
+
+inherit games eutils
+
+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}
+ edos2unix *.py
+ 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
+}