# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils cdrom games DESCRIPTION="The Elder Scrolls III: Morrowind - data extractor" HOMEPAGE="http://www.elderscrolls.com/" SRC_URI="" LICENSE="TES-EULA" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" RDEPEND="app-arch/unshield games-rpg/openmw" DEPEND="${RDEPEND}" src_install() { cdrom_get_cds data1.cab einfo "Extracting files from CD..." unshield x "${CDROM_ROOT}"/data1.cab || die "unpacking data1.cab" unshield x "${CDROM_ROOT}"/data2.cab || die "unpacking data2.cab" einfo "Copying Video dir..." mkdir "Video" cp -r "${CDROM_ROOT}/Video/" "Video" || die "copying Video failed" insinto "${GAMES_PREFIX_OPT}"/morrowind mv "Data_Files/Morrowind.esm" "${D}/${GAMES_PREFIX_OPT}"/morrowind mv "Data_Files/Morrowind.bsa" "${D}/${GAMES_PREFIX_OPT}"/morrowind #mv "Fonts" "${D}/${GAMES_PREFIX_OPT}"/morrowind mv "Video/Video" "${D}/${GAMES_PREFIX_OPT}"/morrowind mv "Music" "${D}/${GAMES_PREFIX_OPT}"/morrowind mv "Sound" "${D}/${GAMES_PREFIX_OPT}"/morrowind mv "Splash" "${D}/${GAMES_PREFIX_OPT}"/morrowind prepgamesdirs } pkg_postinst() { games_pkg_postinst elog "This is just the data portion of the game. You will need to install" elog "games-rpg/openmw to play the game." }