# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 inherit eutils games DESCRIPTION="Doom 2: Evolution data files" HOMEPAGE="http://www.idsoftware.com/" SRC_URI="" LICENSE="DOOM1" SLOT="0" KEYWORDS="amd64 x86" IUSE="doc" DEPEND="" # a client is required to play the game. prboom is preferred because it is stable on amd64, while doomsday is not. RDEPEND=" || (games-fps/prboom games-fps/doomsday)" S=${WORKDIR} pkg_setup() { export CDROM_NAME_SET=("Existing Install or Final Doom CD" "Doom Collector's Edition CD") cdrom_get_cds tnt.wad:Setup/Final\ Doom/tnt.wad if [[ $CDROM_SET -ne 0 && $CDROM_SET -ne 1 ]] ; then die "Error locating data files."; fi } src_install() { local WADPATH case ${CDROM_SET} in 0) WADPATH = "";; 1) WADPATH = "Setup/Final\ Doom/";; esac dodir ${GAMES_DATADIR}/doom-data insinto ${GAMES_DATADIR}/doom-data doins $CDROM_ROOT/$WADPATH/tnt.wad || die "Error installing tnt.wad."; if use doc ; then if [[ ${CDROM_SET} -eq 1 ]] ; then dodoc ${CDROM_ROOT}/Setup/readme.rtf || die "Error installing readme.rtf"; dodoc ${CDROM_ROOT}/Setup/license.txt || die "Error installing license.txtt"; fi if [[ ${CDROM_SET} -eq 0 ]] ; then dodoc ${CDROM_ROOT}/Setup/readme.rtf || \ dodoc ${CDROM_ROOT}/readme.rtf || \ die "Error installing documentation."; dodoc ${CDROM_ROOT}/Setup/license.txt || \ dodoc ${CDROM_ROOT}/license.txt || \ die "Error installing documentation."; fi fi prepgamesdirs }