aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-physics/phun/phun-5.28.ebuild')
-rw-r--r--sci-physics/phun/phun-5.28.ebuild42
1 files changed, 42 insertions, 0 deletions
diff --git a/sci-physics/phun/phun-5.28.ebuild b/sci-physics/phun/phun-5.28.ebuild
new file mode 100644
index 000000000..38dfba7d3
--- /dev/null
+++ b/sci-physics/phun/phun-5.28.ebuild
@@ -0,0 +1,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"
+}