diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-simulation/crashtest |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-simulation/crashtest')
-rw-r--r-- | games-simulation/crashtest/Manifest | 7 | ||||
-rw-r--r-- | games-simulation/crashtest/crashtest-1.1-r1.ebuild | 45 | ||||
-rw-r--r-- | games-simulation/crashtest/crashtest-1.1.ebuild | 41 | ||||
-rw-r--r-- | games-simulation/crashtest/files/crashtest-1.1-gentoo.patch | 94 | ||||
-rw-r--r-- | games-simulation/crashtest/metadata.xml | 14 |
5 files changed, 201 insertions, 0 deletions
diff --git a/games-simulation/crashtest/Manifest b/games-simulation/crashtest/Manifest new file mode 100644 index 000000000000..6a2287d3f389 --- /dev/null +++ b/games-simulation/crashtest/Manifest @@ -0,0 +1,7 @@ +AUX crashtest-1.1-gentoo.patch 2907 SHA256 66c4203d91884f6a1c2785c065bc31175525c5562202a07af575384419c25278 SHA512 6b657329db9eba28de9dcbf33bfd46002e89e0a5a348a9109742cfa6b0ab6a431a8c5edd880201b40ab0dcc4cc5b27be16dc5e38e16621596ec62ea07676c716 WHIRLPOOL 822e4d565b2f92028018fb76b38ff8ff2454633478658441c5065c0a80a79a321d7201b276f3a93b236a781cdd895e67494d79e69ebb50241244ea45d1033cfc +DIST crashtest-1.1.tar.gz 134769 SHA256 55c5ce29857263ceebc1c3f42c153f275dfc47711e9248395fd4398d6ef52ab9 SHA512 f361b5f202cdcdca871357eb2a2158af2958f4058b6754c63dc5a20c3e08e2ef532e984596d0daac073f2321b2db02e3f8c2a0a4998450fc953c1661d712d59c WHIRLPOOL 272352015016844afe6f02fff92be96b6f52e0c2cdfb2e545cc3a2f6e5196f4825bd99c971b89c371be18c6b983e5b04a1bbe739df5cae7c8579ac6319ea80cd +EBUILD crashtest-1.1-r1.ebuild 831 SHA256 8172334612c5833f21930348ecead144a14f618aaf71eaea9b9098ebf666f362 SHA512 312efd5ef21b25f35c8f78e1088d909afdf8ec56beb7dc2c3c043c5db18c3d68b726ca9590fd4e484299fe508c7b9e6f0eb6c898becd8c49cc2f7be607346112 WHIRLPOOL 526c9f3a7a1e56282e966205a5a525605bdec0ff87fe170777752f9a175377104eefe233f54da52f0036b5593da849a0acabab46ee4108a6f3708f6e911dcd7f +EBUILD crashtest-1.1.ebuild 844 SHA256 26b308b3b5001fdb3624fbf6ea711bcacfe36e113f050ebe851eba067bd6b56a SHA512 9f253eea71562a3591c4d93cd534275865c880f6badb018d37077ece9c8fff392613378d329b30b74a35cc4d72f7fa81864a34e409fadea2c8bd5541fab1011f WHIRLPOOL f7a74eb8d1e0f9c59ce8d59d1348bcf43fadbefadfdff76901fd57794abd37ba704bf4a266d16309d43488cf47ea02d07bb7bd9f4137001cff3961de38a81f87 +MISC ChangeLog 2760 SHA256 0eb92d652a9b77df7e2faec68b6f710da110f226e0f1bfcf344fef9ca99b2c61 SHA512 e3201f9638e41861c0c7a5076d0980df396337787a15ec5e06e71b90833e8f06384817f38c0c58f4515e0c221290d3eee692ad3e632c5c16c2d09af41b8dcbca WHIRLPOOL 0ff2a4f1d6e84014c573c58b8d6d5c0baff7316a653660a04874c4d5c7b46387d97a3ef734cc5228b98562f4e67e39a3335a488425a7c2ae806f0b67acb8e1af +MISC ChangeLog-2015 1915 SHA256 5c1457cae8a5fa958412460921f207fdbfbf38426a4c03a0df061358d03f4c8f SHA512 a4e2b1d4fff069cec170f921152e5122f2fb42ddcfc315334d0499de90b390bb702bd7a3dd0ef9ccc35374ba99c8739dd77e4cd7c819afb26c33fa611945ada0 WHIRLPOOL 9b555993871b7690be2fd857d5f3b689b4ae3548b7d021e4f83d59ead458f9a83ecf2b7b903eb68c56579aae914814c34c7bbaafe4619cdc8059b096b472902d +MISC metadata.xml 562 SHA256 d287dc709217840a7d173841b00361e201df2f5d46bc0888ddefc4979c8bc9ab SHA512 94005d1dd7a8f13dc37e0c81290486eb34dfda05a2808eb9b4908b5ba7ba722e0435acdde3d2da082e61a70e60eb2e6df70cd0d59589ccb913a6e6e87b81bc55 WHIRLPOOL a037331d056825014c96704ebf2307ddd0c922eb5ac7b57fc466a8ca757cba08d63ad2492dc1af09f706cd722b626f20b424722d612d8471f5a1044bc19bba99 diff --git a/games-simulation/crashtest/crashtest-1.1-r1.ebuild b/games-simulation/crashtest/crashtest-1.1-r1.ebuild new file mode 100644 index 000000000000..1faed8379238 --- /dev/null +++ b/games-simulation/crashtest/crashtest-1.1-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils flag-o-matic + +DESCRIPTION="Educational car crash simulator" +HOMEPAGE="http://www.stolk.org/crashtest/" +SRC_URI="http://www.stolk.org/crashtest/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + dev-games/ode + media-libs/alsa-lib + media-libs/freeglut + x11-libs/fltk:1[opengl] + virtual/opengl + virtual/glu" +DEPEND="${RDEPEND} + >=media-libs/plib-1.8.4" + +S=${WORKDIR}/${P}/src-${PN} + +PATCHES=( + "${FILESDIR}/${P}"-gentoo.patch +) + +src_prepare() { + default + + sed -i \ + -e "s:@GENTOO_DATADIR@:/usr/share/${PN}:" \ + -e "s:@GENTOO_BINDIR@:/usr/bin:" \ + Makefile ${PN}.cxx || die + append-cppflags -DHAVE_ISNANF +} + +src_install() { + default + make_desktop_entry ${PN} Crashtest +} diff --git a/games-simulation/crashtest/crashtest-1.1.ebuild b/games-simulation/crashtest/crashtest-1.1.ebuild new file mode 100644 index 000000000000..d8dc29b604c5 --- /dev/null +++ b/games-simulation/crashtest/crashtest-1.1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils flag-o-matic games + +DESCRIPTION="Educational car crash simulator" +HOMEPAGE="http://www.stolk.org/crashtest/" +SRC_URI="http://www.stolk.org/crashtest/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND=" + x11-libs/fltk:1[opengl] + dev-games/ode + media-libs/alsa-lib + virtual/opengl + virtual/glu + media-libs/freeglut" +DEPEND="${RDEPEND} + >=media-libs/plib-1.8.4" + +S=${WORKDIR}/${P}/src-${PN} + +src_prepare() { + epatch "${FILESDIR}/${P}"-gentoo.patch + sed -i \ + -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \ + -e "s:@GENTOO_BINDIR@:${GAMES_BINDIR}:" \ + Makefile ${PN}.cxx || die + append-flags -DHAVE_ISNANF +} + +src_install() { + default + make_desktop_entry ${PN} Crashtest + prepgamesdirs +} diff --git a/games-simulation/crashtest/files/crashtest-1.1-gentoo.patch b/games-simulation/crashtest/files/crashtest-1.1-gentoo.patch new file mode 100644 index 000000000000..b384c87278c2 --- /dev/null +++ b/games-simulation/crashtest/files/crashtest-1.1-gentoo.patch @@ -0,0 +1,94 @@ +diff -ru a/Makefile b/Makefile +--- a/Makefile 2009-02-15 17:11:31.000000000 -0500 ++++ b/Makefile 2009-10-14 01:00:13.900627555 -0400 +@@ -1,34 +1,12 @@ +-# EDIT THESE SETTINGS +- +-PLIBPREFIX=/usr +-ODEPREFIX=/usr +-CXX=g++ +- +-#PLIBPREFIX=$(HOME) +-#ODEPREFIX=$(HOME) +-#CXX=g++-4.0 +- +-# 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 ++CXXFLAGS+=-I `fltk-config --includedir` `ode-config --cflags` + +-LIBS= $(ODEPREFIX)/lib/libode.a -lplibssgaux -lplibssg -lplibsg -lplibpu -lplibfnt -lplibul -lGLU -lGL `fltk-config --use-gl --use-images --ldflags` +- ++LIBS= `ode-config --libs` -lplibssgaux -lplibssg -lplibsg -lplibpu -lplibfnt -lplibul -lGLU -lGL -lasound `fltk-config --use-gl --use-images --ldflags` -lglut + + all: crashtest + + crashtest: $(OBJS) +- $(CXX) -o crashtest $(OBJS) $(LFLAGS) $(LIBS) ++ $(CXX) -o crashtest $(OBJS) $(LDFLAGS) $(LIBS) + + staticworldobject.o: ../src-common/staticworldobject.cxx ../src-common/staticworldobject.h ../src-common/worldobject.h + $(CXX) -c $(CXXFLAGS) ../src-common/staticworldobject.cxx +@@ -37,10 +14,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 +25,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 +diff -ru a/crashtest.cxx b/crashtest.cxx +--- a/crashtest.cxx 2009-02-15 17:08:24.000000000 -0500 ++++ b/crashtest.cxx 2009-10-14 01:01:25.822753522 -0400 +@@ -615,13 +615,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); +@@ -745,4 +739,3 @@ + Fl::add_idle(idle, &simwin); + Fl::run(); + } +- diff --git a/games-simulation/crashtest/metadata.xml b/games-simulation/crashtest/metadata.xml new file mode 100644 index 000000000000..3dc7fa0644b5 --- /dev/null +++ b/games-simulation/crashtest/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +<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> |