summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-09-10 06:26:50 +0000
committerMike Frysinger <vapier@gentoo.org>2003-09-10 06:26:50 +0000
commit1190b5814f7da41ef46d6f5758aa44b80e0e954f (patch)
tree410895ca938ddb9b4166f4850349a53245129e10 /games-rpg/nwn
parentinitial import. buig 26371 (diff)
downloadgentoo-2-1190b5814f7da41ef46d6f5758aa44b80e0e954f.tar.gz
gentoo-2-1190b5814f7da41ef46d6f5758aa44b80e0e954f.tar.bz2
gentoo-2-1190b5814f7da41ef46d6f5758aa44b80e0e954f.zip
i lub rpgs
Diffstat (limited to 'games-rpg/nwn')
-rw-r--r--games-rpg/nwn/ChangeLog56
-rw-r--r--games-rpg/nwn/Manifest5
-rw-r--r--games-rpg/nwn/files/digest-nwn-1.303
-rw-r--r--games-rpg/nwn/files/nwn3
-rw-r--r--games-rpg/nwn/files/nwn-1.30-fixinstall91
-rw-r--r--games-rpg/nwn/nwn-1.30.ebuild80
6 files changed, 238 insertions, 0 deletions
diff --git a/games-rpg/nwn/ChangeLog b/games-rpg/nwn/ChangeLog
new file mode 100644
index 000000000000..c0d550e585ec
--- /dev/null
+++ b/games-rpg/nwn/ChangeLog
@@ -0,0 +1,56 @@
+# ChangeLog for app-games/nwn
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/ChangeLog,v 1.1 2003/09/10 06:26:50 vapier Exp $
+
+ 06 Sep 2003; Chris Gianelloni <wolf31o2@gentoo.org> nwn-1.30.ebuild:
+ Added RESTRICT=fetch. Closes bug #27548.
+
+ 29 Aug 2003; Chris Gianelloni <wolf31o2@gentoo.org> nwn-1.30.ebuild:
+ Added RESTRICT=fetch. Closing bug #27548.
+
+*nwn-1.30 (26 Jun 2003)
+
+ 14 Aug 2003; Mike Frysinger <vapier@gentoo.org> :
+ Add updated ebuild from Daniel Mannarino <thesnark@operamail.com> #25162.
+ Fixes USE=nowin install.
+
+ 16 Jul 2003; Mike Frysinger <vapier@gentoo.org> :
+ Add resources via USE=nowin for those ppl who run pure linux.
+
+ 26 Jun 2003; Mike Frysinger <vapier@gentoo.org> :
+ Version bump (added 1.30 patch) #23391.
+
+*nwn-1.29 (22 Jun 2003)
+
+ 22 Jun 2003; Mike Frysinger <vapier@gentoo.org> :
+ Version bump + games.eclass support #23198.
+
+*nwn-1.29_beta6 (06 Jun 2003)
+
+ 06 Jun 2003; Martin Holzer <mholzer@gentoo.org> nwn-1.29_beta4.ebuild,
+ nwn-1.29_beta5.ebuild, nwn-1.29_beta6.ebuild:
+ Version bumped. Marked stable. Cleanup
+
+*nwn-1.29_beta5 (24 May 2003)
+
+ 24 May 2003; Martin Holzer <mholzer@gentoo.org> nwn-1.29_beta5.ebuild,
+ files/nwn-1.29_beta5-fixinstall:
+ Version bumped.
+
+*app-games/nwn-1.29_beta2.ebuild (13 Apr 2003)
+
+ 13 Apr 2003; phoen][x <phoenix@gentoo.org> ChangeLog, nwn-1.29_beta4.ebuild,
+ files/digest-nwn-1.29_beta4, files/nwn-1.29_beta4-fixinstall :
+ Version bump.
+
+*app-games/nwn-1.29_beta2.ebuild (28 Mar 2003)
+
+ 28 Mar 2003; phoen][x <phoenix@gentoo.org> ChangeLog, nwn-1.29_beta3.ebuild,
+ files/digest-nwn-1.29_beta3, files/nwn-1.29_beta3-fixinstall :
+ Version bump.
+
+*app-games/nwn-1.29_beta2.ebuild (27 Mar 2003)
+
+ 27 Mar 2003; phoen][x <phoenix@gentoo.org> ChangeLog, nwn-1.29_beta2.ebuild,
+ files/digest-nwn-1.29_beta2, files/nwn-1.29_beta2-fixinstall :
+ Initial import.
diff --git a/games-rpg/nwn/Manifest b/games-rpg/nwn/Manifest
new file mode 100644
index 000000000000..295571ca34e4
--- /dev/null
+++ b/games-rpg/nwn/Manifest
@@ -0,0 +1,5 @@
+MD5 2142a97c19f5965d387e078c938f2ab0 nwn-1.30.ebuild 2470
+MD5 aaf52bd569006b7ef2ebb0a40178fe37 ChangeLog 1941
+MD5 1330dd0f889d308e814b0b0f8b1faa85 files/nwn 38
+MD5 3991783d84979fb3cc6430785ae08aa6 files/digest-nwn-1.30 213
+MD5 0875406c242fb0889db6de2d3f4ace88 files/nwn-1.30-fixinstall 1684
diff --git a/games-rpg/nwn/files/digest-nwn-1.30 b/games-rpg/nwn/files/digest-nwn-1.30
new file mode 100644
index 000000000000..b2906cf706e0
--- /dev/null
+++ b/games-rpg/nwn/files/digest-nwn-1.30
@@ -0,0 +1,3 @@
+MD5 73c6515fd6aa5f860802098a55000ae8 nwclient129.tar.gz 5504342
+MD5 8222401efe25235b56d01b38ae880b5b nwresources129.tar.gz 1212356127
+MD5 658bd6a2865eeb599c6730b743a852c8 linuxclientupdate129to130.tar.gz 40640188
diff --git a/games-rpg/nwn/files/nwn b/games-rpg/nwn/files/nwn
new file mode 100644
index 000000000000..a254dd9230b4
--- /dev/null
+++ b/games-rpg/nwn/files/nwn
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd /opt/nwn
+exec ./nwn ${@}
diff --git a/games-rpg/nwn/files/nwn-1.30-fixinstall b/games-rpg/nwn/files/nwn-1.30-fixinstall
new file mode 100644
index 000000000000..44a67423b87b
--- /dev/null
+++ b/games-rpg/nwn/files/nwn-1.30-fixinstall
@@ -0,0 +1,91 @@
+#!/bin/bash
+# Initial version by Bioware
+# Modified to match the gentoo setup
+# 03/27/2003 phoen][x <phoenix@gentoo.org>
+
+FaRequiredDirs=(ambient data music override miles nwm)
+aRequiredFiles=(chitin.key dialog.tlk nwmain patch.key)
+aLCDirs=(ambient data dmvault hak localvault music override portraits)
+aProblemFiles=()
+
+printf "\nFixing case\n\n"
+
+if [ -f dialog.TLK ]
+then
+ mv dialog.TLK dialog.tlk
+fi
+
+if [ -f dialogF.TLK ]
+then
+ mv dialogF.TLK dialogf.tlk
+fi
+
+printf "Checking for required files\n\n"
+
+for d in ${aRequiredDirs[@]}
+do
+ if [ -d $d ]
+ then
+ printf "PASSED: $d directory exists\n"
+ else
+ printf "FAILED: $d directory missing\n"
+ exit
+ fi
+done
+
+for f in ${aRequiredFiles[@]}
+do
+ if [ -f $f ]
+ then
+ printf "PASSED: $f exists\n"
+ else
+ printf "FAILED: $f missing\n"
+ exit
+ fi
+done
+
+printf "\nFixing case\n\n"
+
+for d in ${aLCDirs[@]}
+do
+ if [ -d $d ]
+ then
+ printf "$d\n"
+
+ cd $d
+
+ for f in $(find *.*)
+ do
+ lcf=$(echo $f | tr [:upper:] [:lower:])
+ if [ $f != $lcf ]
+ then
+ if [ -f $f ]
+ then
+ mv $f $(echo $f | tr [:upper:] [:lower:])
+ fi
+ fi
+ printf .
+ done
+
+ cd ..
+
+ printf "\n"
+ fi
+done
+
+printf "\nChecking for problem files\n\n"
+
+for f in ${aProblemFiles[@]}
+do
+ if [ -f $f ]
+ then
+ printf "WARNING: $f exists, deleting this file is recommended\n"
+ fi
+done
+
+printf "\nFixing permissions\n\n"
+
+chown GENTOO_USER:GENTOO_GROUP GENTOO_DIR/nwn/ -R
+chmod g+rwX GENTOO_DIR/nwn/ -R
+
+printf "\nYou are ready to run Neverwinter Nights.\n\n"
diff --git a/games-rpg/nwn/nwn-1.30.ebuild b/games-rpg/nwn/nwn-1.30.ebuild
new file mode 100644
index 000000000000..6f5176e6ac51
--- /dev/null
+++ b/games-rpg/nwn/nwn-1.30.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/nwn-1.30.ebuild,v 1.1 2003/09/10 06:26:50 vapier Exp $
+
+inherit games
+
+DESCRIPTION="Never Winter Nights"
+HOMEPAGE="http://nwn.bioware.com/downloads/linuxclient.html"
+SRC_URI="ftp://jeuxlinux.com/bioware/Neverwinter_Nights/nwclient129.tar.gz
+ nowin? ( ftp://jeuxlinux.com/bioware/Neverwinter_Nights/nwresources129.tar.gz )
+ http://nwdownloads.bioware.com/neverwinternights/linux/130/linuxclientupdate129to130.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="x86"
+IUSE="nowin"
+RESTRICT="fetch nostrip nomirror"
+
+RDEPEND="virtual/x11
+ opengl? ( virtual/opengl )
+ >=media-libs/libsdl-1.2.5"
+
+S=${WORKDIR}/nwn
+
+src_unpack() {
+ mkdir ${S}
+ cd ${S}
+ unpack nwclient129.tar.gz
+ cd ${WORKDIR}
+ use nowin && unpack nwresources129.tar.gz
+ cd ${S}
+ unpack linuxclientupdate129to130.tar.gz
+}
+
+src_install() {
+ dodir ${GAMES_PREFIX_OPT}
+ sed \
+ -e "s:GENTOO_USER:${GAMES_USER}:" \
+ -e "s:GENTOO_GROUP:${GAMES_GROUP}:" \
+ -e "s:GENTOO_DIR:${GAMES_PREFIX_OPT}:" \
+ ${FILESDIR}/${P}-fixinstall > ${WORKDIR}/nwn/fixinstall
+ mv ${WORKDIR}/nwn ${D}/${GAMES_PREFIX_OPT}
+ dogamesbin ${FILESDIR}/nwn
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ if [ ! `use nowin` ] ; then
+ einfo "The NWN linux client is now installed."
+ einfo "Proceed with the following steps in order to get it working:"
+ einfo "1) Copy the following directories/files from your installed and"
+ einfo " patched (${PV}) Never Winter Nights to ${GAMES_PREFIX_OPT}/nwn:"
+ einfo " ambient/"
+ einfo " data/"
+ einfo " dmvault/"
+ einfo " hak/"
+ einfo " localvault/"
+ einfo " modules/"
+ einfo " music/"
+ einfo " nwm/"
+ einfo " override/"
+ einfo " portraits/"
+ einfo " saves/"
+ einfo " servervault/"
+ einfo " texturepacks/"
+ einfo " chitin.key"
+ einfo " patch.key"
+ einfo " dialog.tlk"
+ einfo " dialogF.tlk (French, German, Italian, and Spanish)"
+ einfo "2) Chown and chmod the files with the following commands"
+ einfo " chown -R ${GAMES_USER}.${GAMES_GROUP} ${GAMES_PREFIX_OPT}/nwn"
+ einfo " chmod -R g+rwX ${GAMES_PREFIX_OPT}/nwn"
+ einfo "3) Run ${GAMES_PREFIX_OPT}/nwn/fixinstall as root"
+ einfo "4) Make sure that you are in group ${GAMES_GROUP}"
+ einfo "5) Use ${GAMES_PREFIX_OPT}/nwn/nwn to run the game"
+ echo
+ einfo "Or try emerging with USE=nowin"
+ fi
+ games_pkg_postinst
+}