From: "Austin English" <wizardedit@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-sports/torcs/files/, games-sports/torcs/
Date: Mon, 3 Oct 2016 19:12:49 +0000 (UTC) [thread overview]
Message-ID: <1475521877.322ca4a77a64118ce235bad1cf5b310bb72fc9b7.wizardedit@gentoo> (raw)
commit: 322ca4a77a64118ce235bad1cf5b310bb72fc9b7
Author: Austin English <wizardedit <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 3 18:55:58 2016 +0000
Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
CommitDate: Mon Oct 3 19:11:17 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=322ca4a7
games-sports/torcs: remove deprecated games eclass
Also update to EAPI 6
Gentoo-Bug: https://bugs.gentoo.org/574082
Package-Manager: portage-2.3.0
games-sports/torcs/files/torcs-1.3.6-format.patch | 8 +--
games-sports/torcs/files/torcs-1.3.6-noXmuXt.patch | 4 +-
games-sports/torcs/torcs-1.3.6-r1.ebuild | 67 ++++++++++++++++++++++
3 files changed, 73 insertions(+), 6 deletions(-)
diff --git a/games-sports/torcs/files/torcs-1.3.6-format.patch b/games-sports/torcs/files/torcs-1.3.6-format.patch
index 52e7db6..da59c4d 100644
--- a/games-sports/torcs/files/torcs-1.3.6-format.patch
+++ b/games-sports/torcs/files/torcs-1.3.6-format.patch
@@ -1,5 +1,5 @@
---- src/tools/texmapper/maintexmapper.cpp.old 2015-12-23 20:55:24.874102363 +0100
-+++ src/tools/texmapper/maintexmapper.cpp 2015-12-23 20:55:55.071553325 +0100
+--- a/src/tools/texmapper/maintexmapper.cpp 2015-12-23 20:55:24.874102363 +0100
++++ b/src/tools/texmapper/maintexmapper.cpp 2015-12-23 20:55:55.071553325 +0100
@@ -103,7 +103,7 @@
{
int i, j;
@@ -9,8 +9,8 @@
for (j = 0; j < 4; j ++){
for (i = 0; i < 4; i ++) {
printf("%.6f ", m[i][j]);
---- src/tools/trackgen/objects.cpp.old 2015-12-23 20:59:49.671287196 +0100
-+++ src/tools/trackgen/objects.cpp 2015-12-23 21:02:21.639523189 +0100
+--- a/src/tools/trackgen/objects.cpp 2015-12-23 20:59:49.671287196 +0100
++++ b/src/tools/trackgen/objects.cpp 2015-12-23 21:02:21.639523189 +0100
@@ -234,9 +234,9 @@
ssgLeaf *vt = (ssgLeaf *)ent;
diff --git a/games-sports/torcs/files/torcs-1.3.6-noXmuXt.patch b/games-sports/torcs/files/torcs-1.3.6-noXmuXt.patch
index 6f4a2e4..f87fb75 100644
--- a/games-sports/torcs/files/torcs-1.3.6-noXmuXt.patch
+++ b/games-sports/torcs/files/torcs-1.3.6-noXmuXt.patch
@@ -1,5 +1,5 @@
---- configure.in.old
-+++ configure.in
+--- a/configure.in
++++ b/configure.in
@@ -116,12 +116,8 @@
AC_CHECK_LIB(ICE, IceSetIOErrorHandler,,AC_MSG_ERROR([Can't find libICE. Please check config.log and if you can't solve the problem send the file to torcs-users@lists.sourceforge.net with the subject \"torcs compilation problem\"]))
dnl Replace `main' with a function in -lSM:
diff --git a/games-sports/torcs/torcs-1.3.6-r1.ebuild b/games-sports/torcs/torcs-1.3.6-r1.ebuild
new file mode 100644
index 00000000..16b587c
--- /dev/null
+++ b/games-sports/torcs/torcs-1.3.6-r1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit autotools eutils multilib
+
+DESCRIPTION="The Open Racing Car Simulator"
+HOMEPAGE="http://torcs.sourceforge.net/"
+SRC_URI="mirror://sourceforge/torcs/${P}.tar.bz2"
+
+LICENSE="GPL-2 FreeArt"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="media-libs/freealut
+ media-libs/freeglut
+ media-libs/libpng:0
+ media-libs/libvorbis:=
+ media-libs/openal
+ >=media-libs/plib-1.8.5
+ sys-libs/zlib:0=
+ virtual/opengl
+ virtual/glu
+ x11-libs/libX11
+ x11-libs/libXrandr"
+DEPEND="${RDEPEND}
+ x11-proto/xf86vidmodeproto"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-no-automake.patch
+ "${FILESDIR}"/${P}-as-needed.patch
+ "${FILESDIR}"/${P}-flags.patch
+ "${FILESDIR}"/${P}-format.patch
+ "${FILESDIR}"/${P}-noXmuXt.patch
+)
+
+src_prepare() {
+ default
+
+ eautoreconf
+ ecvs_clean
+}
+
+src_configure() {
+ addpredict $(echo /dev/snd/controlC? | sed 's/ /:/g')
+ [[ -e /dev/dsp ]] && addpredict /dev/dsp
+ econf \
+ --datadir=/usr/share \
+ --x-libraries=/usr/$(get_libdir) \
+ --enable-xrandr
+}
+
+src_compile() {
+ # So ugly... patches welcome.
+ emake -j1
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install datainstall
+ newicon Ticon.png ${PN}.png
+ make_desktop_entry ${PN} TORCS
+ dodoc README doc/history/history.txt
+ doman doc/man/*.6
+ dodoc -r doc/faq/faq.html doc/tutorials doc/userman
+}
next reply other threads:[~2016-10-03 19:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-03 19:12 Austin English [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-12-23 20:12 [gentoo-commits] repo/gentoo:master commit in: games-sports/torcs/files/, games-sports/torcs/ Alfredo Tupone
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1475521877.322ca4a77a64118ce235bad1cf5b310bb72fc9b7.wizardedit@gentoo \
--to=wizardedit@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox