summaryrefslogtreecommitdiff
blob: b764b2e597f08defb911c57de80b61323e44f006 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/world-of-goo/world-of-goo-1.41.ebuild,v 1.3 2009/10/25 07:53:40 mr_bones_ Exp $

inherit eutils games

DESCRIPTION="World of Goo is a puzzle game with a strong emphasis on physics"
HOMEPAGE="http://2dboy.com/"

if [[ ${PN} == *-demo ]] ; then
	MY_PN="WorldOfGooDemo"
	SRC_URI="${MY_PN}.${PV}.tar.gz"
else
	MY_PN="WorldOfGoo"
	SRC_URI="${MY_PN}Setup.${PV}.tar.gz"
fi

LICENSE="2dboy-EULA"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RESTRICT="fetch strip"

# the package includes SDL/ogg/vorbis already
RDEPEND="sys-libs/glibc
	virtual/opengl
	virtual/glu
	>=sys-devel/gcc-3.4"
DEPEND=""

S=${WORKDIR}/${MY_PN}

QA_EXECSTACK="opt/${MY_PN}/WorldOfGoo.bin32
	opt/${MY_PN}/WorldOfGoo.bin64"

pkg_nofetch() {
	echo
	elog "Download ${A} from ${HOMEPAGE} and place it in ${DISTDIR}"
	echo
}

src_install() {
	local d=${GAMES_PREFIX_OPT}/${MY_PN}

	insinto "${d}"
	doins -r */ ${MY_PN%Demo}* || die

	games_make_wrapper ${MY_PN} "${d}"/${MY_PN%Demo}
	dodoc readme.html linux-issues.txt
	newicon icons/scalable.svg ${MY_PN}.svg
	make_desktop_entry ${MY_PN} "World Of Goo" ${MY_PN}

	pushd "${D}${d}" >/dev/null
	chmod a+rx ${MY_PN%Demo}* libs*/lib* || die
	popd >/dev/null

	prepgamesdirs
}