Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 76660 Details for
Bug 118446
Ebuild for CD install of Neverwinter Nights (Original, Platinum)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
nwn-data-1.29-r1.ebuild
nwn-data-1.29-r1.ebuild (text/plain), 7.45 KB, created by
Constantin Bergemann
on 2006-01-09 12:05:27 UTC
(
hide
)
Description:
nwn-data-1.29-r1.ebuild
Filename:
MIME Type:
Creator:
Constantin Bergemann
Created:
2006-01-09 12:05:27 UTC
Size:
7.45 KB
patch
obsolete
># Copyright 1999-2005 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit eutils games > >MY_PV=${PV//.} >NWMOUSE_P="nwmouse-v2-public.20050216.085035" > >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_de? ( > http://xfer06.fileplanet.com/%5E389272944/082003/nwgerman${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 ) > nwmousehack? ( > http://home.woh.rr.com/nwmovies/nwmouse/${NWMOUSE_P}.tar.gz > http://home.woh.rr.com/nwmovies/cursors.tar.gz )" > >LICENSE="NWN-EULA" >SLOT="0" >KEYWORDS="~x86" >IUSE="sou hou nwmousehack linguas_fr linguas_it linguas_es linguas_de" >RESTRICT="nostrip nomirror" > >DEPEND="app-arch/biounzip > app-arch/unshield" >RDEPEND="nwmousehack? ( dev-libs/elfutils )" > >S=${WORKDIR}/nwn > >pkg_setup() { > check_license || die "license check failed" > games_pkg_setup > > if use hwmousehack; then > echo > ewarn "The ebuild will be installed with nwmouse support. This is a hack to" > ewarn "enable hardware cursors in the game, which make it much more playable" > ewarn "on weaker hardware. Many people seem to use it successfully, but it" > ewarn "is still a crazy hack. Be warned! When something goes wrong try" > ewarn "emerging without it!" > fi > > echo > > if use sou && use hou; then > einfo "You will need the Original, SoU and HoU CDs for this installation." > einfo "First, insert CD 1 of the original Neverwinter cd set." > cdrom_get_cds ArcadeInstallNWN109.exe \ > disk2.bzf \ > movies/NWNintro.bik \ > ArcadeInstallNWNXP1_12d.EXE \ > ArcadeInstallNWNXP213f.EXE > elif use sou; then > einfo "You will need the Original and SoU CDs for this installation." > einfo "First, insert CD 1 of the original Neverwinter cd set." > cdrom_get_cds ArcadeInstallNWN109.exe \ > disk2.bzf \ > movies/NWNintro.bik \ > ArcadeInstallNWNXP1_12d.EXE > elif use hou; then > einfo "You will need the Original and HoU CDs for this installation." > einfo "First, insert CD 1 of the original Neverwinter cd set." > cdrom_get_cds ArcadeInstallNWN109.exe \ > disk2.bzf \ > movies/NWNintro.bik \ > ArcadeInstallNWNXP213f.EXE > else > einfo "You will need the Original CDs for this installation." > einfo "First, insert CD 1 of the original Neverwinter cd set." > cdrom_get_cds ArcadeInstallNWN109.exe \ > disk2.bzf \ > movies/NWNintro.bik > fi >} > >src_unpack() { > mkdir "${S}" > cd "${S}" > > mkdir ambient data dmvault docs lib localvault miles modules music nwm \ > override texturepacks scripttemplates movies > > # Handle NWN CD1 > mkdir "${S}/disc1_tmp" > cd disc1_tmp > einfo "Unpacking files..." > unshield x ${CDROM_ROOT}/data1.cab || die "unpacking files" > mv -f */* . > cd .. > > mv -f disc1_tmp/*.[Bb][Ii][Ff] data > mv -f disc1_tmp/[Dd][Uu][Nn][Gg][Ee][Oo][Nn][Mm][Aa][Ss][Tt][Ee][Rr].[Bb][Ii][Cc] dmvault > mv -f disc1_tmp/*.[Bb][Ii][Cc] localvault > mv -f disc1_tmp/*.[Pp][Dd][Ff] docs > mv -f disc1_tmp/*.[Tt][Xx][Tt] docs > mv -f disc1_tmp/*.[Ee][Rr][Ff] texturepacks > rm -rf disc1_tmp > > cd texturepacks > mv -f Tiles_TPa.ERF Tiles_Tpa.erf > mv -f Tiles_TPb.ERF Tiles_Tpb.erf > mv -f Tiles_TPc.ERF Tiles_Tpc.erf > cd .. > > # Handle NWN CD2 > einfo "Insert CD 2 of the original Neverwinter cd set." > cdrom_load_next_cd > einfo "Unpacking files..." > biounzip ${CDROM_ROOT}/disk2.bzf . || die "unpacking files" > > # Handle NWN CD3 > einfo "Insert CD 3 of the original Neverwinter cd set." > cdrom_load_next_cd > einfo "Copying files from cd..." > cp ${CDROM_ROOT}/ambient/* ambient || die "error copying data" > cp ${CDROM_ROOT}/data/* data || die "error copying data" > cp ${CDROM_ROOT}/movies/* movies || die "error copying data" > cp ${CDROM_ROOT}/music/* music || die "error copying data" > > # Handle Linux client, and clean up a little > unpack nwclient${MY_PV}.tar.gz > use linguas_fr && unpack nwfrench${MY_PV}.tar.gz > use linguas_it && unpack nwitalian${MY_PV}.tar.gz > use linguas_es && unpack nwspanish${MY_PV}.tar.gz > use linguas_de && unpack nwgerman${MY_PV}.tar.gz > > # Handle Shadows of Undertide > if use sou; then > einfo "Insert the Shadows of Undertide CD." > cdrom_load_next_cd > einfo "Unpacking files..." > unzip -o ${CDROM_ROOT}/Data_Shared.zip > unzip -o ${CDROM_ROOT}/Language_data.zip > unzip -o ${CDROM_ROOT}/Data_Linux.zip > fi > > # Handle Hordes of the Underdark > if use hou; then > einfo "Insert the Hordes of the Underdark CD." > cdrom_load_next_cd > einfo "Unpacking files..." > unzip -o ${CDROM_ROOT}/Data_Shared.zip > unzip -o ${CDROM_ROOT}/Language_data.zip > fi > > # Handle NWN mouse hack > if use nwmousehack; then > einfo "Compiling nwmouse hack..." > mkdir nwmouse_tmp > cd nwmouse_tmp > tar xzf ${DISTDIR}/${NWMOUSE_P}.tar.gz || die "error unpacking files" > cd nwmouse > # Don't look closely, its ugly > sed -i -e 's:nwmouse/libdis/libdisasm.so:nwmouse/libdisasm.so:' nwmouse_cookie.c > echo "[CC] libdis.c i386.c -o libdisasm.so" > gcc -Ilibdis -g -fPIC -shared -Wl,-soname,libdisasm.so -o libdis/libdisasm.so \ > libdis/libdis.c \ > libdis/i386.c || die "compiling nwmouse failed" > # Should -fPIC be enabled here? I'm not sure - please comment. > echo "[CC] nwmouse_cookie.c nwmouse_link.S nwmouse_link2.S nwmouce.c -o nwmouse.so" > gcc -shared -g -I/usr/include/libelf -Ilibdis -o nwmouse.so \ > nwmouse_cookie.c \ > nwmouse_link.S \ > nwmouse_link2.S \ > nwmouse.c -ldl -lelf -Xlinker -L/usr/X11R6/lib -lXcursor -lSDL || die "compiling nwmouse falied" > cd ../.. > > mkdir nwmouse > mv -f nwmouse_tmp/nwmouse/nwmouse.so nwmouse > mv -f nwmouse_tmp/nwmouse/libdis/libdisasm.so nwmouse > mv -f nwmouse_tmp/nwmouse/nwmouse.README.txt docs > > mkdir nwmouse/cursors > cd nwmouse/cursors > tar xzf ${DISTDIR}/cursors.tar.gz || die "error unpacking files" > cd ../.. > > rm -rf nwmouse_tmp > > sed -i -e '\:^./nwmain .*:i \ >if [[ -f ./nwmouse/nwmouse.so ]]; then \ > export XCURSOR_PATH=$PWD \ > export XCURSOR_THEME=nwmouse \ > export LD_PRELOAD=./nwmouse/nwmouse.so:$LD_PRELOAD \ >fi \ >' ${S}/nwn > fi > > # Cleanup > rm -rf dialog.tlk dialog.TLK dialogf.tlk dialogF.TLK nwmain \ > nwserver SDL-1.2.5 fixinstall nwm patch.key xp1patch.key \ > xp2patch.key data/patch.bif data/xp1patch.bif data/xp2patch.bif > mv -f *.txt *.pdf docs >} > >src_install() { > idir="${GAMES_PREFIX_OPT}/nwn" > dodir ${idir} > mv ${S}/* ${D}/${idir} > keepdir ${idir}/servervault > keepdir ${idir}/saves > keepdir ${idir}/portraits > keepdir ${idir}/hak > keepdir ${idir}/nwm > > # Lowercase files as appropriate > cd ${D}/${idir} > for d in ambient data dmvault hak localvaul music override portraits > do > if [ -d ${d} ]; then > cd ${d} > for f in $(find . -name '*.*'); do > lcf=$(echo ${f} | tr [:upper:] [:lower:]) > if [ ${f} != ${lcf} ] && [ -f ${f} ]; then > mv ${f} ${lcf} > fi > done > cd .. > fi > done > > doicon ${FILESDIR}/nwn.png > prepgamesdirs >} > >pkg_postinst() { > games_pkg_postinst > > einfo "The NWN linux client data is now installed." > einfo "This is only the data portion, you will also need games-rpg/nwn to" > einfo "play Neverwinter Nights." > > if use nwmousehack; then > echo > einfo "The mouse hack needs to calculate some things on the first run." > einfo "The game will quit when its done, the play the game simply restart" > einfo "it. This will only happen once" > fi >} > ># Puh! If this doesn't prove portage's flexibility then what? >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 118446
: 76660 |
76661