diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-09-06 19:29:19 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-09-06 19:29:19 +0000 |
commit | ca319b3f7eee52617bb97a83f8693b6204937e45 (patch) | |
tree | 3e2380eb6efa91fa30a805fa2f843a612ee62c4f /dev-games/newton | |
parent | Added newton license for dev-games/newton. (diff) | |
download | gentoo-2-ca319b3f7eee52617bb97a83f8693b6204937e45.tar.gz gentoo-2-ca319b3f7eee52617bb97a83f8693b6204937e45.tar.bz2 gentoo-2-ca319b3f7eee52617bb97a83f8693b6204937e45.zip |
Initial import. Original ebuild by Christoph Brill <egore@gmx.de> and edited by me. Closing bug #100889.
(Portage version: 2.1.1_rc1-r1)
Diffstat (limited to 'dev-games/newton')
-rw-r--r-- | dev-games/newton/ChangeLog | 11 | ||||
-rw-r--r-- | dev-games/newton/Manifest | 16 | ||||
-rw-r--r-- | dev-games/newton/files/digest-newton-1.53 | 3 | ||||
-rw-r--r-- | dev-games/newton/metadata.xml | 5 | ||||
-rw-r--r-- | dev-games/newton/newton-1.53.ebuild | 83 |
5 files changed, 118 insertions, 0 deletions
diff --git a/dev-games/newton/ChangeLog b/dev-games/newton/ChangeLog new file mode 100644 index 000000000000..237ec4e6ac4d --- /dev/null +++ b/dev-games/newton/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-games/newton +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-games/newton/ChangeLog,v 1.1 2006/09/06 19:29:19 wolf31o2 Exp $ + +*newton-1.53 (06 Sep 2006) + + 06 Sep 2006; Chris Gianelloni <wolf31o2@gentoo.org> +metadata.xml, + +newton-1.53.ebuild: + Initial import. Original ebuild by Christoph Brill <egore@gmx.de> and edited + by me. Closing bug #100889. + diff --git a/dev-games/newton/Manifest b/dev-games/newton/Manifest new file mode 100644 index 000000000000..34136051243f --- /dev/null +++ b/dev-games/newton/Manifest @@ -0,0 +1,16 @@ +DIST newtonLinux-1.53.tar.gz 16271012 RMD160 7dfabdd9b4823dfbf0103ec3334bf4c42901d8b0 SHA1 2f833f7152702d46edcf4b5ba179a941effb73ce SHA256 5f7616a4d8fcdc8339f2c799caf1ee98d6e167046d2a05299082d5cc5e130bf6 +EBUILD newton-1.53.ebuild 1951 RMD160 2dd5889a7f6f5abe31b290ab6bf617c13cc90295 SHA1 f49027a06545d67ac9887c1146f8d9160f768c2e SHA256 1ff29e86e5bd19bcb2d2c0e3e3a6ebf3c07078f67d842c47cfbb05150031c9a8 +MD5 887e4a29db84987faf86bd4473104f41 newton-1.53.ebuild 1951 +RMD160 2dd5889a7f6f5abe31b290ab6bf617c13cc90295 newton-1.53.ebuild 1951 +SHA256 1ff29e86e5bd19bcb2d2c0e3e3a6ebf3c07078f67d842c47cfbb05150031c9a8 newton-1.53.ebuild 1951 +MISC ChangeLog 347 RMD160 26de2b7670dac43e99b6a34bb7d134155782f122 SHA1 9a1a117f9336b1a126a2a436643b4f8d0e32664c SHA256 9902035d70d154d6e01a7d1771e3116d64bcdcddefc78fb925be5122d0df920f +MD5 c7be52f6dd7a0396217197039edf1922 ChangeLog 347 +RMD160 26de2b7670dac43e99b6a34bb7d134155782f122 ChangeLog 347 +SHA256 9902035d70d154d6e01a7d1771e3116d64bcdcddefc78fb925be5122d0df920f ChangeLog 347 +MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 +MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158 +RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea metadata.xml 158 +SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 metadata.xml 158 +MD5 096b587c8dfca60539a7c8bcfdb0df50 files/digest-newton-1.53 256 +RMD160 77b75b3d67f623184bc01f809adcb51c722436f4 files/digest-newton-1.53 256 +SHA256 cf3dde7a2d5e46e873e5ace0c382e680ce1f601d938175b78c0a01ff82602b3b files/digest-newton-1.53 256 diff --git a/dev-games/newton/files/digest-newton-1.53 b/dev-games/newton/files/digest-newton-1.53 new file mode 100644 index 000000000000..2ffd5dbb1864 --- /dev/null +++ b/dev-games/newton/files/digest-newton-1.53 @@ -0,0 +1,3 @@ +MD5 5cf500af56dac5a63e3e328d79dc3f38 newtonLinux-1.53.tar.gz 16271012 +RMD160 7dfabdd9b4823dfbf0103ec3334bf4c42901d8b0 newtonLinux-1.53.tar.gz 16271012 +SHA256 5f7616a4d8fcdc8339f2c799caf1ee98d6e167046d2a05299082d5cc5e130bf6 newtonLinux-1.53.tar.gz 16271012 diff --git a/dev-games/newton/metadata.xml b/dev-games/newton/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/dev-games/newton/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/dev-games/newton/newton-1.53.ebuild b/dev-games/newton/newton-1.53.ebuild new file mode 100644 index 000000000000..97f94d5244a5 --- /dev/null +++ b/dev-games/newton/newton-1.53.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-games/newton/newton-1.53.ebuild,v 1.1 2006/09/06 19:29:19 wolf31o2 Exp $ + +DESCRIPTION="an integrated solution for real time simulation of physics environments" +HOMEPAGE="http://www.physicsengine.com/" +SRC_URI="http://www.physicsengine.com/downloads/${PN}Linux-${PV}.tar.gz + http://www.newtondynamics.com/downloads/${PN}Linux-${PV}.tar.gz" + +LICENSE="newton" +SLOT="0" +KEYWORDS="~x86" +IUSE="doc" + +RDEPEND="doc? ( + || ( + ( + x11-libs/libXmu + x11-libs/libXi ) + virtual/x11 ) + virtual/opengl + virtual/glut )" + +DEPEND="${RDEPEND}" + +S=${WORKDIR}/newtonSDK + +src_unpack() { + unpack ${A} + cd "${S}" + if use doc; then + cd samples + rm -rf gl + sed -i \ + -e "s:-I ../gl:-I /usr/include/GL:" \ + tutorial_05_UsingJoints/makefile \ + tutorial_09_SimpleVehicle/makefile \ + tutorial_04_IntroductionToMaterials/makefile \ + tutorial_10_CustomJoints/makefile \ + tutorial_01_GettingStarted/makefile \ + tutorial_02_UsingCallbacks/makefile \ + tutorial_08_HeightFieldCollision/makefile \ + tutorial_07_CharaterController/makefile \ + tutorial_06_UtilityFuntionality/makefile \ + tutorial_03_UsingCollisionTree/makefile \ + || die "failed fixing sample makefiles" + # This is commented out because this thing simply does not compile + # with lots of other CFLAGS and I've been unable to determine exactly + # what is causing it to fail, but even CFLAGS="-O2" fails. +# sed -i \ +# -e "s:^FLAGS = -g -O0 -c -Wall:FLAGS = ${CFLAGS}:" \ +# makefile + fi +} + +src_compile() { + if use doc; then + cd samples + emake || die "emake samples failed" + fi +} + +src_install() { + dolib sdk/libNewton.a + insinto /usr/include + doins sdk/Newton.h + + if use doc; then + find samples -name \*.elf | xargs rm + find samples -name \*.o | xargs rm + + insinto /usr/share/${PN} + doins -r `ls --ignore=bin samples/*` + + exeinto /usr/share/${PN}/bin + dobin samples/bin/tutorial_* + fi + + chmod -x doc/* + dodoc doc/* + + prepgamesdirs +} |