From e23d4d9edd1a79839bdfca464efcd41000ea89ea Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Thu, 22 Sep 2005 13:57:33 +0000 Subject: Fixed ixinstall script. (Portage version: 2.0.52-r1) --- games-rpg/nwn/ChangeLog | 7 ++- games-rpg/nwn/files/fixinstall | 105 ++++++++++++++++++++++++++++++++ games-rpg/nwn/files/nwn-1.65-fixinstall | 105 -------------------------------- games-rpg/nwn/nwn-1.65-r1.ebuild | 4 +- games-rpg/nwn/nwn-1.66-r1.ebuild | 4 +- games-rpg/nwn/nwn-1.66.ebuild | 4 +- 6 files changed, 117 insertions(+), 112 deletions(-) create mode 100755 games-rpg/nwn/files/fixinstall delete mode 100755 games-rpg/nwn/files/nwn-1.65-fixinstall (limited to 'games-rpg') diff --git a/games-rpg/nwn/ChangeLog b/games-rpg/nwn/ChangeLog index 76c5a056c6c7..216c22b08df9 100644 --- a/games-rpg/nwn/ChangeLog +++ b/games-rpg/nwn/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-rpg/nwn # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/ChangeLog,v 1.24 2005/09/21 00:39:04 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/ChangeLog,v 1.25 2005/09/22 13:57:33 wolf31o2 Exp $ + + 22 Sep 2005; Chris Gianelloni + -files/nwn-1.65-fixinstall, +files/fixinstall, nwn-1.65-r1.ebuild, + nwn-1.66.ebuild, nwn-1.66-r1.ebuild: + Fixed fixinstall script. *nwn-1.66-r1 (21 Sep 2005) diff --git a/games-rpg/nwn/files/fixinstall b/games-rpg/nwn/files/fixinstall new file mode 100755 index 000000000000..d0d7a4c80315 --- /dev/null +++ b/games-rpg/nwn/files/fixinstall @@ -0,0 +1,105 @@ +#!/bin/bash +# Initial version by Bioware +# Modified to match the gentoo setup +# 03/27/2003 phoen][x + +cd GENTOO_DIR/nwn || exit 1 + +aRequiredDirs=(ambient data music override miles nwm) +aRequiredFiles=(chitin.key dialog.tlk nwmain) +aLCDirs=(ambient data dmvault hak localvault music override portraits) +aProblemFiles=() +aWritables=(nwn.ini nwnplayer.ini nwncdkey.ini saves localvault tempclient currentgame dmvault) + +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 1 + fi +done + +for f in ${aRequiredFiles[@]} ; do + if [[ -f $f ]] ; then + printf "PASSED: $f exists\n" + else + printf "FAILED: $f missing\n" + exit 1 + fi +done + +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 + +for d in ${aLCDirs[@]} ; do + if [[ -d $d ]] ; then + printf "$d\n" + 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 + printf . + done + + cd .. + printf "\n" + fi +done + +defIFS=$IFS +IFS='|' + +if [[ -d saves ]] ; then + cd saves + for d in $(find . -name '* - *' -type d -printf "%f|") ; do + printf "saves/$d\n" + cd "$d" + + [[ -f Portrait.tga ]] && mv Portrait.tga portrait.tga + [[ -f Screen.tga ]] && mv Screen.tga screen.tga + + cd .. + done + cd .. +fi + +IFS=$defIFS + +printf "\nChecking for problem files\n\n" + +for f in ${aProblemFiles[@]} ; do + if [[ -e $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 + +# 1.65-specific fixes to permissions +chmod a-x GENTOO_DIR/nwn/data/patch.bif +chmod a-x GENTOO_DIR/nwn/nwm/Chapter1.nwm +chmod a-x GENTOO_DIR/nwn/nwm/Chapter1E.nwm +chmod a-x GENTOO_DIR/nwn/nwm/Chapter2.nwm +chmod a-x GENTOO_DIR/nwn/nwm/Chapter2E.nwm +chmod a-x GENTOO_DIR/nwn/nwm/Chapter3.nwm +chmod a-x GENTOO_DIR/nwn/nwm/Chapter4.nwm +chmod a-x GENTOO_DIR/nwn/nwm/Prelude.nwm +chmod a-x GENTOO_DIR/nwn/patch.key + +printf "\nYou are ready to run Neverwinter Nights.\n\n" diff --git a/games-rpg/nwn/files/nwn-1.65-fixinstall b/games-rpg/nwn/files/nwn-1.65-fixinstall deleted file mode 100755 index d0d7a4c80315..000000000000 --- a/games-rpg/nwn/files/nwn-1.65-fixinstall +++ /dev/null @@ -1,105 +0,0 @@ -#!/bin/bash -# Initial version by Bioware -# Modified to match the gentoo setup -# 03/27/2003 phoen][x - -cd GENTOO_DIR/nwn || exit 1 - -aRequiredDirs=(ambient data music override miles nwm) -aRequiredFiles=(chitin.key dialog.tlk nwmain) -aLCDirs=(ambient data dmvault hak localvault music override portraits) -aProblemFiles=() -aWritables=(nwn.ini nwnplayer.ini nwncdkey.ini saves localvault tempclient currentgame dmvault) - -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 1 - fi -done - -for f in ${aRequiredFiles[@]} ; do - if [[ -f $f ]] ; then - printf "PASSED: $f exists\n" - else - printf "FAILED: $f missing\n" - exit 1 - fi -done - -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 - -for d in ${aLCDirs[@]} ; do - if [[ -d $d ]] ; then - printf "$d\n" - 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 - printf . - done - - cd .. - printf "\n" - fi -done - -defIFS=$IFS -IFS='|' - -if [[ -d saves ]] ; then - cd saves - for d in $(find . -name '* - *' -type d -printf "%f|") ; do - printf "saves/$d\n" - cd "$d" - - [[ -f Portrait.tga ]] && mv Portrait.tga portrait.tga - [[ -f Screen.tga ]] && mv Screen.tga screen.tga - - cd .. - done - cd .. -fi - -IFS=$defIFS - -printf "\nChecking for problem files\n\n" - -for f in ${aProblemFiles[@]} ; do - if [[ -e $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 - -# 1.65-specific fixes to permissions -chmod a-x GENTOO_DIR/nwn/data/patch.bif -chmod a-x GENTOO_DIR/nwn/nwm/Chapter1.nwm -chmod a-x GENTOO_DIR/nwn/nwm/Chapter1E.nwm -chmod a-x GENTOO_DIR/nwn/nwm/Chapter2.nwm -chmod a-x GENTOO_DIR/nwn/nwm/Chapter2E.nwm -chmod a-x GENTOO_DIR/nwn/nwm/Chapter3.nwm -chmod a-x GENTOO_DIR/nwn/nwm/Chapter4.nwm -chmod a-x GENTOO_DIR/nwn/nwm/Prelude.nwm -chmod a-x GENTOO_DIR/nwn/patch.key - -printf "\nYou are ready to run Neverwinter Nights.\n\n" diff --git a/games-rpg/nwn/nwn-1.65-r1.ebuild b/games-rpg/nwn/nwn-1.65-r1.ebuild index 07e92fdd6439..ff232818f783 100644 --- a/games-rpg/nwn/nwn-1.65-r1.ebuild +++ b/games-rpg/nwn/nwn-1.65-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/nwn-1.65-r1.ebuild,v 1.3 2005/09/16 02:49:44 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/nwn-1.65-r1.ebuild,v 1.4 2005/09/22 13:57:33 wolf31o2 Exp $ inherit eutils games @@ -65,7 +65,7 @@ src_install() { -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 + ${FILESDIR}/fixinstall > ${WORKDIR}/nwn/fixinstall mv ${S} ${D}/${GAMES_PREFIX_OPT} insinto /usr/share/pixmaps doins ${FILESDIR}/nwn.png diff --git a/games-rpg/nwn/nwn-1.66-r1.ebuild b/games-rpg/nwn/nwn-1.66-r1.ebuild index 587b29d4ff27..bd514580df4c 100644 --- a/games-rpg/nwn/nwn-1.66-r1.ebuild +++ b/games-rpg/nwn/nwn-1.66-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/nwn-1.66-r1.ebuild,v 1.1 2005/09/21 00:39:05 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/nwn-1.66-r1.ebuild,v 1.2 2005/09/22 13:57:33 wolf31o2 Exp $ inherit eutils games @@ -117,7 +117,7 @@ src_install() { -e "s:GENTOO_USER:${GAMES_USER}:" \ -e "s:GENTOO_GROUP:${GAMES_GROUP}:" \ -e "s:GENTOO_DIR:${GAMES_PREFIX_OPT}:" \ - ${FILESDIR}/${P}-fixinstall > ${S}/fixinstall + ${FILESDIR}/fixinstall > ${S}/fixinstall mv ${S}/* ${Ddir} games_make_wrapper nwn ./nwn ${dir} make_desktop_entry nwn "Neverwinter Nights" diff --git a/games-rpg/nwn/nwn-1.66.ebuild b/games-rpg/nwn/nwn-1.66.ebuild index ae4824b3f5b6..484529e486a2 100644 --- a/games-rpg/nwn/nwn-1.66.ebuild +++ b/games-rpg/nwn/nwn-1.66.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/nwn-1.66.ebuild,v 1.4 2005/09/21 00:39:05 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/nwn-1.66.ebuild,v 1.5 2005/09/22 13:57:33 wolf31o2 Exp $ inherit eutils games @@ -71,7 +71,7 @@ src_install() { -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 + ${FILESDIR}/fixinstall > ${WORKDIR}/nwn/fixinstall mv ${S} ${D}/${GAMES_PREFIX_OPT} doicon ${FILESDIR}/nwn.png #dogamesbin ${FILESDIR}/nwn -- cgit v1.2.3-65-gdbad