blob: ee3c1c65fc3982b011c85c456a5412eebb057803 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Copyright 1999-2012 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."
HOMEPAGE="http://www.spacechemthegame.com/"
MY_PV="1.0.12"
SRC_URI="amd64? ( ${PN}-linux-1345144627-amd64.deb )
x86? ( SpaceChem-i386.deb )"
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}
GAMEDIR=${GAMES_PREFIX_OPT}/${PN}
src_unpack() {
unpack "${A}"
tar -zxf "${S}/data.tar.gz"
}
src_install() {
insinto "${GAMEDIR}"
exeinto "${GAMEDIR}"
# install icon
newicon opt/zachtronicsindustries/spacechem/icon.png ${PN}.png \
|| die "install icon"
# install docs
dodoc opt/zachtronicsindustries/spacechem/readme/*
# cleanup unneeded files
rm opt/zachtronicsindustries/spacechem/*.{desktop,ico,png,sh}
rm -rf opt/zachtronicsindustries/spacechem/readme
# install game files
doins -r opt/zachtronicsindustries/spacechem/* || die "doins opt"
# install shortcuts
games_make_wrapper "${PN}" "mono SpaceChem.exe" "${GAMEDIR}" "${GAMEDIR}" \
|| die "install shortcue"
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
}
pkg_postinst() {
einfo "To play the game, run:"
einfo "${PN}"
games_pkg_postinst
}
|