summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2007-05-18 19:06:50 +0000
committerAlfredo Tupone <tupone@gentoo.org>2007-05-18 19:06:50 +0000
commit52ad1219399402d2230e964a5e831d8ad437ddcb (patch)
treea6583e69860a1cb6549b4cd38bdbeb70cd60f09c /games-simulation/crashtest
parentStable on amd64 wrt bug 176447 (diff)
downloadgentoo-2-52ad1219399402d2230e964a5e831d8ad437ddcb.tar.gz
gentoo-2-52ad1219399402d2230e964a5e831d8ad437ddcb.tar.bz2
gentoo-2-52ad1219399402d2230e964a5e831d8ad437ddcb.zip
New package. Bug #153560
(Portage version: 2.1.2.2)
Diffstat (limited to 'games-simulation/crashtest')
-rw-r--r--games-simulation/crashtest/ChangeLog10
-rw-r--r--games-simulation/crashtest/Manifest20
-rw-r--r--games-simulation/crashtest/crashtest-1.0.ebuild43
-rw-r--r--games-simulation/crashtest/files/crashtest-1.0-gentoo.patch72
-rw-r--r--games-simulation/crashtest/files/digest-crashtest-1.03
-rw-r--r--games-simulation/crashtest/metadata.xml11
6 files changed, 159 insertions, 0 deletions
diff --git a/games-simulation/crashtest/ChangeLog b/games-simulation/crashtest/ChangeLog
new file mode 100644
index 000000000000..5ab30c7535d4
--- /dev/null
+++ b/games-simulation/crashtest/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for games-simulation/crashtest
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/crashtest/ChangeLog,v 1.1 2007/05/18 19:06:50 tupone Exp $
+
+*crashtest-1.0 (18 May 2007)
+
+ 18 May 2007; Tupone Alfredo <tupone@gentoo.org>
+ +files/crashtest-1.0-gentoo.patch, +metadata.xml, +crashtest-1.0.ebuild:
+ New package. Bug #153560 by Paul Bredbury
+
diff --git a/games-simulation/crashtest/Manifest b/games-simulation/crashtest/Manifest
new file mode 100644
index 000000000000..86866896602d
--- /dev/null
+++ b/games-simulation/crashtest/Manifest
@@ -0,0 +1,20 @@
+AUX crashtest-1.0-gentoo.patch 2396 RMD160 97681293699bb73a37131d4111d69ce5ca615978 SHA1 92d9163cdd1653b5f741d63e917c39ca40ee3b94 SHA256 1e691e9c225bff434cc92c8e0e1dcebe23f1cf923c33cd4da61211ecee36fa48
+MD5 ba39f2170e040540b2bf75433cb7e8bb files/crashtest-1.0-gentoo.patch 2396
+RMD160 97681293699bb73a37131d4111d69ce5ca615978 files/crashtest-1.0-gentoo.patch 2396
+SHA256 1e691e9c225bff434cc92c8e0e1dcebe23f1cf923c33cd4da61211ecee36fa48 files/crashtest-1.0-gentoo.patch 2396
+DIST crashtest-1.0.tar.gz 666803 RMD160 e18710d52d6f600972421734619118ad3fa0bbcf SHA1 59cca81b0077065c4d02ae4a6233eb7691ac3d2a SHA256 6703c104879742f6aa350e4eeedd2ddc7dd2f7ee3f0dc2141c2c80bbe8415b30
+EBUILD crashtest-1.0.ebuild 918 RMD160 b822b4580e95280c490b97a3b060d9dc1305c3be SHA1 332ff692b676d9f59af6210e68252bda1396d58a SHA256 72e7c14f9ab0ba5376cdd9795ba00f8e8e9fe6829c620a32ab70d0349db38705
+MD5 81340b0c1496e0d09a8ced996dd63e90 crashtest-1.0.ebuild 918
+RMD160 b822b4580e95280c490b97a3b060d9dc1305c3be crashtest-1.0.ebuild 918
+SHA256 72e7c14f9ab0ba5376cdd9795ba00f8e8e9fe6829c620a32ab70d0349db38705 crashtest-1.0.ebuild 918
+MISC ChangeLog 327 RMD160 7a1b2ff5aa0208efac0c3e7c92634efbd453f9d8 SHA1 a49419dd7d47f5baaa00efc5aeec07e560162a86 SHA256 62544f580fb8c60c80bc34fe1ed35865448112f441436f68e8928bd825f6194a
+MD5 2d382d22b8aba733211afa410e15a30a ChangeLog 327
+RMD160 7a1b2ff5aa0208efac0c3e7c92634efbd453f9d8 ChangeLog 327
+SHA256 62544f580fb8c60c80bc34fe1ed35865448112f441436f68e8928bd825f6194a ChangeLog 327
+MISC metadata.xml 471 RMD160 5ba1a7080b163839fdde2dd0de2bdd3ca9c23976 SHA1 ce199d60ce53ba9e2dde890ed56ee14bbbcd678a SHA256 b19704a1460e3b85a2725fcb2172b87c8c5a452fd6d1d5c509077deb7b62504e
+MD5 507be5f4d4c2a898ce152a64c56b8228 metadata.xml 471
+RMD160 5ba1a7080b163839fdde2dd0de2bdd3ca9c23976 metadata.xml 471
+SHA256 b19704a1460e3b85a2725fcb2172b87c8c5a452fd6d1d5c509077deb7b62504e metadata.xml 471
+MD5 9d38156507c5512c24fdeacda18f7b5f files/digest-crashtest-1.0 241
+RMD160 602cda18fe8a0b4173961db8fda70447f3e4f38e files/digest-crashtest-1.0 241
+SHA256 dbb8b687385a90d70b6652557ba8f2446ecd28a2412f78b35dccd25c4d6733fe files/digest-crashtest-1.0 241
diff --git a/games-simulation/crashtest/crashtest-1.0.ebuild b/games-simulation/crashtest/crashtest-1.0.ebuild
new file mode 100644
index 000000000000..69379b56c79a
--- /dev/null
+++ b/games-simulation/crashtest/crashtest-1.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/crashtest/crashtest-1.0.ebuild,v 1.1 2007/05/18 19:06:50 tupone Exp $
+
+inherit eutils games
+
+DESCRIPTION="Simulates car crashes"
+HOMEPAGE="http://stolk.org/crashtest"
+SRC_URI="http://stolk.org/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="x11-libs/fltk
+ dev-games/ode
+ media-libs/alsa-lib
+ virtual/glut"
+DEPEND="${RDEPEND}
+ >=media-libs/plib-1.8.4"
+
+S="${WORKDIR}/${P}"/src-${PN}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}"-gentoo.patch
+ sed -i \
+ -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
+ -e "s:@GENTOO_BINDIR@:${GAMES_BINDIR}:" \
+ -e "s:<FL/:<fltk-$(fltk-config --api-version)/FL/:" \
+ Makefile \
+ ${PN}.cxx || die "changing data patch failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc README
+
+ make_desktop_entry ${PN} "Crash Test"
+ prepgamesdirs
+}
diff --git a/games-simulation/crashtest/files/crashtest-1.0-gentoo.patch b/games-simulation/crashtest/files/crashtest-1.0-gentoo.patch
new file mode 100644
index 000000000000..cd4dada56a28
--- /dev/null
+++ b/games-simulation/crashtest/files/crashtest-1.0-gentoo.patch
@@ -0,0 +1,72 @@
+--- crashtest.cxx.old 2007-05-18 19:56:02.000000000 +0200
++++ crashtest.cxx 2007-05-18 19:58:54.000000000 +0200
+@@ -607,13 +607,7 @@
+
+ int main(int argc, char *argv[])
+ {
+- char *bindirname = dirname(argv[0]);
+- if (!strcmp(bindirname,"."))
+- dirprefix="/usr/share/games/crashtest";
+- else
+- {
+- dirprefix = dirname(bindirname) + std::string("/share/games/crashtest");
+- }
++ dirprefix="@GENTOO_DATADIR@";
+ if (getenv("PLODE_DATADIR"))
+ dirprefix = getenv("PLODE_DATADIR");
+ modelmap = new ModelMap(dirprefix);
+--- Makefile.old 2007-05-18 20:08:12.000000000 +0200
++++ Makefile 2007-05-18 20:16:40.000000000 +0200
+@@ -10,19 +10,13 @@
+
+ # END OF CUSTOM SETTINGS
+
+-CXXFLAGS=\
+- -I$(ODEPREFIX)/include \
+- -I$(PLIBPREFIX)/include \
+- -I../src-common \
+- -O2 -g -Wall
+-
+ LFLAGS=\
+ -L$(PLIBPREFIX)/lib \
+ -L/usr/X11R6/lib
+
+ OBJS=staticworldobject.o crashtest.o dynamicobject.o cartobject.o
+
+-LIBS= $(ODEPREFIX)/lib/libode.a -lplibssgaux -lplibssg -lplibsg -lplibpu -lplibfnt -lplibul -lGLU -lGL -lasound `fltk-config --use-gl --use-images --ldflags` -lglut
++LIBS= `ode-config --libs` -lplibssgaux -lplibssg -lplibsg -lplibpu -lplibfnt -lplibul -lGLU -lGL -lasound `fltk-config --use-gl --use-images --ldflags` -lglut
+
+
+ all: crashtest
+@@ -31,10 +31,10 @@
+ $(CXX) -c $(CXXFLAGS) ../src-common/dynamicobject.cxx
+
+ cartobject.o: cartobject.cxx cartobject.h
+- $(CXX) -c $(CXXFLAGS) cartobject.cxx
++ $(CXX) -c $(CXXFLAGS) -I../src-common cartobject.cxx
+
+ crashtest.o: crashtest.cxx crashworld.h ../src-common/modelmap.h cartobject.h bipedobject.h ../src-common/brickwall.h ../src-common/stereocontext.h ../src-common/usercam.h
+- $(CXX) -c $(CXXFLAGS) crashtest.cxx
++ $(CXX) -c $(CXXFLAGS) -I../src-common crashtest.cxx
+
+
+
+@@ -48,13 +42,13 @@
+ PLODE_DATADIR=`pwd` ./crashtest
+
+
+-GAMEDIR=$(DESTDIR)/usr/share/games/crashtest
++GAMEDIR=$(DESTDIR)@GENTOO_DATADIR@
+ install: crashtest
+ # Directories
+- mkdir -p $(DESTDIR)/usr/games/
++ mkdir -p $(DESTDIR)@GENTOO_BINDIR@
+ mkdir -p $(GAMEDIR)/models/
+ # Binary
+- install crashtest $(DESTDIR)/usr/games/crashtest
++ install crashtest $(DESTDIR)@GENTOO_BINDIR@
+ # Models
+ install -m 644 models/testground.3ds $(GAMEDIR)/models/testground.3ds
+ install -m 644 models/biped_torso.3ds $(GAMEDIR)/models/biped_torso.3ds
+--- Makefile.old 2007-05-18 20:22:57.000000000 +0200
++++ Makefile 2007-05-18 20:23:27.000000000 +0200
diff --git a/games-simulation/crashtest/files/digest-crashtest-1.0 b/games-simulation/crashtest/files/digest-crashtest-1.0
new file mode 100644
index 000000000000..2f8c5e6b7468
--- /dev/null
+++ b/games-simulation/crashtest/files/digest-crashtest-1.0
@@ -0,0 +1,3 @@
+MD5 8cd9bf9452f0954f97c6b6613d853c68 crashtest-1.0.tar.gz 666803
+RMD160 e18710d52d6f600972421734619118ad3fa0bbcf crashtest-1.0.tar.gz 666803
+SHA256 6703c104879742f6aa350e4eeedd2ddc7dd2f7ee3f0dc2141c2c80bbe8415b30 crashtest-1.0.tar.gz 666803
diff --git a/games-simulation/crashtest/metadata.xml b/games-simulation/crashtest/metadata.xml
new file mode 100644
index 000000000000..d06057ad270b
--- /dev/null
+++ b/games-simulation/crashtest/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<longdescription lang="en">
+Crashtest simulates car crashes. This is an educational tool that can be used to
+acquire much insight into this complex process. The user can learn about the
+relation between speed, reaction-time and stopping distance. Also, many physical
+properties can be studied.
+</longdescription>
+</pkgmetadata>