# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-strategy/darwinia-demo/darwinia-demo-1.3.0.ebuild,v 1.9 2009/05/22 21:47:48 mr_bones_ Exp $ EAPI="2" inherit eutils games rpm DESCRIPTION="A design-based puzzle game from Zachtronics Industries." HOMEPAGE="http://www.spacechemthegame.com/" MY_PV="1.0.12" SRC_URI="amd64? ( ${PN}-${MY_PV}-2.fc17.x86_64.rpm ) x86? ( ${PN}-${MY_PV}-2.fc17.i686.rpm )" LICENSE="spacechem" SLOT="0" KEYWORDS="-* amd64 x86" IUSE="" RESTRICT="strip fetch" RDEPEND=">=dev-lang/mono-2.10.3 x11-misc/xclip media-libs/libsdl media-libs/sdl-mixer media-libs/sdl-image dev-db/sqlite:3" S=${WORKDIR} src_install() { dodir "/${GAMES_PREFIX_OPT}/${PN}/" cd "${S}/opt/spacechem/" cp -R . "${D}/${GAMES_PREFIX_OPT}/${PN}" newicon icon.png "${PN}.png" games_make_wrapper "${PN}" "mono SpaceChem.exe" "${ROOT}/${GAMES_PREFIX_OPT}/${PN}/" make_desktop_entry "${PN}" "SpaceChem" "${PN}" "Game;LogicGame;" "Comment=Solve design-based challenges in this game from Zachtronics Industries" prepgamesdirs cd "${S}/usr/share/man/man6" doman spacechem.6.gz }