1 |
commit: 11db0f78b0edd2b81f64b53ed12f2d586827d1cf |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 6 19:33:02 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=11db0f78 |
7 |
|
8 |
games-action/geki3-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 |
.../geki3-KXL/files/geki3-KXL-1.0.3-paths.patch | 16 +++---- |
17 |
games-action/geki3-KXL/geki3-KXL-1.0.3-r3.ebuild | 53 ++++++++++++++++++++++ |
18 |
2 files changed, 61 insertions(+), 8 deletions(-) |
19 |
|
20 |
diff --git a/games-action/geki3-KXL/files/geki3-KXL-1.0.3-paths.patch b/games-action/geki3-KXL/files/geki3-KXL-1.0.3-paths.patch |
21 |
index 039b185..26f3f43 100644 |
22 |
--- a/games-action/geki3-KXL/files/geki3-KXL-1.0.3-paths.patch |
23 |
+++ b/games-action/geki3-KXL/files/geki3-KXL-1.0.3-paths.patch |
24 |
@@ -1,13 +1,13 @@ |
25 |
---- bmp/Makefile.am |
26 |
-+++ bmp/Makefile.am |
27 |
+--- a/bmp/Makefile.am |
28 |
++++ b/bmp/Makefile.am |
29 |
@@ -1,4 +1,4 @@ |
30 |
-bmpdir = $(prefix)/share/geki3/bmp |
31 |
+bmpdir = $(BMP_PATH) |
32 |
bmp_DATA = back1.bmp boss2.bmp enemyshot1.bmp missile.bmp\ |
33 |
pata.bmp back2.bmp boss3.bmp enemyshot2.bmp mogu.bmp\ |
34 |
pata_ball.bmp back3.bmp boss4.bmp frame.bmp mogu_ball.bmp\ |
35 |
---- configure.in |
36 |
-+++ configure.in |
37 |
+--- a/configure.in |
38 |
++++ b/configure.in |
39 |
@@ -25,9 +25,9 @@ |
40 |
BMP_PATH=/usr/local/share/geki3/bmp |
41 |
WAV_PATH=/usr/local/share/geki3/wav |
42 |
@@ -21,8 +21,8 @@ |
43 |
fi |
44 |
AC_DEFINE_UNQUOTED(DATA_PATH,"$DATA_PATH") |
45 |
AC_DEFINE_UNQUOTED(BMP_PATH,"$BMP_PATH") |
46 |
---- data/Makefile.am |
47 |
-+++ data/Makefile.am |
48 |
+--- a/data/Makefile.am |
49 |
++++ b/data/Makefile.am |
50 |
@@ -1,6 +1,4 @@ |
51 |
-datadir = $(prefix)/share/geki3/data |
52 |
+datadir = $(DATA_PATH) |
53 |
@@ -31,8 +31,8 @@ |
54 |
|
55 |
-install: |
56 |
- $(INSTALL) -c -m 666 ./.score $(DESTDIR)$(DATA_PATH) |
57 |
---- wav/Makefile.am |
58 |
-+++ wav/Makefile.am |
59 |
+--- a/wav/Makefile.am |
60 |
++++ b/wav/Makefile.am |
61 |
@@ -1,4 +1,4 @@ |
62 |
-wavdir = $(prefix)/share/geki3/wav |
63 |
+wavdir = $(WAV_PATH) |
64 |
|
65 |
diff --git a/games-action/geki3-KXL/geki3-KXL-1.0.3-r3.ebuild b/games-action/geki3-KXL/geki3-KXL-1.0.3-r3.ebuild |
66 |
new file mode 100644 |
67 |
index 0000000..3d796f0 |
68 |
--- /dev/null |
69 |
+++ b/games-action/geki3-KXL/geki3-KXL-1.0.3-r3.ebuild |
70 |
@@ -0,0 +1,53 @@ |
71 |
+# Copyright 1999-2016 Gentoo Foundation |
72 |
+# Distributed under the terms of the GNU General Public License v2 |
73 |
+# $Id$ |
74 |
+ |
75 |
+EAPI=6 |
76 |
+inherit autotools eutils user |
77 |
+ |
78 |
+DESCRIPTION="2D length scroll shooting game" |
79 |
+HOMEPAGE="http://triring.net/ps2linux/games/kxl/kxlgames.html" |
80 |
+SRC_URI="mirror://gentoo/${P}.tar.gz |
81 |
+ mirror://gentoo/${PN}.png" |
82 |
+ |
83 |
+LICENSE="GPL-2" |
84 |
+SLOT="0" |
85 |
+KEYWORDS="~amd64 ~x86" |
86 |
+IUSE="" |
87 |
+ |
88 |
+DEPEND="dev-games/KXL" |
89 |
+RDEPEND="${DEPEND} |
90 |
+ media-fonts/font-adobe-100dpi" |
91 |
+ |
92 |
+PATCHES=( |
93 |
+ "${FILESDIR}"/${P}-paths.patch |
94 |
+) |
95 |
+ |
96 |
+pkg_setup(){ |
97 |
+ enewgroup gamestat 36 |
98 |
+} |
99 |
+ |
100 |
+src_prepare() { |
101 |
+ default |
102 |
+ rm -f missing |
103 |
+ sed -i \ |
104 |
+ -e '1i #include <string.h>' \ |
105 |
+ -e "s:DATA_PATH \"/.score\":\"/var/games/${PN}\":" \ |
106 |
+ src/ranking.c || die |
107 |
+ sed -i -e '/CFLAGS/s/$/ @CFLAGS@/' src/Makefile.am || die #bug 426890 |
108 |
+ mv configure.{in,ac} |
109 |
+ eautoreconf |
110 |
+} |
111 |
+ |
112 |
+src_install() { |
113 |
+ default |
114 |
+ |
115 |
+ insinto /var/games/${PN} |
116 |
+ newins data/.score ${PN} |
117 |
+ fowners root:gamestat /var/games/${PN} /usr/bin/geki3 |
118 |
+ fperms 660 /var/games/${PN} |
119 |
+ fperms 2755 /usr/bin/geki3 |
120 |
+ |
121 |
+ doicon "${DISTDIR}"/${PN}.png |
122 |
+ make_desktop_entry geki3 Geki3 |
123 |
+} |