Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-sports/speed-dreams/, games-sports/speed-dreams/files/
Date: Thu, 29 Sep 2016 21:50:40
Message-Id: 1475185830.b6f264d5d2a8f5abed68810df2ba021ba4549c43.wizardedit@gentoo
1 commit: b6f264d5d2a8f5abed68810df2ba021ba4549c43
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 29 18:38:52 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 29 21:50:30 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6f264d5
7
8 games-sports/speed-dreams: remove deprecated games eclass
9
10 Also update to EAPI 6
11
12 Gentoo-Bug: https://bugs.gentoo.org/574082
13
14 Package-Manager: portage-2.3.0
15
16 .../files/speed-dreams-1.4.0-asneeded.patch | 24 +++---
17 .../files/speed-dreams-1.4.0-automake.patch | 8 +-
18 .../speed-dreams/speed-dreams-1.4.0-r1.ebuild | 86 ++++++++++++++++++++++
19 3 files changed, 102 insertions(+), 16 deletions(-)
20
21 diff --git a/games-sports/speed-dreams/files/speed-dreams-1.4.0-asneeded.patch b/games-sports/speed-dreams/files/speed-dreams-1.4.0-asneeded.patch
22 index 837a251..779119d 100644
23 --- a/games-sports/speed-dreams/files/speed-dreams-1.4.0-asneeded.patch
24 +++ b/games-sports/speed-dreams/files/speed-dreams-1.4.0-asneeded.patch
25 @@ -1,5 +1,5 @@
26 ---- configure.in
27 -+++ configure.in
28 +--- a/configure.in
29 ++++ b/configure.in
30 @@ -123,8 +123,7 @@
31 AC_CHECK_LIB(Xrandr, XRRQueryVersion,,AC_MSG_ERROR([Can't find libXrandr. Please check config.log and if you can't solve the problem send the file to speed-dreams-users@×××××××××××××××××.net with the subject \"Speed Dreams compilation problem\"]))
32 AC_CHECK_LIB(openal, alEnable,, AC_MSG_ERROR([Can't find AL/al.h. OpenAL can be found on http://www.openal.org/]))
33 @@ -19,8 +19,8 @@
34 AC_CHECK_LIB(plibul, main,,AC_MSG_ERROR([Can't find libplibul. PLIB can be found on http://plib.sourceforge.net/]))
35 AC_CHECK_LIB(plibsg, main,,AC_MSG_ERROR([Can't find libplibsg. PLIB can be found on http://plib.sourceforge.net/]))
36 AC_CHECK_LIB(plibsl, main,,AC_MSG_ERROR([Can't find libplibsl. PLIB can be found on http://plib.sourceforge.net/]))
37 ---- Make-default.mk
38 -+++ Make-default.mk
39 +--- a/Make-default.mk
40 ++++ b/Make-default.mk
41 @@ -402,7 +402,7 @@
42 ifdef PROGRAM
43
44 @@ -65,8 +65,8 @@
45 @D=`pwd` ; \
46 createdir="${EXPORTBASE}/${MODULEDIR}" ; \
47 $(mkinstalldirs) $$createdir ; \
48 ---- src/libs/client/Makefile
49 -+++ src/libs/client/Makefile
50 +--- a/src/libs/client/Makefile
51 ++++ b/src/libs/client/Makefile
52 @@ -23,6 +23,8 @@
53 SOURCES = entry.cpp mainmenu.cpp splash.cpp exitmenu.cpp \
54 optionmenu.cpp
55 @@ -76,8 +76,8 @@
56 LIBS = -lplibssg -lplibsg -lplibul
57
58 EXPDIR = include
59 ---- src/libs/Makefile
60 -+++ src/libs/Makefile
61 +--- a/src/libs/Makefile
62 ++++ b/src/libs/Makefile
63 @@ -23,7 +23,7 @@
64
65 TOOLSUBDIRS = txml
66 @@ -87,8 +87,8 @@
67 portability math
68
69 PKGSUBDIRS = $(SUBDIRS)
70 ---- src/libs/raceengineclient/Makefile
71 -+++ src/libs/raceengineclient/Makefile
72 +--- a/src/libs/raceengineclient/Makefile
73 ++++ b/src/libs/raceengineclient/Makefile
74 @@ -23,6 +23,8 @@
75 SOURCES = singleplayer.cpp raceinit.cpp racemain.cpp racemanmenu.cpp racestate.cpp racegl.cpp \
76 raceengine.cpp raceresults.cpp
77 @@ -98,8 +98,8 @@
78 EXPDIR = include
79
80 EXPORTS = singleplayer.h raceinit.h
81 ---- src/libs/tgf/Makefile
82 -+++ src/libs/tgf/Makefile
83 +--- a/src/libs/tgf/Makefile
84 ++++ b/src/libs/tgf/Makefile
85 @@ -29,6 +29,7 @@
86 profiler.cpp \
87 hash.cpp
88
89 diff --git a/games-sports/speed-dreams/files/speed-dreams-1.4.0-automake.patch b/games-sports/speed-dreams/files/speed-dreams-1.4.0-automake.patch
90 index 56f9b9b..72c755a 100644
91 --- a/games-sports/speed-dreams/files/speed-dreams-1.4.0-automake.patch
92 +++ b/games-sports/speed-dreams/files/speed-dreams-1.4.0-automake.patch
93 @@ -1,5 +1,5 @@
94 ---- configure.in.old 2012-03-13 08:15:34.891163505 +0100
95 -+++ configure.in 2012-03-13 08:18:40.154092687 +0100
96 +--- a/configure.in 2012-03-13 08:15:34.891163505 +0100
97 ++++ b/configure.in 2012-03-13 08:18:40.154092687 +0100
98 @@ -14,9 +14,10 @@
99 #
100 ##############################################################################
101 @@ -13,8 +13,8 @@
102
103 dnl Checks for programs.
104 AC_PROG_CC
105 ---- Makefile.old 2012-03-13 10:43:30.563720337 +0100
106 -+++ Makefile 2012-03-13 10:44:26.339794119 +0100
107 +--- a/Makefile 2012-03-13 10:43:30.563720337 +0100
108 ++++ b/Makefile 2012-03-13 10:44:26.339794119 +0100
109 @@ -88,17 +88,7 @@
110 -include ${MAKE_DEFAULT}
111
112
113 diff --git a/games-sports/speed-dreams/speed-dreams-1.4.0-r1.ebuild b/games-sports/speed-dreams/speed-dreams-1.4.0-r1.ebuild
114 new file mode 100644
115 index 00000000..b45edf3
116 --- /dev/null
117 +++ b/games-sports/speed-dreams/speed-dreams-1.4.0-r1.ebuild
118 @@ -0,0 +1,86 @@
119 +# Copyright 1999-2016 Gentoo Foundation
120 +# Distributed under the terms of the GNU General Public License v2
121 +# $Id$
122 +
123 +EAPI=6
124 +inherit autotools eutils versionator
125 +
126 +DESCRIPTION="A fork of the famous open racing car simulator TORCS"
127 +HOMEPAGE="http://speed-dreams.sourceforge.net/"
128 +SRC_URI="mirror://sourceforge/speed-dreams/${P}-r2307-src.tar.bz2"
129 +
130 +LICENSE="GPL-2"
131 +SLOT="0"
132 +KEYWORDS="~amd64 ~x86"
133 +IUSE="xrandr"
134 +
135 +RDEPEND="virtual/opengl
136 + virtual/glu
137 + media-libs/freealut
138 + media-libs/freeglut
139 + >=media-libs/libpng-1.2.40:0
140 + media-libs/openal
141 + sys-libs/zlib
142 + x11-libs/libX11
143 + x11-libs/libXxf86vm
144 + xrandr? ( x11-libs/libXrandr )"
145 +DEPEND="${RDEPEND}
146 + >=media-libs/plib-1.8.3
147 + x11-libs/libICE
148 + x11-libs/libSM
149 + x11-libs/libXext
150 + x11-libs/libXi
151 + x11-libs/libXt
152 + x11-libs/libXmu
153 + x11-libs/libXrender
154 + x11-proto/xproto
155 + xrandr? ( x11-proto/randrproto )"
156 +
157 +S=${WORKDIR}/${PN}-$(get_version_component_range 1-3)-src
158 +
159 +PATCHES=(
160 + "${FILESDIR}"/${P}-asneeded.patch
161 + "${FILESDIR}"/${P}-automake.patch
162 + "${FILESDIR}"/${P}-libpng15.patch
163 + "${FILESDIR}"/${P}-math-hack.patch
164 +)
165 +
166 +src_prepare() {
167 + default
168 +
169 + # https://sourceforge.net/apps/trac/speed-dreams/ticket/111
170 + MAKEOPTS="${MAKEOPTS} -j1"
171 +
172 + sed -i \
173 + -e '/ADDCFLAGS/s: -O2::' \
174 + configure.in || die
175 + sed -i \
176 + -e '/COPYING/s:=.*:= \\:' \
177 + Makefile || die
178 + sed -i \
179 + -e '/LDFLAGS/s:-L/usr/lib::' \
180 + -e "/^datadir/s:=.*:= /usr/share/games/${PN}:" \
181 + Make-config.in || die
182 +
183 + eautoreconf
184 +}
185 +
186 +src_configure() {
187 + addpredict $(echo /dev/snd/controlC? | sed 's/ /:/g')
188 + [[ -e /dev/dsp ]] && addpredict /dev/dsp
189 + econf \
190 + --prefix=/usr \
191 + --bindir=/usr/bin \
192 + $(use_enable xrandr)
193 +}
194 +
195 +src_install() {
196 + emake DESTDIR="${D}" install datainstall
197 +
198 + find "${D}" -name Makefile -exec rm -f {} +
199 +
200 + dodoc CHANGES README TODO
201 +
202 + newicon icon.svg ${PN}.svg
203 + make_desktop_entry ${PN} "Speed Dreams"
204 +}