# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-puzzle/drod-bin/drod-bin-1.6.5.ebuild,v 1.5 2004/06/24 23:03:29 agriffis Exp $ inherit games eutils DESCRIPTION="Deadly Rooms Of Death: face room upon room of deadly things, armed with only your sword and your wits" HOMEPAGE="http://www.drod.net/" SRC_URI="mirror://sourceforge/drod/CDROD-${PV}-setup.sh.bin" LICENSE="MPL-1.1" SLOT="0" KEYWORDS="-* x86" IUSE="" RDEPEND="" S="${WORKDIR}" GDIR="${GAMES_PREFIX_OPT}/drod" src_unpack() { unpack_makeself } src_install() { ./install.sh -R "${D}" -s ${GDIR} -al -pn -no -I || die "install.sh failed" dodir ${GAMES_BINDIR} dosym ${GDIR}/bin/drod ${GAMES_BINDIR}/drod prepgamesdirs } pkg_postinst() { if [ -d "${ROOT}${GDIR}/bin/Data" ] ; then mv ${ROOT}${GDIR}/{bin/Data,Data.backup} ewarn "Your saved games have been backed up to" ewarn "${GDIR}/Data.backup" fi }