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-action/transcend/, games-action/transcend/files/
Date: Tue, 31 Jan 2017 00:59:37
Message-Id: 1485824361.bd418406615f61e4902592cf61eda23cac749bd4.wizardedit@gentoo
1 commit: bd418406615f61e4902592cf61eda23cac749bd4
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 31 00:00:05 2017 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 31 00:59:21 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd418406
7
8 games-action/transcend: 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.2, Repoman-2.3.1
15
16 .../transcend/files/transcend-0.3-sound.patch | 20 +++----
17 games-action/transcend/transcend-0.3-r1.ebuild | 66 ++++++++++++++++++++++
18 2 files changed, 76 insertions(+), 10 deletions(-)
19
20 diff --git a/games-action/transcend/files/transcend-0.3-sound.patch b/games-action/transcend/files/transcend-0.3-sound.patch
21 index 44ac10f..836cd03 100644
22 --- a/games-action/transcend/files/transcend-0.3-sound.patch
23 +++ b/games-action/transcend/files/transcend-0.3-sound.patch
24 @@ -1,7 +1,7 @@
25 Author: Barry deFreese <bdefreese@××××××.org>
26 Description: Build with portaudio19.
27 ---- a/Transcend/game/SoundPlayer.h
28 -+++ b/Transcend/game/SoundPlayer.h
29 +--- a/game/SoundPlayer.h
30 ++++ b/game/SoundPlayer.h
31 @@ -204,7 +204,7 @@
32 double mMusicLoudness;
33
34 @@ -11,8 +11,8 @@ Description: Build with portaudio19.
35
36 // realtime sounds that should be mixed into the next to-speaker call
37 SimpleVector<PlayableSound *> *mRealtimeSounds;
38 ---- a/Transcend/game/SoundPlayer.cpp
39 -+++ b/Transcend/game/SoundPlayer.cpp
40 +--- a/game/SoundPlayer.cpp
41 ++++ b/game/SoundPlayer.cpp
42 @@ -47,9 +47,11 @@
43
44
45 @@ -52,8 +52,8 @@ Description: Build with portaudio19.
46
47 Description: Link to dynamic portaudio instead of static.
48 Author: Miriam Ruiz <miriam@××××××.org>
49 ---- a/Transcend/Makefile.GnuLinuxX86
50 -+++ b/Transcend/Makefile.GnuLinuxX86
51 +--- a/Makefile.GnuLinuxX86
52 ++++ b/Makefile.GnuLinuxX86
53 @@ -22,7 +22,7 @@
54
55 # pthread library needed for linux
56 @@ -63,8 +63,8 @@ Author: Miriam Ruiz <miriam@××××××.org>
57
58
59 # All platforms but OSX support g++ and need no linker hacks
60 ---- a/Transcend/game/SoundPlayer.h
61 -+++ b/Transcend/game/SoundPlayer.h
62 +--- a/game/SoundPlayer.h
63 ++++ b/game/SoundPlayer.h
64 @@ -46,8 +46,7 @@
65 #include "SoundFilter.h"
66 #include "PlayableSound.h"
67 @@ -75,8 +75,8 @@ Author: Miriam Ruiz <miriam@××××××.org>
68
69
70 #include "minorGems/util/SimpleVector.h"
71 ---- a/Transcend/game/SoundPlayerActive.h
72 -+++ b/Transcend/game/SoundPlayerActive.h
73 +--- a/game/SoundPlayerActive.h
74 ++++ b/game/SoundPlayerActive.h
75 @@ -16,8 +16,7 @@
76
77 #include "SoundSamples.h"
78
79 diff --git a/games-action/transcend/transcend-0.3-r1.ebuild b/games-action/transcend/transcend-0.3-r1.ebuild
80 new file mode 100644
81 index 00000000..59b0df4
82 --- /dev/null
83 +++ b/games-action/transcend/transcend-0.3-r1.ebuild
84 @@ -0,0 +1,66 @@
85 +# Copyright 1999-2017 Gentoo Foundation
86 +# Distributed under the terms of the GNU General Public License v2
87 +# $Id$
88 +
89 +EAPI=6
90 +inherit eutils
91 +
92 +DESCRIPTION="Retro-style, abstract, 2D shooter"
93 +HOMEPAGE="http://transcend.sourceforge.net/"
94 +SRC_URI="mirror://sourceforge/${PN}/Transcend_${PV}_UnixSource.tar.gz"
95 +
96 +LICENSE="GPL-2"
97 +SLOT="0"
98 +KEYWORDS="~amd64 ~ppc ~x86"
99 +IUSE=""
100 +
101 +DEPEND="
102 + media-libs/freeglut
103 + media-libs/portaudio
104 + x11-libs/libXi
105 + x11-libs/libXmu
106 + virtual/glu
107 + virtual/opengl"
108 +RDEPEND=${DEPEND}
109 +
110 +S=${WORKDIR}/Transcend_${PV}_UnixSource/Transcend
111 +
112 +# Apply patch from Debian in order to get sound working. bug #372413
113 +PATCHES=(
114 + "${FILESDIR}"/${P}-sound.patch
115 +)
116 +
117 +src_prepare() {
118 + default
119 +
120 + rm -rf game/Makefile portaudio/ || die
121 + sed \
122 + -e '/^GXX=/d' \
123 + -e 's/GXX/CXX/' \
124 + -e '/^COMPILE_FLAGS =/ s/OPTIMIZE_FLAG/CXXFLAGS/' \
125 + -e '/^EXE_LINK =/ s/LINK_FLAGS/LDFLAGS/' \
126 + Makefile.GnuLinuxX86 \
127 + Makefile.common \
128 + Makefile.minorGems \
129 + game/Makefile.all \
130 + Makefile.minorGems_targets \
131 + > game/Makefile || die
132 + sed -i \
133 + -e "s:\"levels\":\"/usr/share/${PN}/levels\":" \
134 + game/LevelDirectoryManager.cpp \
135 + game/game.cpp || die
136 +}
137 +
138 +src_configure() { :; }
139 +
140 +src_compile() {
141 + emake -C game
142 +}
143 +
144 +src_install() {
145 + newbin game/Transcend ${PN}
146 + insinto /usr/share/${PN}
147 + doins -r levels/
148 + dodoc doc/{how_to_play.txt,changeLog.txt}
149 + make_desktop_entry ${PN} "Transcend"
150 +}