summaryrefslogtreecommitdiff
blob: 74b5c842690dcfb4a1e82c08facc053182018ed1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# 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

DESCRIPTION="A design-based puzzle game from Zachtronics Industries (demo)."
HOMEPAGE="http://www.spacechemthegame.com/"

MY_PN="SpaceChemDemo"
MY_P="${MY_PN}-${PV}"
SRC_URI="http://collinarnold.net/zachtronics/${MY_P}.tar.gz"

LICENSE="spacechem"
SLOT="0"
KEYWORDS="-* amd64 x86"
IUSE=""
RESTRICT="strip"

RDEPEND=">=dev-lang/mono-2
         x11-misc/xclip
         media-libs/libsdl
         media-libs/sdl-mixer
         media-libs/sdl-image"

S=${WORKDIR}

src_unpack() {
	unpack "${A}"
	cd "${S}"
	unpack "./${MY_PN}-i386.deb"
	unpack ./data.tar.gz
}

src_install() {
	dodir "/${GAMES_PREFIX_OPT}/${PN}/"
	cd "${S}/opt/zachtronicsindustries/spacechem-demo/"

	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 Demo" "${PN}" "Game;LogicGame;" "Comment=Solve design-based challenges in this game from Zachtronics Industries"

	prepgamesdirs
}