* [gentoo-commits] repo/gentoo:master commit in: games-simulation/crashtest/, games-simulation/crashtest/files/
@ 2016-09-21 20:57 Austin English
0 siblings, 0 replies; only message in thread
From: Austin English @ 2016-09-21 20:57 UTC (permalink / raw
To: gentoo-commits
commit: 8ccecbf977775a1a0d825b7b856d0d93d971742b
Author: Austin English <wizardedit <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 21 17:53:12 2016 +0000
Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
CommitDate: Wed Sep 21 20:56:53 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ccecbf9
games-simulation/crashtest: remove deprecated games eclass
Also update to EAPI 6
Gentoo-Bug: https://bugs.gentoo.org/574082
Package-Manager: portage-2.3.0
games-simulation/crashtest/crashtest-1.1-r1.ebuild | 46 ++++++++++++++++++++++
.../crashtest/files/crashtest-1.1-gentoo.patch | 12 +++---
2 files changed, 52 insertions(+), 6 deletions(-)
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 00000000..6c3b1e2
--- /dev/null
+++ b/games-simulation/crashtest/crashtest-1.1-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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/files/crashtest-1.1-gentoo.patch b/games-simulation/crashtest/files/crashtest-1.1-gentoo.patch
index 820fd49..b384c87 100644
--- a/games-simulation/crashtest/files/crashtest-1.1-gentoo.patch
+++ b/games-simulation/crashtest/files/crashtest-1.1-gentoo.patch
@@ -1,6 +1,6 @@
-diff -ru crashtest-1.1.orig/src-crashtest/Makefile crashtest-1.1/src-crashtest/Makefile
---- crashtest-1.1.orig/src-crashtest/Makefile 2009-02-15 17:11:31.000000000 -0500
-+++ crashtest-1.1/src-crashtest/Makefile 2009-10-14 01:00:13.900627555 -0400
+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
-
@@ -69,9 +69,9 @@ diff -ru crashtest-1.1.orig/src-crashtest/Makefile crashtest-1.1/src-crashtest/M
# 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 crashtest-1.1.orig/src-crashtest/crashtest.cxx crashtest-1.1/src-crashtest/crashtest.cxx
---- crashtest-1.1.orig/src-crashtest/crashtest.cxx 2009-02-15 17:08:24.000000000 -0500
-+++ crashtest-1.1/src-crashtest/crashtest.cxx 2009-10-14 01:01:25.822753522 -0400
+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[])
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-09-21 20:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-21 20:57 [gentoo-commits] repo/gentoo:master commit in: games-simulation/crashtest/, games-simulation/crashtest/files/ Austin English
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox