summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2005-09-21 00:11:30 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2005-09-21 00:11:30 +0000
commit47d273af43b8e546cdedac60528a15d8f009a286 (patch)
tree9af0ab3c2d448f1f7f0d5bead04b045e90e3b8ab /games-rpg
parentAdded hou/nowin/sou to nwn-data and added hou/sou to nwn. (diff)
downloadgentoo-2-47d273af43b8e546cdedac60528a15d8f009a286.tar.gz
gentoo-2-47d273af43b8e546cdedac60528a15d8f009a286.tar.bz2
gentoo-2-47d273af43b8e546cdedac60528a15d8f009a286.zip
Initial import. Ebuild by me.
(Portage version: 1.589-cvs)
Diffstat (limited to 'games-rpg')
-rw-r--r--games-rpg/nwn-data/ChangeLog13
-rw-r--r--games-rpg/nwn-data/Manifest3
-rw-r--r--games-rpg/nwn-data/files/digest-nwn-data-1.296
-rw-r--r--games-rpg/nwn-data/files/nwn.pngbin0 -> 4296 bytes
-rw-r--r--games-rpg/nwn-data/metadata.xml9
-rw-r--r--games-rpg/nwn-data/nwn-data-1.29.ebuild160
6 files changed, 191 insertions, 0 deletions
diff --git a/games-rpg/nwn-data/ChangeLog b/games-rpg/nwn-data/ChangeLog
new file mode 100644
index 000000000000..54d5cff5aa77
--- /dev/null
+++ b/games-rpg/nwn-data/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for games-rpg/nwn-data
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn-data/ChangeLog,v 1.1 2005/09/21 00:11:30 wolf31o2 Exp $
+
+*nwn-data-1.29 (21 Sep 2005)
+
+ 21 Sep 2005; Chris Gianelloni <wolf31o2@gentoo.org> +files/nwn.png,
+ +metadata.xml, +nwn-data-1.29.ebuild:
+ Initial import. Ebuild by me. This is the first ebuild for breaking up
+ Neverwinter Nights into 2 ebuilds. This ebuild also adds support for
+ installing the Shadows of Undrentide and Hourdes of the Underdark expansion
+ packs from CD using USE=sou and USE=hou respectively.
+
diff --git a/games-rpg/nwn-data/Manifest b/games-rpg/nwn-data/Manifest
new file mode 100644
index 000000000000..0b861d0cec1a
--- /dev/null
+++ b/games-rpg/nwn-data/Manifest
@@ -0,0 +1,3 @@
+MD5 865e0ba3b5586be311a4be3205d6154c nwn-data-1.29.ebuild 3888
+MD5 a1f70c52e9c1098e5bd13153dce5b63d files/digest-nwn-data-1.29 396
+MD5 d05b3b73edd2b4beadbce95837e2ab20 files/nwn.png 4296
diff --git a/games-rpg/nwn-data/files/digest-nwn-data-1.29 b/games-rpg/nwn-data/files/digest-nwn-data-1.29
new file mode 100644
index 000000000000..e80e8e0221f9
--- /dev/null
+++ b/games-rpg/nwn-data/files/digest-nwn-data-1.29
@@ -0,0 +1,6 @@
+MD5 73c6515fd6aa5f860802098a55000ae8 nwclient129.tar.gz 5504342
+MD5 d1e72a42a20c247332de6c6adcbcade5 nwfrench129.tar.gz 357777520
+MD5 efa3fb10bdaced373d21d9809a176968 nwitalian129.tar.gz 3926804
+MD5 920d4fdcf5d8d0ff583f236ae7f3f6d4 nwspanish129.tar.gz 3912516
+MD5 7ff8aeea91a59f8c54a5263ca8ea2261 nwgerman129.tar.gz 381832822
+MD5 8222401efe25235b56d01b38ae880b5b nwresources129.tar.gz 1212356127
diff --git a/games-rpg/nwn-data/files/nwn.png b/games-rpg/nwn-data/files/nwn.png
new file mode 100644
index 000000000000..d595f5fc7034
--- /dev/null
+++ b/games-rpg/nwn-data/files/nwn.png
Binary files differ
diff --git a/games-rpg/nwn-data/metadata.xml b/games-rpg/nwn-data/metadata.xml
new file mode 100644
index 000000000000..fe08918e6837
--- /dev/null
+++ b/games-rpg/nwn-data/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<maintainer>
+ <email>wolf31o2@gentoo.org</email>
+ <name>Chris Gianelloni</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-rpg/nwn-data/nwn-data-1.29.ebuild b/games-rpg/nwn-data/nwn-data-1.29.ebuild
new file mode 100644
index 000000000000..5756ae848555
--- /dev/null
+++ b/games-rpg/nwn-data/nwn-data-1.29.ebuild
@@ -0,0 +1,160 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn-data/nwn-data-1.29.ebuild,v 1.1 2005/09/21 00:11:30 wolf31o2 Exp $
+
+inherit eutils games
+
+MY_PV=${PV//.}
+
+DESCRIPTION="Neverwinter Nights Data Files"
+HOMEPAGE="http://nwn.bioware.com/downloads/linuxclient.html"
+SRC_URI="http://nwdownloads.bioware.com/neverwinternights/linux/${MY_PV}/nwclient${MY_PV}.tar.gz
+ linguas_fr? (
+ ftp://jeuxlinux.com/bioware/Neverwinter_Nights/nwfrench${MY_PV}.tar.gz )
+ linguas_it? (
+ http://nwdownloads.bioware.com/neverwinternights/linux/${MY_PV}/nwitalian${MY_PV}.tar.gz )
+ linguas_es? (
+ http://nwdownloads.bioware.com/neverwinternights/linux/${MY_PV}/nwspanish${MY_PV}.tar.gz )
+ linguas_de? (
+ http://xfer06.fileplanet.com/%5E389272944/082003/nwgerman${MY_PV}.tar.gz )
+ nowin? (
+ http://bsd.mikulas.com/nwresources${MY_PV}.tar.gz
+ http://163.22.12.40/FreeBSD/distfiles/nwresources${MY_PV}.tar.gz
+ ftp://jeuxlinux.com/bioware/Neverwinter_Nights/nwresources${MY_PV}.tar.gz )"
+
+LICENSE="NWN-EULA"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nowin sou hou"
+RESTRICT="nostrip nomirror"
+
+RDEPEND="virtual/x11
+ virtual/opengl
+ >=media-libs/libsdl-1.2.5
+ amd64? ( app-emulation/emul-linux-x86-baselibs )"
+
+S="${WORKDIR}/nwn"
+dir="${GAMES_PREFIX_OPT}/${PN/-data}"
+Ddir="${D}/${dir}"
+
+pkg_setup() {
+ if use sou && use hou
+ then
+ cdrom_get_cds NWNSoUInstallGuide.rtf \
+ ArcadeInstallNWNXP213f.EXE
+ elif use sou
+ then
+ cdrom_get_cds NWNSoUInstallGuide.rtf
+ elif use hou
+ then
+ cdrom_get_cds ArcadeInstallNWNXP213f.EXE
+ fi
+}
+
+src_unpack() {
+ mkdir ${S}
+ cd ${S}
+ unpack nwclient129.tar.gz
+ cd ${WORKDIR}
+ use nowin && unpack nwresources129.tar.gz
+ cd ${S}
+ rm -rf override/*
+ # the following is so ugly, please pretend it doesnt exist
+ declare -a Aarray=(${A})
+ use nowin && if [ "${#Aarray[*]}" == "3" ]; then
+ unpack ${Aarray[1]}
+ fi
+ if use sou
+ then
+ unzip -o ${CDROM_ROOT}/Data_Shared.zip
+ unzip -o ${CDROM_ROOT}/Language_data.zip
+ unzip -o ${CDROM_ROOT}/Language_update.zip
+ unzip -o ${CDROM_ROOT}/Data_Linux.zip
+ rm -f data/patch.bif patch.key
+ fi
+ if use hou
+ then
+ if use sou && use hou
+ then
+ rm -f xp1patch.key data/xp1patch.bif override/*
+ cdrom_load_next_cd
+ fi
+ rm -f data/patch.bif patch.key
+ unzip -o ${CDROM_ROOT}/Data_Shared.zip
+ unzip -o ${CDROM_ROOT}/Language_data.zip
+ unzip -o ${CDROM_ROOT}/Language_update.zip
+ fi
+}
+
+src_install() {
+ dodir ${dir}
+ # Since the movies don't play anyway, we'll remove them
+ rm -rf ${S}/movies
+ mkdir -p ${S}/dmvault ${S}/hak ${S}/portraits
+ rm -rf ${S}/dialog.tlk ${S}/dialog.TLK ${S}/dmclient ${S}/nwmain \
+ ${S}/nwserver ${S}/nwm/* ${S}/SDL-1.2.5 ${S}/fixinstall
+ mv ${S}/* ${Ddir}
+ keepdir ${dir}/servervault
+ keepdir ${dir}/scripttemplates
+ keepdir ${dir}/saves
+ keepdir ${dir}/portraits
+ keepdir ${dir}/hak
+ cd ${Ddir}
+ for d in ambient data dmvault hak localvault music override portraits
+ do
+ cd ${d}
+ for f in $(find . -name '*.*') ; do
+ lcf=$(echo ${f} | tr [:upper:] [:lower:])
+ if [ ${f} != ${lcf} ] && [ -f ${f} ]
+ then
+ mv ${f} $(echo ${f} | tr [:upper:] [:lower:])
+ fi
+ done
+ cd ${Ddir}
+ done
+ if ! use sou && ! use hou
+ then
+ chmod a-x ${Ddir}/data/patch.bif chmod a-x${Ddir}/patch.key
+ fi
+ doicon ${FILESDIR}/nwn.png
+ prepgamesdirs
+ chmod -R g+rwX ${Ddir}/saves ${Ddir}/localvault ${Ddir}/dmvault \
+ || die "could not chmod"
+ chmod g+rwX ${Ddir} || die "could not chmod"
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ if ! use nowin ; then
+ einfo "The NWN linux client data 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}) Neverwinter Nights to ${GAMES_PREFIX_OPT}/nwn:"
+ einfo " ambient/"
+ einfo " data/ (all files except for patch.bif)"
+ einfo " dmvault/"
+ einfo " hak/"
+ einfo " localvault/"
+ einfo " modules/"
+ einfo " music/"
+ einfo " override/"
+ einfo " portraits/"
+ einfo " saves/"
+ einfo " servervault/"
+ einfo " texturepacks/"
+ einfo " chitin.key"
+ einfo "2) Chown and chmod the files with the following commands"
+ einfo " chown -R ${GAMES_USER}:${GAMES_GROUP} ${dir}"
+ einfo " chmod -R g+rwX ${dir}"
+ einfo "3) Run ${dir}/fixinstall as root"
+ einfo "4) Make sure that you are in group ${GAMES_GROUP}"
+ echo
+ einfo "Or try emerging with USE=nowin"
+ else
+ einfo "The NWN linux client data is now installed."
+ fi
+ echo
+ einfo "This is only the data portion, you will also need games-rpg/nwn to"
+ einfo "play Neverwinter Nights."
+ echo
+}