aboutsummaryrefslogtreecommitdiff
blob: 38dfba7d3166381e2cacadf5196886a0fb51dff4 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit versionator eutils

MY_P="Phun_beta_$(get_major_version)_$(get_after_major_version)_linux"
DESCRIPTION="Physics sandbox and simulator for gravity, friction"
HOMEPAGE="http://www.phunland.com/"
SRC_URI="x86? ( http://www.phunland.com/download/${MY_P}32.tgz )
	amd64? ( http://www.phunland.com/download/${MY_P}64.tgz )"

LICENSE="Algodoo"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RESTRICT="mirror strip"

RDEPEND="virtual/opengl
	dev-libs/libzip
	media-libs/sdl-image
	amd64? ( >=sys-devel/gcc-4.2 =media-libs/glew-1.5* )
	x86? ( =media-libs/glew-1.3* )
	dev-libs/boost"

S="${WORKDIR}/Phun"
PHUN_DIR=/opt/Phun

src_prepare() {
	rm -rf LICENSE* lib || die
}

src_install() {
	insinto ${PHUN_DIR}
	doins -r * || die
	exeinto ${PHUN_DIR}
	doexe phun.bin
	make_wrapper ${PN} "./phun.bin" ${PHUN_DIR} ${PHUN_DIR}
	make_desktop_entry ${PN} "Phun Physics Sandbox"	\
		"${PHUN_DIR}/data/textures/logos/icon.bmp"
}