# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI="3" inherit games DESCRIPTION="Rise of the Triad game data" HOMEPAGE="http://www.3drealms.com/rott/" SRC_URI="" LICENSE="as-is" SLOT="0" KEYWORDS="amd64 x86" IUSE="" DEPEND="" RDEPEND="" S=${WORKDIR} pkg_setup() { export CDROM_NAME_SET=("Existing Install", "RotT CD-ROM") cdrom_get_cds darkwar.wad:rottinst/darkwar.wad case ${CDROM_SET} in 0) ROTTDIR=. ;; 1) ROTTDIR=rottinst ;; *) die "unrecognized CD" esac } src_install() { dodir "${GAMES_DATADIR}"/rott insinto "${GAMES_DATADIR}"/rott doins "${CDROM_ROOT}"/"${ROTTDIR}"/*.{wad,rts,dmo} || die "Error installing wad/rts/dmo files."; doins "${CDROM_ROOT}"/"${ROTTDIR}"/{darkwar,huntbgin}.{rtc,rtl} || die "Error installing rtc/rts files."; prepgamesdirs } pkg_postinst() { elog "This is just the data portion of the game. You also need to install" elog "a game engine, such as games-fps/rott, to play the game." }