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-roguelike/wrogue/files/, games-roguelike/wrogue/
Date: Fri, 05 Aug 2016 21:31:28
Message-Id: 1470432673.55658331efb82830f3b60f393fcb92d322cd74d1.wizardedit@gentoo
1 commit: 55658331efb82830f3b60f393fcb92d322cd74d1
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 5 21:29:47 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 5 21:31:13 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55658331
7
8 games-roguelike/wrogue: 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 .../wrogue/files/wrogue-0.8.0b-ldflags.patch | 4 +-
17 games-roguelike/wrogue/wrogue-0.8.0b-r1.ebuild | 49 ++++++++++++++++++++++
18 2 files changed, 51 insertions(+), 2 deletions(-)
19
20 diff --git a/games-roguelike/wrogue/files/wrogue-0.8.0b-ldflags.patch b/games-roguelike/wrogue/files/wrogue-0.8.0b-ldflags.patch
21 index 3341965..d3ec216 100644
22 --- a/games-roguelike/wrogue/files/wrogue-0.8.0b-ldflags.patch
23 +++ b/games-roguelike/wrogue/files/wrogue-0.8.0b-ldflags.patch
24 @@ -1,5 +1,5 @@
25 ---- src/linux.mak.old 2010-10-14 11:07:22.000000000 +0200
26 -+++ src/linux.mak 2010-10-14 11:08:00.000000000 +0200
27 +--- a/src/linux.mak 2010-10-14 11:07:22.000000000 +0200
28 ++++ b/src/linux.mak 2010-10-14 11:08:00.000000000 +0200
29 @@ -19,7 +19,7 @@
30 # common compiler/linker flags
31 #
32
33 diff --git a/games-roguelike/wrogue/wrogue-0.8.0b-r1.ebuild b/games-roguelike/wrogue/wrogue-0.8.0b-r1.ebuild
34 new file mode 100644
35 index 0000000..39e0c08
36 --- /dev/null
37 +++ b/games-roguelike/wrogue/wrogue-0.8.0b-r1.ebuild
38 @@ -0,0 +1,49 @@
39 +# Copyright 1999-2016 Gentoo Foundation
40 +# Distributed under the terms of the GNU General Public License v2
41 +# $Id$
42 +
43 +EAPI=6
44 +inherit eutils
45 +
46 +DESCRIPTION="Gothic science fantasy roguelike game"
47 +HOMEPAGE="https://freecode.com/projects/wrogue"
48 +SRC_URI="mirror://gentoo/${P}.zip"
49 +
50 +LICENSE="GPL-3"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~x86"
53 +IUSE=""
54 +
55 +RDEPEND="media-libs/libsdl[video]"
56 +DEPEND="${RDEPEND}
57 + app-arch/unzip"
58 +
59 +PATCHES=(
60 + "${FILESDIR}"/${P}-ldflags.patch
61 +)
62 +
63 +src_prepare() {
64 + default
65 +
66 + sed -i \
67 + -e "/AppData\[0\]/ s:AppData.*:strcpy(AppData, \"/usr/share/${PN}/\");:" \
68 + src/lib/appdir.c \
69 + || die "sed failed"
70 +}
71 +
72 +src_compile() {
73 + local myCPPFLAGS="-std=c99 -Iinclude -Ilib -Iui -Igenerate"
74 + local myCFLAGS="$(sdl-config --cflags) ${CFLAGS}"
75 + emake -C src -f linux.mak STRIP_BINARY=NO \
76 + CFLAGS="${myCPPFLAGS} ${myCFLAGS}" release
77 +}
78 +
79 +src_install() {
80 + dobin ${PN}
81 + insinto /usr/share/${PN}
82 + doins -r data
83 + dodoc changes.txt
84 +
85 + newicon data/ui/icon.bmp ${PN}.bmp
86 + make_desktop_entry ${PN} "Warp Rogue" /usr/share/pixmaps/${PN}.bmp
87 +}