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/maelstrom/, games-action/maelstrom/files/
Date: Thu, 07 Jul 2016 00:13:04
Message-Id: 1467850354.6eb12cf613ef9cbbabf14107e511f7a2fbf3aba5.wizardedit@gentoo
1 commit: 6eb12cf613ef9cbbabf14107e511f7a2fbf3aba5
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 7 00:12:11 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 7 00:12:34 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6eb12cf6
7
8 games-action/maelstrom: 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.2.28
15
16 .../maelstrom/files/maelstrom-3.0.6-64bits.patch | 4 +-
17 .../maelstrom/files/maelstrom-3.0.6-warnings.patch | 4 +-
18 games-action/maelstrom/maelstrom-3.0.6-r3.ebuild | 72 ++++++++++++++++++++++
19 3 files changed, 76 insertions(+), 4 deletions(-)
20
21 diff --git a/games-action/maelstrom/files/maelstrom-3.0.6-64bits.patch b/games-action/maelstrom/files/maelstrom-3.0.6-64bits.patch
22 index bdf04d3..7d6f59a 100644
23 --- a/games-action/maelstrom/files/maelstrom-3.0.6-64bits.patch
24 +++ b/games-action/maelstrom/files/maelstrom-3.0.6-64bits.patch
25 @@ -1,5 +1,5 @@
26 ---- screenlib/SDL_FrameBuf.cpp.old 2006-10-25 22:37:21.000000000 +0200
27 -+++ screenlib/SDL_FrameBuf.cpp 2006-10-25 22:38:26.000000000 +0200
28 +--- a/screenlib/SDL_FrameBuf.cpp 2006-10-25 22:37:21.000000000 +0200
29 ++++ b/screenlib/SDL_FrameBuf.cpp 2006-10-25 22:38:26.000000000 +0200
30 @@ -847,10 +847,8 @@
31 /* Update the dirty rectangle map with the new list */
32 for ( i=0; i<dirtymaplen; ++i ) {
33
34 diff --git a/games-action/maelstrom/files/maelstrom-3.0.6-warnings.patch b/games-action/maelstrom/files/maelstrom-3.0.6-warnings.patch
35 index aa374b0..8b2ca08 100644
36 --- a/games-action/maelstrom/files/maelstrom-3.0.6-warnings.patch
37 +++ b/games-action/maelstrom/files/maelstrom-3.0.6-warnings.patch
38 @@ -1,5 +1,5 @@
39 ---- Maelstrom-netd.c.orig 2014-03-18 01:00:28.408099526 -0400
40 -+++ Maelstrom-netd.c 2014-03-18 01:01:29.892142782 -0400
41 +--- a/Maelstrom-netd.c 2014-03-18 01:00:28.408099526 -0400
42 ++++ b/Maelstrom-netd.c 2014-03-18 01:01:29.892142782 -0400
43 @@ -1,7 +1,9 @@
44
45 /* Here we go... */
46
47 diff --git a/games-action/maelstrom/maelstrom-3.0.6-r3.ebuild b/games-action/maelstrom/maelstrom-3.0.6-r3.ebuild
48 new file mode 100644
49 index 0000000..095e0a2
50 --- /dev/null
51 +++ b/games-action/maelstrom/maelstrom-3.0.6-r3.ebuild
52 @@ -0,0 +1,72 @@
53 +# Copyright 1999-2016 Gentoo Foundation
54 +# Distributed under the terms of the GNU General Public License v2
55 +# $Id$
56 +
57 +EAPI=6
58 +inherit autotools eutils user
59 +
60 +MY_P=Maelstrom-${PV}
61 +DESCRIPTION="An asteroids battle game"
62 +HOMEPAGE="http://www.libsdl.org/projects/Maelstrom/"
63 +SRC_URI="http://www.libsdl.org/projects/Maelstrom/src/${MY_P}.tar.gz"
64 +
65 +KEYWORDS="~alpha ~amd64 ~ppc ~x86"
66 +SLOT="0"
67 +LICENSE="GPL-2"
68 +IUSE=""
69 +
70 +DEPEND="media-libs/libsdl[sound,joystick,video]
71 + media-libs/sdl-net"
72 +RDEPEND="${DEPEND}"
73 +
74 +S=${WORKDIR}/${MY_P}
75 +
76 +PATCHES=(
77 + "${FILESDIR}"/${P}-security.patch
78 + "${FILESDIR}"/${P}-64bits.patch
79 + "${FILESDIR}"/${P}-gcc34.patch
80 + "${FILESDIR}"/${P}-warnings.patch
81 + "${FILESDIR}"/${P}-gcc53.patch
82 +)
83 +
84 +pkg_setup(){
85 + enewgroup gamestat 36
86 +}
87 +
88 +src_prepare() {
89 + default
90 +
91 + # Install the data into $(datadir)/..., not $(prefix)/games/...
92 + sed -i \
93 + -e "s:(prefix)/games/:(datadir)/:" configure.in || die
94 + sed -i \
95 + -e '/make install_gamedata/ { s:=:=$(DESTDIR)/:; s/make/$(MAKE)/; s/install_gamedata/install-binPROGRAMS install_gamedata/; }' Makefile.am || die
96 + # Install the high scores file in ${GAMES_STATEDIR}
97 + sed -i \
98 + -e "s:path.Path(MAELSTROM_SCORES):\"/var/games/\"MAELSTROM_SCORES:" scores.cpp || die
99 + mv configure.{in,ac}
100 + rm aclocal.m4 acinclude.m4
101 + eautoreconf
102 +}
103 +
104 +src_install() {
105 + default
106 + dodoc Changelog Docs/{Maelstrom-Announce,*FAQ,MaelstromGPL_press_release,*.Paper,Technical_Notes*}
107 +
108 + newicon "${D}/usr/share/Maelstrom/icon.xpm" maelstrom.xpm
109 + make_desktop_entry Maelstrom "Maelstrom" maelstrom
110 +
111 + # Put the high scores file in the right place
112 + insinto /var/games
113 + doins "${D}/usr/share/Maelstrom/Maelstrom-Scores"
114 +
115 + # clean up some cruft
116 + rm -f \
117 + "${D}/usr/share/Maelstrom/Maelstrom-Scores" \
118 + "${D}/usr/share/Maelstrom/Images/Makefile*"
119 +
120 + # make sure we can update the high scores
121 + fowners root:gamestat /var/games/Maelstrom-Scores /usr/bin/Maelstrom{,-netd}
122 + fperms 2755 /usr/bin/Maelstrom{,-netd}
123 + fperms 660 /var/games/Maelstrom-Scores
124 +}