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/heroes/files/, games-action/heroes/
Date: Wed, 25 Jan 2017 23:05:26
Message-Id: 1485385504.9b1e9a6c21bd2f275e316be4664729216648f65c.wizardedit@gentoo
1 commit: 9b1e9a6c21bd2f275e316be4664729216648f65c
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 25 20:03:45 2017 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 25 23:05:04 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b1e9a6c
7
8 games-action/heroes: 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 .../heroes/files/0.21-cvs-segfault-fix.patch | 4 +-
17 games-action/heroes/files/heroes-0.21-gcc4.patch | 4 +-
18 .../heroes/files/heroes-0.21-underlink.patch | 4 +-
19 games-action/heroes/heroes-0.21-r2.ebuild | 74 ++++++++++++++++++++++
20 4 files changed, 80 insertions(+), 6 deletions(-)
21
22 diff --git a/games-action/heroes/files/0.21-cvs-segfault-fix.patch b/games-action/heroes/files/0.21-cvs-segfault-fix.patch
23 index 99f7706..689fdee 100644
24 --- a/games-action/heroes/files/0.21-cvs-segfault-fix.patch
25 +++ b/games-action/heroes/files/0.21-cvs-segfault-fix.patch
26 @@ -3,8 +3,8 @@ RCS file: /cvsroot/heroes/heroes/src/menus.c,v
27 retrieving revision 1.108.2.1
28 retrieving revision 1.108.2.2
29 diff -u -r1.108.2.1 -r1.108.2.2
30 ---- heroes/heroes/src/menus.c 2002/06/16 19:16:09 1.108.2.1
31 -+++ heroes/heroes/src/menus.c 2002/08/22 11:45:51 1.108.2.2
32 +--- a/src/menus.c 2002/06/16 19:16:09 1.108.2.1
33 ++++ b/src/menus.c 2002/08/22 11:45:51 1.108.2.2
34 @@ -219,7 +219,8 @@
35 { N_("NEW LEVEL"), editor_menu },
36 /* TRANS: Load an existing level for edition. */
37
38 diff --git a/games-action/heroes/files/heroes-0.21-gcc4.patch b/games-action/heroes/files/heroes-0.21-gcc4.patch
39 index 573db41..2e39907 100644
40 --- a/games-action/heroes/files/heroes-0.21-gcc4.patch
41 +++ b/games-action/heroes/files/heroes-0.21-gcc4.patch
42 @@ -1,5 +1,5 @@
43 ---- src/hedlite.c.old 2006-01-28 14:05:05.000000000 -0700
44 -+++ src/hedlite.c 2006-01-28 14:07:20.000000000 -0700
45 +--- a/src/hedlite.c 2006-01-28 14:05:05.000000000 -0700
46 ++++ b/src/hedlite.c 2006-01-28 14:07:20.000000000 -0700
47 @@ -45,7 +45,7 @@
48 #include "dirname.h"
49
50
51 diff --git a/games-action/heroes/files/heroes-0.21-underlink.patch b/games-action/heroes/files/heroes-0.21-underlink.patch
52 index 4b805ae..18a0fca 100644
53 --- a/games-action/heroes/files/heroes-0.21-underlink.patch
54 +++ b/games-action/heroes/files/heroes-0.21-underlink.patch
55 @@ -1,5 +1,5 @@
56 ---- src/Makefile.am.old 2011-06-10 11:32:03.905618275 +0200
57 -+++ src/Makefile.am 2011-06-10 11:32:15.539347083 +0200
58 +--- a/src/Makefile.am 2011-06-10 11:32:03.905618275 +0200
59 ++++ b/src/Makefile.am 2011-06-10 11:32:15.539347083 +0200
60 @@ -42,7 +42,7 @@
61 heroeslvl_SOURCES = heroeslvl.c
62
63
64 diff --git a/games-action/heroes/heroes-0.21-r2.ebuild b/games-action/heroes/heroes-0.21-r2.ebuild
65 new file mode 100644
66 index 00000000..156c659
67 --- /dev/null
68 +++ b/games-action/heroes/heroes-0.21-r2.ebuild
69 @@ -0,0 +1,74 @@
70 +# Copyright 1999-2017 Gentoo Foundation
71 +# Distributed under the terms of the GNU General Public License v2
72 +# $Id$
73 +
74 +EAPI=6
75 +inherit eutils autotools
76 +
77 +data_ver=1.5
78 +snd_trk_ver=1.0
79 +snd_eff_ver=1.0
80 +
81 +DESCRIPTION="Heroes Enjoy Riding Over Empty Slabs: similar to Tron and Nibbles"
82 +HOMEPAGE="http://heroes.sourceforge.net/"
83 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
84 + mirror://sourceforge/${PN}/${PN}-data-${data_ver}.tar.bz2
85 + mirror://sourceforge/${PN}/${PN}-sound-tracks-${snd_trk_ver}.tar.bz2
86 + mirror://sourceforge/${PN}/${PN}-sound-effects-${snd_eff_ver}.tar.bz2"
87 +
88 +LICENSE="GPL-2"
89 +SLOT="0"
90 +KEYWORDS="~amd64 ~ppc ~sparc ~x86"
91 +IUSE="ggi nls sdl"
92 +RESTRICT="test"
93 +
94 +RDEPEND="
95 + ggi? ( media-libs/libggi media-libs/libgii media-libs/libmikmod )
96 + nls? ( virtual/libintl )
97 + sdl? ( media-libs/libsdl media-libs/sdl-mixer )
98 + !sdl? ( !ggi? ( media-libs/libsdl media-libs/sdl-mixer ) )"
99 +DEPEND="${RDEPEND}
100 + nls? ( sys-devel/gettext )"
101 +
102 + #56118
103 +PATCHES=(
104 + "${FILESDIR}/${P}"-automake-1.12.patch
105 + "${FILESDIR}/${P}"-gcc4.patch
106 + "${FILESDIR}/${P}"-underlink.patch
107 + "${FILESDIR}/${PV}"-cvs-segfault-fix.patch
108 +)
109 +
110 +src_prepare() {
111 + default
112 + sed -i 's:$(localedir):/usr/share/locale:' \
113 + $(find . -name 'Makefile.in*') || die
114 + eautoreconf
115 +}
116 +
117 +src_configure() {
118 + local myconf
119 +
120 + if use sdl || ! use ggi ; then
121 + myconf="${myconf} --with-sdl --with-sdl-mixer"
122 + else
123 + myconf="${myconf} --with-ggi --with-mikmod"
124 + fi
125 +
126 + local pkg
127 + for pkg in ${A//.tar.bz2} ; do
128 + cd "${WORKDIR}"/${pkg}
129 + econf \
130 + --disable-heroes-debug \
131 + --disable-optimizations \
132 + $(use_enable nls) \
133 + ${myconf}
134 + done
135 +}
136 +
137 +src_install() {
138 + local pkg
139 + for pkg in ${A//.tar.bz2} ; do
140 + cd "${WORKDIR}"/${pkg}
141 + emake DESTDIR="${D}" install
142 + done
143 +}