--- nwn-data-1.29.ebuild.orig 2005-11-01 19:20:29.000000000 -0700 +++ nwn-data-1.29.ebuild 2005-11-01 19:32:54.000000000 -0700 @@ -25,7 +25,7 @@ LICENSE="NWN-EULA" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="nowin sou hou" +IUSE="nowin sou hou plat" RESTRICT="nostrip nomirror" RDEPEND="virtual/x11 @@ -51,6 +51,13 @@ then echo "You will need the HoU CD for this installation." cdrom_get_cds ArcadeInstallNWNXP213f.EXE + elif use plat + then + echo "You will need all 4 CDs for this installation." + cdrom_get_cds Data_Shared.zip \ + disk2.zip \ + disk3.zip \ + disk4.zip fi } @@ -59,12 +66,12 @@ cd "${S}" unpack nwclient129.tar.gz cd "${WORKDIR}" - use nowin && unpack nwresources129.tar.gz + use nowin && !use plat 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 + use nowin && !use plat && if [ "${#Aarray[*]}" == "3" ]; then unpack ${Aarray[1]} fi if use sou @@ -87,6 +94,29 @@ unzip -o ${CDROM_ROOT}/Language_data.zip unzip -o ${CDROM_ROOT}/Language_update.zip fi + # plainum CDs contain all the resources necessary + # may need to change order and all that + if use plat + then + # Disk 1 + unzip -o ${CDROM_ROOT}/Data_Shared.zip + unzip -o ${CDROM_ROOT}/Language_data.zip + unzip -o ${CDROM_ROOT}/Language_update.zip + cdrom_load_next_cd + # Disk 2 + unzip -o ${CDROM_ROOT}/disk2.zip + cdrom_load_next_cd + # Disk 3 + unzip -o ${CDROM_ROOT}/disk3.zip + unzip -o ${CDROM_ROOT}/language_data.zip + unzip -o ${CDROM_ROOT}/Data_Linux.zip + cdrom_load_next_cd + # Disk 4 + unzip -o ${CDROM_ROOT}/disk4.zip + unzip -o ${CDROM_ROOT}/xp1.zip + unzip -o ${CDROM_ROOT}/xp1_data.zip + fi + sed -i -e '\:^./nwmain .*:i \ if [[ -f ./nwmouse.so ]]; then \ export XCURSOR_PATH="$(pwd)" \