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/geki2-KXL/, games-action/geki2-KXL/files/
Date: Wed, 06 Jul 2016 19:46:11
Message-Id: 1467834340.d9c72abe1fe26d9834172dcd1a04aa64be11f8c6.wizardedit@gentoo
1 commit: d9c72abe1fe26d9834172dcd1a04aa64be11f8c6
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 6 19:24:09 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 6 19:45:40 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9c72abe
7
8 games-action/geki2-KXL: 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 .../geki2-KXL/files/geki2-KXL-2.0.3-cflags.patch | 4 +-
17 .../geki2-KXL/files/geki2-KXL-2.0.3-paths.patch | 16 +++----
18 games-action/geki2-KXL/geki2-KXL-2.0.3-r3.ebuild | 52 ++++++++++++++++++++++
19 3 files changed, 62 insertions(+), 10 deletions(-)
20
21 diff --git a/games-action/geki2-KXL/files/geki2-KXL-2.0.3-cflags.patch b/games-action/geki2-KXL/files/geki2-KXL-2.0.3-cflags.patch
22 index 9812e6d..d00f8d4 100644
23 --- a/games-action/geki2-KXL/files/geki2-KXL-2.0.3-cflags.patch
24 +++ b/games-action/geki2-KXL/files/geki2-KXL-2.0.3-cflags.patch
25 @@ -1,5 +1,5 @@
26 ---- src/Makefile.am.old 2012-11-10 21:50:02.159117541 +0100
27 -+++ src/Makefile.am 2012-11-10 21:50:20.658715770 +0100
28 +--- a/src/Makefile.am 2012-11-10 21:50:02.159117541 +0100
29 ++++ b/src/Makefile.am 2012-11-10 21:50:20.658715770 +0100
30 @@ -4,5 +4,5 @@
31 boss.h extern.h ranking.h your.h game.h\
32 geki2.h load.h opening.h my.h misc.h
33
34 diff --git a/games-action/geki2-KXL/files/geki2-KXL-2.0.3-paths.patch b/games-action/geki2-KXL/files/geki2-KXL-2.0.3-paths.patch
35 index 1e4d7db..2284420 100644
36 --- a/games-action/geki2-KXL/files/geki2-KXL-2.0.3-paths.patch
37 +++ b/games-action/geki2-KXL/files/geki2-KXL-2.0.3-paths.patch
38 @@ -1,13 +1,13 @@
39 ---- bmp/Makefile.am
40 -+++ bmp/Makefile.am
41 +--- a/bmp/Makefile.am
42 ++++ b/bmp/Makefile.am
43 @@ -1,4 +1,4 @@
44 -bmpdir = $(prefix)/share/geki2/bmp
45 +bmpdir = $(BMP_PATH)
46 bmp_DATA = back1.bmp boss2.bmp enemyshot4.bmp kuru.bmp myshot.bmp back2.bmp\
47 boss3.bmp enemyshot5.bmp mboss.bmp uraura.bmp back3.bmp\
48 boss3laser.bmp flash.bmp uturn.bmp back4.bmp back6.bmp boss6.bmp\
49 ---- configure.in
50 -+++ configure.in
51 +--- a/configure.in
52 ++++ b/configure.in
53 @@ -25,9 +25,9 @@
54 BMP_PATH=/usr/local/share/geki2/bmp
55 WAV_PATH=/usr/local/share/geki2/wav
56 @@ -21,8 +21,8 @@
57 fi
58 AC_DEFINE_UNQUOTED(DATA_PATH,"$DATA_PATH")
59 AC_DEFINE_UNQUOTED(BMP_PATH,"$BMP_PATH")
60 ---- data/Makefile.am
61 -+++ data/Makefile.am
62 +--- a/data/Makefile.am
63 ++++ b/data/Makefile.am
64 @@ -1,9 +1,7 @@
65 -datadir = $(prefix)/share/geki2/data
66 +datadir = $(DATA_PATH)
67 @@ -34,8 +34,8 @@
68 -install:
69 - $(INSTALL) -c -m 666 ./.score $(DESTDIR)$(DATA_PATH)
70
71 ---- wav/Makefile.am
72 -+++ wav/Makefile.am
73 +--- a/wav/Makefile.am
74 ++++ b/wav/Makefile.am
75 @@ -1,4 +1,4 @@
76 -wavdir = $(prefix)/share/geki2/wav
77 +wavdir = $(WAV_PATH)
78
79 diff --git a/games-action/geki2-KXL/geki2-KXL-2.0.3-r3.ebuild b/games-action/geki2-KXL/geki2-KXL-2.0.3-r3.ebuild
80 new file mode 100644
81 index 0000000..613ab63
82 --- /dev/null
83 +++ b/games-action/geki2-KXL/geki2-KXL-2.0.3-r3.ebuild
84 @@ -0,0 +1,52 @@
85 +# Copyright 1999-2016 Gentoo Foundation
86 +# Distributed under the terms of the GNU General Public License v2
87 +# $Id$
88 +
89 +EAPI=6
90 +inherit autotools eutils user
91 +
92 +DESCRIPTION="2D length scroll shooting game"
93 +HOMEPAGE="http://triring.net/ps2linux/games/kxl/kxlgames.html"
94 +SRC_URI="mirror://gentoo/${P}.tar.gz
95 + mirror://gentoo/${PN}.png"
96 +
97 +LICENSE="GPL-2"
98 +SLOT="0"
99 +KEYWORDS="~amd64 ~x86"
100 +IUSE=""
101 +
102 +DEPEND="dev-games/KXL"
103 +RDEPEND="${DEPEND}
104 + media-fonts/font-adobe-100dpi"
105 +
106 +PATCHES=(
107 + "${FILESDIR}"/${P}-cflags.patch
108 + "${FILESDIR}"/${P}-paths.patch
109 +)
110 +
111 +pkg_setup(){
112 + enewgroup gamestat 36
113 +}
114 +
115 +src_prepare() {
116 + default
117 + rm -f missing
118 + sed -i \
119 + -e '1i #include <string.h>' \
120 + -e "s:DATA_PATH \"/.score\":\"/var/games/${PN}\":" \
121 + src/ranking.c || die
122 + eautoreconf
123 +}
124 +
125 +src_install() {
126 + default
127 +
128 + insinto /var/games/
129 + newins data/.score ${PN}
130 + fowners root:gamestat /var/games/${PN} /usr/bin/geki2
131 + fperms 660 /var/games/${PN}
132 + fperms 2755 /usr/bin/geki2
133 +
134 + doicon "${DISTDIR}"/${PN}.png
135 + make_desktop_entry geki2 Geki2
136 +}