# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils games MY_P="gish_1_5" DESCRIPTION="Play as an amorphous ball of tar that rolls and squishes around" HOMEPAGE="http://www.chroniclogic.com/gish.htm" SRC_URI="${MY_P}.tar.gz" LICENSE="as-is" SLOT="0" KEYWORDS="-* ~amd64 x86" IUSE="" RESTRICT="strip fetch" QA_EXECSTACK="${GAMES_PREFIX_OPT:1}/${PN}/gish" RDEPEND="x86? ( media-libs/libsdl media-libs/libvorbis media-libs/openal virtual/opengl ) amd64? ( app-emulation/emul-linux-x86-xlibs app-emulation/emul-linux-x86-sdl app-emulation/emul-linux-x86-soundlibs )" S=${WORKDIR}/gish pkg_nofetch() { einfo "This game must be purchased from ${HOMEPAGE}." einfo "You will receive instructions on how to download ${MY_P}.tar.gz. Place" einfo "this file in ${DISTDIR} once you have it and then restart" einfo "this merge." } src_install() { local dir=${GAMES_PREFIX_OPT}/${PN} insinto "${dir}" doins -r animation data level music sound texture tile?? || die exeinto "${dir}" doexe gish || die games_make_wrapper gish ./gish "${dir}" || die doicon gish.bmp || die make_desktop_entry gish "Gish" gish.bmp || die dodoc *.txt dohtml -A swf *.html *.swf prepgamesdirs } pkg_postint() { ewarn "This game is known to crash shortly after starting level 1-6. You can" ewarn "work around this by turning off the music just for that level. This has" ewarn "been reported upstream." }