1 |
commit: 44d3fdedf738b6475cf6d17e7378f75d3cb3f240 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 27 21:46:20 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 27 21:46:35 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44d3fded |
7 |
|
8 |
games-action/spacearyarya-kxl: remove deprecated games eclass |
9 |
|
10 |
Also update to EAPI 6 |
11 |
Also fix building with Clang |
12 |
|
13 |
Gentoo-Bug: https://bugs.gentoo.org/574082 |
14 |
|
15 |
Package-Manager: portage-2.3.0 |
16 |
|
17 |
.../files/spacearyarya-kxl-1.0.2-clang.patch | 11 ++++++ |
18 |
.../spacearyarya-kxl-1.0.2-gentoo-paths.patch | 20 +++++----- |
19 |
.../spacearyarya-kxl-1.0.2-r2.ebuild | 43 ++++++++++++++++++++++ |
20 |
3 files changed, 64 insertions(+), 10 deletions(-) |
21 |
|
22 |
diff --git a/games-action/spacearyarya-kxl/files/spacearyarya-kxl-1.0.2-clang.patch b/games-action/spacearyarya-kxl/files/spacearyarya-kxl-1.0.2-clang.patch |
23 |
new file mode 100644 |
24 |
index 0000000..3b9b68b |
25 |
--- /dev/null |
26 |
+++ b/games-action/spacearyarya-kxl/files/spacearyarya-kxl-1.0.2-clang.patch |
27 |
@@ -0,0 +1,11 @@ |
28 |
+--- a/src/ranking.c.bak 2016-07-27 16:42:34.367945713 -0500 |
29 |
++++ b/src/ranking.c 2016-07-27 16:43:34.679949783 -0500 |
30 |
+@@ -5,7 +5,7 @@ |
31 |
+ /********************** |
32 |
+ ¥¹¥³¥¢¥é¥ó¥¥ó¥° |
33 |
+ **********************/ |
34 |
+-int ScoreRanking(void) |
35 |
++void ScoreRanking(void) |
36 |
+ { |
37 |
+ Uint16 i, j, k; |
38 |
+ struct passwd *pw; |
39 |
|
40 |
diff --git a/games-action/spacearyarya-kxl/files/spacearyarya-kxl-1.0.2-gentoo-paths.patch b/games-action/spacearyarya-kxl/files/spacearyarya-kxl-1.0.2-gentoo-paths.patch |
41 |
index 197dae5..81321b7 100644 |
42 |
--- a/games-action/spacearyarya-kxl/files/spacearyarya-kxl-1.0.2-gentoo-paths.patch |
43 |
+++ b/games-action/spacearyarya-kxl/files/spacearyarya-kxl-1.0.2-gentoo-paths.patch |
44 |
@@ -1,13 +1,13 @@ |
45 |
---- bmp/Makefile.am |
46 |
-+++ bmp/Makefile.am |
47 |
+--- a/bmp/Makefile.am |
48 |
++++ b/bmp/Makefile.am |
49 |
@@ -1,4 +1,4 @@ |
50 |
-bmpdir = $(prefix)/share/SpaceAryarya/bmp |
51 |
+bmpdir = $(BMP_PATH) |
52 |
bmp_DATA = my.bmp enemy1.bmp shot.bmp bomb.bmp\ |
53 |
enemy2.bmp kage.bmp wall.bmp wall2.bmp eshot.bmp\ |
54 |
boss1_b.bmp boss1_do.bmp boss1_f.bmp\ |
55 |
---- configure.in |
56 |
-+++ configure.in |
57 |
+--- a/configure.in |
58 |
++++ b/configure.in |
59 |
@@ -25,17 +25,20 @@ |
60 |
BMP_PATH=/usr/local/share/SpaceAryarya/bmp |
61 |
WAV_PATH=/usr/local/share/SpaceAryarya/wav |
62 |
@@ -32,8 +32,8 @@ |
63 |
|
64 |
AC_OUTPUT([data/Makefile wav/Makefile bmp/Makefile src/Makefile |
65 |
spacearyarya.spec Makefile]) |
66 |
---- data/Makefile.am |
67 |
-+++ data/Makefile.am |
68 |
+--- a/data/Makefile.am |
69 |
++++ b/data/Makefile.am |
70 |
@@ -1,6 +1,7 @@ |
71 |
-datadir = $(prefix)/share/SpaceAryarya/data |
72 |
+datadir = $(DATA_PATH) |
73 |
@@ -45,8 +45,8 @@ |
74 |
+install-data-local: |
75 |
+ $(mkinstalldirs) $(DESTDIR)$(SCORE_PATH) |
76 |
+ $(INSTALL) -m 660 .score $(DESTDIR)$(SCORE_PATH) |
77 |
---- src/ranking.c |
78 |
-+++ src/ranking.c |
79 |
+--- a/src/ranking.c |
80 |
++++ b/src/ranking.c |
81 |
@@ -36,7 +36,7 @@ |
82 |
FILE *fp; |
83 |
Uint16 i; |
84 |
@@ -65,8 +65,8 @@ |
85 |
fprintf(fp, "%d\n", Root->HiScore); |
86 |
for (i = 0; i < 5; i ++) |
87 |
fprintf(fp, "%d %d %s\n", |
88 |
---- wav/Makefile.am |
89 |
-+++ wav/Makefile.am |
90 |
+--- a/wav/Makefile.am |
91 |
++++ b/wav/Makefile.am |
92 |
@@ -1,3 +1,3 @@ |
93 |
-wavdir = $(prefix)/share/SpaceAryarya/wav |
94 |
+wavdir = $(WAV_PATH) |
95 |
|
96 |
diff --git a/games-action/spacearyarya-kxl/spacearyarya-kxl-1.0.2-r2.ebuild b/games-action/spacearyarya-kxl/spacearyarya-kxl-1.0.2-r2.ebuild |
97 |
new file mode 100644 |
98 |
index 0000000..2378c43 |
99 |
--- /dev/null |
100 |
+++ b/games-action/spacearyarya-kxl/spacearyarya-kxl-1.0.2-r2.ebuild |
101 |
@@ -0,0 +1,43 @@ |
102 |
+# Copyright 1999-2016 Gentoo Foundation |
103 |
+# Distributed under the terms of the GNU General Public License v2 |
104 |
+# $Id$ |
105 |
+ |
106 |
+EAPI=6 |
107 |
+inherit autotools eutils |
108 |
+ |
109 |
+MY_P=SpaceAryarya-KXL-${PV} |
110 |
+DESCRIPTION="A 2D/3D shooting game" |
111 |
+HOMEPAGE="http://triring.net/ps2linux/games/kxl/kxlgames.html" |
112 |
+SRC_URI="mirror://gentoo/${MY_P}.tar.gz" |
113 |
+ |
114 |
+LICENSE="GPL-2" |
115 |
+SLOT="0" |
116 |
+KEYWORDS="~amd64 ~ppc ~x86" |
117 |
+IUSE="" |
118 |
+ |
119 |
+DEPEND="dev-games/KXL" |
120 |
+RDEPEND="${DEPEND} |
121 |
+ media-fonts/font-adobe-100dpi |
122 |
+ media-fonts/font-bitstream-100dpi" |
123 |
+ |
124 |
+S=${WORKDIR}/${MY_P} |
125 |
+ |
126 |
+PATCHES=( |
127 |
+ "${FILESDIR}"/${P}-gentoo-paths.patch |
128 |
+ "${FILESDIR}"/${P}-flags.patch |
129 |
+ "${FILESDIR}"/${P}-clang.patch |
130 |
+) |
131 |
+ |
132 |
+src_prepare() { |
133 |
+ default |
134 |
+ |
135 |
+ mv configure.{in,ac} |
136 |
+ rm aclocal.m4 |
137 |
+ eautoreconf |
138 |
+} |
139 |
+ |
140 |
+src_install() { |
141 |
+ default |
142 |
+ newicon bmp/enemy1.bmp ${PN}.bmp |
143 |
+ make_desktop_entry spacearyarya SpaceAryarya /usr/share/pixmaps/${PN}.bmp |
144 |
+} |