1 |
commit: 3b04cd8bbd78038085cf5d27a86d9e673513bb51 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 11 13:16:24 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 11 18:44:06 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b04cd8b |
7 |
|
8 |
games-arcade/balloonchase: EAPI6->8, misc changes |
9 |
|
10 |
* use No_homepage/mirror (links dead with no replacement known) |
11 |
* make patch a little bit smaller and embed $(CXX) + $(PKG_CONFIG) |
12 |
* add missing EPREFIX |
13 |
* replace .bmp icon, neither right format nor size to be valid for XDG |
14 |
and no guarantees it can be displayed by everything |
15 |
|
16 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
17 |
|
18 |
games-arcade/balloonchase/Manifest | 1 + |
19 |
.../balloonchase/balloonchase-0.9.6-r1.ebuild | 34 --------------- |
20 |
.../balloonchase/balloonchase-0.9.6-r2.ebuild | 44 +++++++++++++++++++ |
21 |
...entoo.patch => balloonchase-0.9.6-gentoo.patch} | 51 +++++----------------- |
22 |
4 files changed, 56 insertions(+), 74 deletions(-) |
23 |
|
24 |
diff --git a/games-arcade/balloonchase/Manifest b/games-arcade/balloonchase/Manifest |
25 |
index 9e11cb51d3df..86eaba1aa8fc 100644 |
26 |
--- a/games-arcade/balloonchase/Manifest |
27 |
+++ b/games-arcade/balloonchase/Manifest |
28 |
@@ -1 +1,2 @@ |
29 |
DIST balloonchase-0.9.6.tar.bz2 523085 BLAKE2B 50e453327d51da3fe40f52850cb2fbb7a10e897f59bac5d6f4a676d3211d3dcdae00359304ad119252ebf98e9f46482ad801078762f16ddc609bc94b68c3fc18 SHA512 ab5617713c96187564926fd5ecbdbf5186f78c23cfb43b26b28b9d18e71330efd77700cf7cd02e04be7fd8e33f2d30bf59f64954135ac82802d1d839dc2e7767 |
30 |
+DIST balloonchase.png 1744 BLAKE2B d78e636c0cb2ef521967035ce96fbee0e7b2659cb5127ba32cd3437394a709941fd915dfc0f376d47c2ad5ca81f6392f5942c2737cb2524ec3a041dc5b8c6c26 SHA512 bfd32d65b5cb290df90881cb7a953f1cac38f4e91151c672e4320b9b41f7bff46ef97d6c123aa7267b241710dccf4ade409ff129c945af1ee06d33fdf490f169 |
31 |
|
32 |
diff --git a/games-arcade/balloonchase/balloonchase-0.9.6-r1.ebuild b/games-arcade/balloonchase/balloonchase-0.9.6-r1.ebuild |
33 |
deleted file mode 100644 |
34 |
index 36976cc63a40..000000000000 |
35 |
--- a/games-arcade/balloonchase/balloonchase-0.9.6-r1.ebuild |
36 |
+++ /dev/null |
37 |
@@ -1,34 +0,0 @@ |
38 |
-# Copyright 1999-2018 Gentoo Foundation |
39 |
-# Distributed under the terms of the GNU General Public License v2 |
40 |
- |
41 |
-EAPI=6 |
42 |
-inherit desktop toolchain-funcs |
43 |
- |
44 |
-DESCRIPTION="Fly a hot air balloon and try to blow the other player out of the screen" |
45 |
-HOMEPAGE="http://makegho.mbnet.fi/c/bchase/" |
46 |
-SRC_URI="http://makegho.mbnet.fi/c/bchase/${P}.tar.bz2" |
47 |
- |
48 |
-LICENSE="GPL-2" |
49 |
-SLOT="0" |
50 |
-KEYWORDS="~amd64 ~x86" |
51 |
-IUSE="" |
52 |
- |
53 |
-DEPEND="media-libs/libsdl[video]" |
54 |
-RDEPEND="${DEPEND}" |
55 |
- |
56 |
-src_prepare() { |
57 |
- default |
58 |
- eapply "${FILESDIR}"/${PV}-gentoo.patch |
59 |
- sed -i "s:g++:$(tc-getCXX):" Makefile || die |
60 |
- sed -i \ |
61 |
- -e "s:GENTOODIR:/usr/share/${PN}:" src/main.c || die |
62 |
-} |
63 |
- |
64 |
-src_install() { |
65 |
- dobin ${PN} |
66 |
- insinto /usr/share/${PN} |
67 |
- doins -r images |
68 |
- newicon images/kp2b.bmp ${PN}.bmp |
69 |
- make_desktop_entry ${PN} "Balloon Chase" /usr/share/pixmaps/${PN}.bmp |
70 |
- einstalldocs |
71 |
-} |
72 |
|
73 |
diff --git a/games-arcade/balloonchase/balloonchase-0.9.6-r2.ebuild b/games-arcade/balloonchase/balloonchase-0.9.6-r2.ebuild |
74 |
new file mode 100644 |
75 |
index 000000000000..aa65b89196ec |
76 |
--- /dev/null |
77 |
+++ b/games-arcade/balloonchase/balloonchase-0.9.6-r2.ebuild |
78 |
@@ -0,0 +1,44 @@ |
79 |
+# Copyright 1999-2022 Gentoo Authors |
80 |
+# Distributed under the terms of the GNU General Public License v2 |
81 |
+ |
82 |
+EAPI=8 |
83 |
+ |
84 |
+inherit desktop toolchain-funcs |
85 |
+ |
86 |
+DESCRIPTION="Fly a hot air balloon and try to blow the other player out of the screen" |
87 |
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" |
88 |
+SRC_URI=" |
89 |
+ mirror://gentoo/${P}.tar.bz2 |
90 |
+ https://dev.gentoo.org/~ionen/distfiles/${PN}.png" |
91 |
+ |
92 |
+LICENSE="GPL-2+" |
93 |
+SLOT="0" |
94 |
+KEYWORDS="~amd64 ~x86" |
95 |
+ |
96 |
+RDEPEND="media-libs/libsdl[video]" |
97 |
+DEPEND="${RDEPEND}" |
98 |
+BDEPEND="virtual/pkgconfig" |
99 |
+ |
100 |
+PATCHES=( |
101 |
+ "${FILESDIR}"/${P}-gentoo.patch |
102 |
+) |
103 |
+ |
104 |
+src_prepare() { |
105 |
+ default |
106 |
+ |
107 |
+ sed -i "s|GENTOODIR|${EPREFIX}/usr/share/${PN}|" src/main.c || die |
108 |
+ |
109 |
+ tc-export CXX PKG_CONFIG |
110 |
+} |
111 |
+ |
112 |
+src_install() { |
113 |
+ dobin ${PN} |
114 |
+ |
115 |
+ insinto /usr/share/${PN} |
116 |
+ doins -r images |
117 |
+ |
118 |
+ doicon "${DISTDIR}"/${PN}.png |
119 |
+ make_desktop_entry ${PN} "Balloon Chase" |
120 |
+ |
121 |
+ einstalldocs |
122 |
+} |
123 |
|
124 |
diff --git a/games-arcade/balloonchase/files/0.9.6-gentoo.patch b/games-arcade/balloonchase/files/balloonchase-0.9.6-gentoo.patch |
125 |
similarity index 81% |
126 |
rename from games-arcade/balloonchase/files/0.9.6-gentoo.patch |
127 |
rename to games-arcade/balloonchase/files/balloonchase-0.9.6-gentoo.patch |
128 |
index ff232693422b..c847f0677660 100644 |
129 |
--- a/games-arcade/balloonchase/files/0.9.6-gentoo.patch |
130 |
+++ b/games-arcade/balloonchase/files/balloonchase-0.9.6-gentoo.patch |
131 |
@@ -1,26 +1,18 @@ |
132 |
--- a/Makefile |
133 |
+++ b/Makefile |
134 |
-@@ -1,4 +1,3 @@ |
135 |
+@@ -1,2 +1 @@ |
136 |
-LDFLAGS= -lSDL -lpthread -s |
137 |
CFLAGS= -Wall # -DDEBUG |
138 |
- PKG_BCDIR=balloonchase-`cat src/ver` |
139 |
- PKG_BCVER=`cat src/ver` |
140 |
-@@ -9,8 +8,8 @@ |
141 |
- clean: |
142 |
- rm balloonchase src/*.o |
143 |
+@@ -11,4 +10,4 @@ |
144 |
main: src/main.c |
145 |
- g++ -c -o src/main.o `sdl-config --cflags` src/main.c |
146 |
- g++ -o balloonchase src/main.o `sdl-config --libs` |
147 |
-+ g++ $(CXXFLAGS) -c -o src/main.o `sdl-config --cflags` src/main.c |
148 |
-+ g++ $(LDFLAGS) -o balloonchase src/main.o `sdl-config --libs` |
149 |
++ $(CXX) $(CXXFLAGS) -c -o src/main.o `$(PKG_CONFIG) --cflags sdl` src/main.c |
150 |
++ $(CXX) $(LDFLAGS) -o balloonchase src/main.o `$(PKG_CONFIG) --libs sdl` |
151 |
pkg: |
152 |
- @echo $(PKG_BCVERSION) >VERSION |
153 |
- rm balloonchase src/*.o |
154 |
--- a/src/main.c |
155 |
+++ b/src/main.c |
156 |
-@@ -333,47 +333,47 @@ |
157 |
- |
158 |
- int InitImages() |
159 |
+@@ -335,35 +335,35 @@ |
160 |
{ |
161 |
- back = SDL_LoadBMP("images/back.bmp"); |
162 |
+ back = SDL_LoadBMP("GENTOODIR/images/back.bmp"); |
163 |
@@ -71,8 +63,7 @@ |
164 |
- font2 = SDL_LoadBMP("images/font.bmp"); |
165 |
+ font2 = SDL_LoadBMP("GENTOODIR/images/font.bmp"); |
166 |
font = SDL_CreateRGBSurface(SDL_SWSURFACE, 1288, 100, 32, 0xFF000000, 0x00FF0000, 0x0000FF00, 0x000000FF); |
167 |
- SDL_SetColorKey(font, SDL_SRCCOLORKEY, SDL_MapRGB(font->format, 0x00, 0x00, 0x00)); |
168 |
- DrawIMG (font, font2, 0, 0); |
169 |
+@@ -372,6 +372,6 @@ |
170 |
|
171 |
- blobtrox = SDL_LoadBMP("images/blobtrox.bmp"); |
172 |
+ blobtrox = SDL_LoadBMP("GENTOODIR/images/blobtrox.bmp"); |
173 |
@@ -81,27 +72,17 @@ |
174 |
- balloonchase = SDL_LoadBMP("images/balloonchase.bmp"); |
175 |
+ balloonchase = SDL_LoadBMP("GENTOODIR/images/balloonchase.bmp"); |
176 |
|
177 |
- TMP = SDL_CreateRGBSurface(SDL_SWSURFACE, 259, 200, 32, 0xFF000000, 0x00FF0000, 0x0000FF00, 0x000000FF); |
178 |
- blursurface = SDL_CreateRGBSurface(SDL_SWSURFACE, 640, 480, 32, 0x00000000, 0x00000000, 0x00000000, 0x00000000); |
179 |
-@@ -578,7 +578,7 @@ |
180 |
- |
181 |
- void createdat(int winsneed, int option_wave_effect) |
182 |
+@@ -580,3 +580,3 @@ |
183 |
{ |
184 |
- FILE *OPTFILE=fopen ("balloonchase.dat", "w+"); |
185 |
+ FILE *OPTFILE=fopen (".balloonchaserc", "w+"); |
186 |
char datmsg[60]; |
187 |
- sprintf (datmsg, "Balloon Chase settings file -- Do not edit manually!"); |
188 |
- char tmp2; |
189 |
-@@ -588,52 +588,32 @@ |
190 |
- } |
191 |
- fputc (winsneed, OPTFILE); |
192 |
+@@ -590,3 +590,3 @@ |
193 |
fputc (option_wave_effect+2, OPTFILE); |
194 |
- fprintf (stderr, "Saved configuration to balloonchase.dat\n"); |
195 |
+ fprintf (stderr, "Saved configuration to .balloonchaserc\n"); |
196 |
fclose (OPTFILE); |
197 |
- } |
198 |
- |
199 |
- void checkfiles() |
200 |
+@@ -596,42 +596,22 @@ |
201 |
{ |
202 |
- char found=0; |
203 |
- #ifdef WIN32 |
204 |
@@ -161,23 +142,13 @@ |
205 |
+ createdat(2, 1); |
206 |
+ } |
207 |
} |
208 |
- |
209 |
- Uint32 rgb(Uint8 r, Uint8 g, Uint8 b) |
210 |
-@@ -1257,7 +1237,7 @@ |
211 |
- SDL_WM_SetCaption ("Balloon Chase", 0); |
212 |
- checkfiles(); |
213 |
+@@ -1259,3 +1239,3 @@ |
214 |
|
215 |
- FILE *OPTFILE=fopen ("balloonchase.dat", "r"); |
216 |
+ FILE *OPTFILE=fopen (".balloonchaserc", "r"); |
217 |
char datmsg[60]; |
218 |
- char varmistus[60]; |
219 |
- |
220 |
-@@ -1275,7 +1255,7 @@ |
221 |
- { |
222 |
- winsneeded=fgetc(OPTFILE); |
223 |
+@@ -1277,3 +1257,3 @@ |
224 |
option_wave_effect=fgetc(OPTFILE)-2; |
225 |
- fprintf (stderr, "Successfully loaded balloonchase.dat\n"); |
226 |
+ fprintf (stderr, "Successfully loaded .balloonchaserc\n"); |
227 |
} |
228 |
- else |
229 |
- { |