blob: 20bd400b0277c0ffd08f392ca9ab74e06af15007 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit games
DESCRIPTION="Simple, ambient, nice-looking growing game"
HOMEPAGE="http://www.hemispheregames.com/osmos/"
SRC_URI="http://www.hemispheregames.com/blog/wp-content/uploads/2010/04/${PN}_${PV}.tar.gz"
LICENSE="${PN}"
SLOT="0"
KEYWORDS="~amd64 ~x86 -*"
IUSE=""
RDEPEND="media-libs/freetype
media-libs/libvorbis
media-libs/openal
x11-libs/libX11
virtual/opengl"
S=${WORKDIR}/${PN}
QA_PRESTRIPPED="/opt/OsmosDemo/OsmosDemo.bin32
/opt/OsmosDemo/OsmosDemo.bin64"
src_prepare() {
rm eula.txt OsmosDemo || die
if use amd64 ; then
MY_BIN=${PN}.bin64
rm ${PN}.bin32 || die
fi
if use x86 ; then
MY_BIN=${PN}.bin32
rm ${PN}.bin64 || die
fi
}
src_install() {
local my_dest=/opt/${PN}
insinto "${my_dest}"
doins -r . || die
fperms ug+x "${my_dest}"/${MY_BIN} || die
games_make_wrapper ${PN} ./${MY_BIN} "${my_dest}"
make_desktop_entry "${GAMES_BINDIR}"/${PN} ${PN} "${my_dest}"/Icons/128x128.png Game
prepgamesdirs "${my_dest}"
}
|