# Copyright 2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: Exp $ inherit eutils games DESCRIPTION="Warcraft2 for the Stratagus game engine (Needs WC2 DOS CD)" SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz" HOMEPAGE="http://wargus.sf.net/" LICENSE="GPL-2" KEYWORDS="~x86" SLOT="0" IUSE="" RDEPEND="=games-engines/stratagus-2.1*" DEPEND="virtual/glibc media-libs/libpng sys-libs/zlib" pkg_setup() { cdrom_get_cds data/rezdat.war games_pkg_setup } src_install() { local dir="${GAMES_DATADIR}/stratagus/${PN}" dodir ${dir} # Extract media from cd ./build.sh -p ${CDROM_ROOT} -o ${D}/${dir} -v \ || die "Media extract failed" cat > "${T}/${PN}" <<-EOF #!/bin/sh exec ${GAMES_LIBDIR}/stratagus -d ${dir} "\$@" EOF dogamesbin "${T}/${PN}" prepgamesdirs }