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
commit904aa858de7adca53852898c1886ef791499b436 (patch)
tree98d7d5d2672e89e41527ddfece76d4f510f12845 /games-simulation
parentStable on amd64 wrt bug 176447 (diff)
downloadhistorical-904aa858de7adca53852898c1886ef791499b436.tar.gz
historical-904aa858de7adca53852898c1886ef791499b436.tar.bz2
historical-904aa858de7adca53852898c1886ef791499b436.zip
New package. Bug #153560
Package-Manager: portage-2.1.2.2
Diffstat (limited to 'games-simulation')
-rw-r--r--games-simulation/crashtest/ChangeLog10
-rw-r--r--games-simulation/crashtest/Manifest30
-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, 169 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..0e8fc64092c7
--- /dev/null
+++ b/games-simulation/crashtest/Manifest
@@ -0,0 +1,30 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+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 1027 RMD160 f3f46d99c1d97a7887a0f321a9232012b763e682 SHA1 8231884a0c96b3e60d5db1eee9add5619838f11e SHA256 505e795752c46f6a0bff8a03639998e5d4045b19bf9c7aa4e5bb7addbe7f9c26
+MD5 2823ba450fc27b6d65dab02115cceb1c crashtest-1.0.ebuild 1027
+RMD160 f3f46d99c1d97a7887a0f321a9232012b763e682 crashtest-1.0.ebuild 1027
+SHA256 505e795752c46f6a0bff8a03639998e5d4045b19bf9c7aa4e5bb7addbe7f9c26 crashtest-1.0.ebuild 1027
+MISC ChangeLog 425 RMD160 15599a146bcec01060c2c7dee47e362180edcc65 SHA1 72f2c4a1d67c7e0b926aad8db8855c822d90081a SHA256 446496d9e9b46c1960a73012d9ca41c0253398ce5db4094314bd8f5810c1f0ab
+MD5 55d4884c6d4a8bed4cba89f2fec68667 ChangeLog 425
+RMD160 15599a146bcec01060c2c7dee47e362180edcc65 ChangeLog 425
+SHA256 446496d9e9b46c1960a73012d9ca41c0253398ce5db4094314bd8f5810c1f0ab ChangeLog 425
+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
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.6 (GNU/Linux)
+
+iD8DBQFGTflVRmMZkarFlIwRAvPnAKCUWW0pStwmJ3utjJ7jO7DBnQivXgCfUX7V
+5CbU+RPdAiAqmpU5JNHVFbA=
+=PXsj
+-----END PGP SIGNATURE-----
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>