--- a/nwn-data-1.29-r1.ebuild 2007-06-26 14:52:51.000000000 -0700 +++ b/nwn-data-1.29-r1.ebuild 2007-06-26 14:52:22.000000000 -0700 @@ -82,6 +83,10 @@ then NWN_SET="platinum_cd" einfo "Neverwinter Nights Platinum DVD/CD set found..." + elif [[ -f "${CD_ROOT}"/ArcadeInstallNWNXP1_12d.EXE ]] + then + NWN_SET="gold_cd" + einfo "Neverwinter Nights Gold CD set found..." elif [[ -f "${CD_ROOT}"/ArcadeInstallNWN109.exe ]] then NWN_SET="original_cd" @@ -99,6 +104,10 @@ then NWN_SET="platinum_cd" einfo "Neverwinter Nights Platinum DVD/CD set found..." + elif [[ -f "${CD_ROOT_1}"/ArcadeInstallNWNXP1_12d.EXE ]] + then + NWN_SET="gold_cd" + einfo "Neverwinter Nights Gold CD set found..." elif [[ -f "${CD_ROOT_1}"/ArcadeInstallNWN109.exe ]] then NWN_SET="original_cd" @@ -118,6 +127,10 @@ then NWN_SET="platinum_cd" einfo "Neverwinter Nights Platinum DVD/CD set found..." + elif [[ -f "${mline}"/ArcadeInstallNWNXP1_12d.EXE ]] + then + NWN_SET="gold_cd" + einfo "Neverwinter Nights Gold CD set found..." elif [[ -f "${mline}"/ArcadeInstallNWN109.exe ]] then NWN_SET="original_cd" @@ -156,6 +169,24 @@ cdrom_get_cds ArcadeInstallNWNXP213f.EXE \ disk2.zip disk3.zip disk4.zip ;; + gold_cd) + einfo "Shadow of Undrentide will be installed from your CDS along" + einfo "with the original Neverwinter Nights. If you have the" + einfo "Hordes of the Underdark expansion, it will be installed after." + touch .metadata/orig || die "touch orig" + touch .metadata/sou || die "touch sou" + export CDROM_NAME_4="CD4" + if use hou + then + einfo "You will also need the HoU CDs for this installation." + export CDROM_NAME_5="HoU" + cdrom_get_cds ArcadeInstallNWNXP1_12d.EXE disk2.zip \ + disk3.zip disk4.zip ArcadeInstallNWNXP213f.EXE + else + cdrom_get_cds ArcadeInstallNWNXP1_12d.EXE disk2.zip \ + disk3.zip disk4.zip + fi + ;; original_cd) einfo "We will be installing the original Neverwinter Nights. If" einfo "you also have the Shadows of Undrentide or Hordes of the" @@ -261,6 +292,34 @@ unzip -qo "${CDROM_ROOT}"/xp1_data.zip || die "unpacking" fi ;; + gold_cd) + # Variety of ZIP's off 4 CD's + mkdir -p "${S}" + cd "${S}" + einfo "Unpacking files..." + einfo "Copying files from CD1" + unzip -qo "${CDROM_ROOT}"/Data_Shared.zip || die "unpacking" + unzip -qo "${CDROM_ROOT}"/Language_data.zip || die "unpacking" + unzip -qo "${CDROM_ROOT}"/Language_update.zip || die "unpacking" + # Yay cd switching + cdrom_load_next_cd + unzip -qo "${CDROM_ROOT}"/disk2.zip || die "unpacking" + cdrom_load_next_cd + unzip -qo "${CDROM_ROOT}"/disk3.zip || die "unpacking" + cdrom_load_next_cd + unzip -qo "${CDROM_ROOT}"/disk4.zip || die "unpacking" + # Expansion pack + if use hou + then + rm -f xp1patch.key data/xp1patch.bif override/* + cdrom_load_next_cd + einfo "Unpacking files..." + unzip -qo "${CDROM_ROOT}"/Data_Shared.zip || die "unpacking" + unzip -qo "${CDROM_ROOT}"/Language_data.zip || die "unpacking" + unzip -qo "${CDROM_ROOT}"/Language_update.zip || die "unpacking" + touch .metadata/hou || die "touching hou" + fi + ;; original_cd) # Now, we need to create our directories, since we know we'll end up # needing them for our install.