diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-arcade/spacerider |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-arcade/spacerider')
-rw-r--r-- | games-arcade/spacerider/Manifest | 10 | ||||
-rw-r--r-- | games-arcade/spacerider/files/spacerider-0.13-font.patch | 14 | ||||
-rw-r--r-- | games-arcade/spacerider/files/spacerider-0.13-gcc41.patch | 10 | ||||
-rw-r--r-- | games-arcade/spacerider/files/spacerider-0.13-gcc49.patch | 22 | ||||
-rw-r--r-- | games-arcade/spacerider/files/spacerider-0.13-gentoo.patch | 27 | ||||
-rw-r--r-- | games-arcade/spacerider/files/spacerider-0.13-ovflfix.patch | 11 | ||||
-rw-r--r-- | games-arcade/spacerider/metadata.xml | 11 | ||||
-rw-r--r-- | games-arcade/spacerider/spacerider-0.13.ebuild | 42 |
8 files changed, 147 insertions, 0 deletions
diff --git a/games-arcade/spacerider/Manifest b/games-arcade/spacerider/Manifest new file mode 100644 index 000000000000..2a9cb3d0ba3b --- /dev/null +++ b/games-arcade/spacerider/Manifest @@ -0,0 +1,10 @@ +AUX spacerider-0.13-font.patch 405 SHA256 5282b04eecddadc0e0c8c8971eb7c33483458239b530e4ed9b51984e1b7cb371 SHA512 3d584b207b809e69cb4f6227690c840659e8a9e4e242ee70e2870a210470f1d1f22498cae52a33f0b8a06449cf5d74bf60c94add9ff1ee8f3be74f666aa61fc0 WHIRLPOOL c891401333a07314f2758c727ce91b46a9b46ccbb38695268b8921cb16b910567906bff993fb29f92127ee2ca599cc8cff7a494ee7c0076185c712fc8ab4ebd2 +AUX spacerider-0.13-gcc41.patch 464 SHA256 fcedce29dc5d09bb58b3ba2e3758ac0c5921b4233b7a5d6cd5714789db6d94a3 SHA512 5d8a7e98957197e3a5be814922cf175e96071b2ece6014d71d000489803a6850324919217d9519cecbbebb07327d44728aa710cbbd56a10b22e7094604cbe3fe WHIRLPOOL b2f7d6e4d81fb140b95a0b9256e8cb25ba13c753af536190deedefd2784f42db5e23ebf8d6078a5e70a49820e785d932ec1acc69aff7fa3667e3fe6ebb9a3481 +AUX spacerider-0.13-gcc49.patch 767 SHA256 7d8c55c0c029bb4f7495bc2bf87df95ab23df77d325ca626de6d8153bf4cae3d SHA512 8960674333b379eac82c844c7e558edf00286df66e19fd1728837a47a3930c8d7ff3d98f1abd560041f58d4919ef7bd8472670ed92a60ed5ee74ba450bbccadf WHIRLPOOL 59a33f8efd8ca66b4bb75a602825ce101e7f7d8658a64b9e6b1f0831a8d9955bcba2cef30b0bee5e6e6c8cd10775ad70d4d7f407411a356700e84cce2f5265c4 +AUX spacerider-0.13-gentoo.patch 733 SHA256 87f1e6e4fd3155b9fd622c1bacfc5a75446c2e94a8abefda688aecf4b6e0a61d SHA512 5303e0bf13dfde66b0a0b7d522cd317e742330ba7d77ec53daee3d3ae3f0ebd90ed545c57c0c9f601e5f69906a0d8c53be5641ba1564cdff583234fd6fcb22b8 WHIRLPOOL bc40f0c203f01f546319fdc087497689db0cac5529bd6355c718125b38e45450e90b30d71c408663ba989a03015c2a66b40b82253a79c9e8cb1cca6d2f4829d5 +AUX spacerider-0.13-ovflfix.patch 343 SHA256 34a2f406c938ee386f7fff97f3eb3b06e44d3e2d13db970e79751b17314f5c7d SHA512 68ae2d0daf90de0c949f923605ce61275277391d80c3b4c965e6ebb2de92331c8481272e491f6cb81f18cc1818aa559f5a11f6916df8cc4c39045cd1f23e97bb WHIRLPOOL 6bd15519452f37b4f2414172eeed018ee11f67d03ad171844b0d141c72c1dc3b9ee0fee4c89afe2207b2cd3d0f688339c548ab6ccee904a4dab09eba3a244e38 +DIST spacerider-0.13.tar.bz2 283861 SHA256 9314945b7004a64e7f511b7318af3aef5d1ab680577ba97399a8a11ab022678e SHA512 4f8d506abfe242039247d5c4e43c012ded14f3b18de710aea0c9c6d933cb60fde3116008723d44acadd490b3666e107506fad6ee027d2b31c47d118185e0c03e WHIRLPOOL f75ca582565289896ef6e8c0036d0570e03263370fd290ac472aab969c0c9125fb3e1f5f25a9f4266f32e77f4a9b0852d7ac7dd902100624d44c098a0899b6c2 +EBUILD spacerider-0.13.ebuild 956 SHA256 9f1eb70ba5057763733d31744d725ebbbf78ca86113d7aec394d5b03d5375c5b SHA512 c391b660522e0678f00357481c745cdd4b78107e70e9d2982e60bc44715c40410ef1d05592cb137c3a086856c278dc3c511a3d4a61f293ddb9a956adbae9c7b4 WHIRLPOOL 93f1a364cc24fed9a14b043995c329753d63bdfa9576194ffdcbe7a354af1dcf51b6bdc09e1d7abe110936f1585371e2337c7e9bd87ba48697c05753a819e177 +MISC ChangeLog 2626 SHA256 1b80dbea99e5dd837a8b56051a583af34db649c34b975d56e7071d86b15d451f SHA512 ced31a3b1fa8ad1af96045626025bc97fc78e967dd7cbdd3b484559204f391e86535b98dd0696e24d7d14c9b42a67c1dd5768a3431ed192b03098d2c00123e38 WHIRLPOOL 6fe8554e0dc5d1a807d88f9fd76dca590a8c1a098e72dacfda59447ad0c0428b61ef85a54b38a2492c0897ffb7d25b30a37215562b8a0b8afb7a329c676fa048 +MISC ChangeLog-2015 1534 SHA256 bb91155d3ad2da807be6d20d528aabe8afb9c0921b8ad0139ba32a2a91afe184 SHA512 bc2fb22788f7cb9d37c4df95bac7436541d844eab5fa3163903fef23bd933de2b028193066245a719606137048539e13f08d6cb8758d6fdfdd1bb29f37d2bed4 WHIRLPOOL e432ece8b1ce8f809b3bf5eef3ace637ae80147b2ffc0db336af7527c26d5d5beb826fac2e2c2cd5f6e0b65aca66a157e4909360e23948a079340d290805d14e +MISC metadata.xml 357 SHA256 622bcd2c964bd2851c543f139092607987b24bd6bd9c7e8e263b3743fd20ab5f SHA512 51a7291b12ee0c0f12cf55a0d24d8e2dd3cf44f9ef2023caa9c457b659dc677a9882512472525073c17717a7f56180c94a88a40d3db2d33bd843e31ca862739d WHIRLPOOL 561ff2b42d168493435792775a714c04a130658ebbd547efdcd551a98491499cffc02e6b1954e04bd9e651433cccb7a8160cb7df55dbacdc510e99dbec9a4cfb diff --git a/games-arcade/spacerider/files/spacerider-0.13-font.patch b/games-arcade/spacerider/files/spacerider-0.13-font.patch new file mode 100644 index 000000000000..914a0466c7fe --- /dev/null +++ b/games-arcade/spacerider/files/spacerider-0.13-font.patch @@ -0,0 +1,14 @@ +Ugly brute-force method for avoiding a double-free segfault on exit. +Better patch welcome. + +--- spacerider.cpp.orig 2015-03-31 23:24:17.770966147 -0400 ++++ spacerider.cpp 2015-03-31 23:24:41.592174463 -0400 +@@ -306,8 +306,6 @@ + /* free screen */ + SDL_FreeSurface(screen); + } +- /* call the TTF-Library cleanup function */ +- TTF_Quit(); + + /* call the NET-Library cleanup function */ + SDLNet_Quit(); diff --git a/games-arcade/spacerider/files/spacerider-0.13-gcc41.patch b/games-arcade/spacerider/files/spacerider-0.13-gcc41.patch new file mode 100644 index 000000000000..1a08d715ac5b --- /dev/null +++ b/games-arcade/spacerider/files/spacerider-0.13-gcc41.patch @@ -0,0 +1,10 @@ +--- spacerider.cpp.old 2007-02-18 11:25:38.000000000 +0100 ++++ spacerider.cpp 2007-02-18 11:27:00.000000000 +0100 +@@ -17,6 +17,7 @@ + #include <unistd.h> + } + ++int send_score_thread(void *param); + + Spacerider::Spacerider(const int argc, char *argv[]) : fullscreen(FULLSCREEN), game_over(false), online_highscore(ONLINE_HIGHSCORE), score_sent(false), name_input(true), highscore_thread_started(false), scroll(0), last_enemy(0), score(0), lives(LIVES), fps(FPS) + { diff --git a/games-arcade/spacerider/files/spacerider-0.13-gcc49.patch b/games-arcade/spacerider/files/spacerider-0.13-gcc49.patch new file mode 100644 index 000000000000..d057e7bab730 --- /dev/null +++ b/games-arcade/spacerider/files/spacerider-0.13-gcc49.patch @@ -0,0 +1,22 @@ +--- effect.cpp.orig 2015-03-31 22:36:53.336131373 -0400 ++++ effect.cpp 2015-03-31 22:37:04.359755281 -0400 +@@ -18,7 +18,7 @@ + void Effect::add(const int x, const int y) + { + object_struct *effect; +- if((effect = add_object(x, y)) == NULL) ++ if((effect = add_object(x, y, 0, 0)) == NULL) + { + return; + } +--- object.h.orig 2015-03-31 22:35:22.939214561 -0400 ++++ object.h 2015-03-31 22:37:19.654233441 -0400 +@@ -172,7 +172,7 @@ + return object->next; + } + +-template <class T>struct Object<T>::object_struct *Object<T>::add_object(const int x, const int y, const int speedx = 0, const int speedy = 0) ++template <class T>struct Object<T>::object_struct *Object<T>::add_object(const int x, const int y, const int speedx, const int speedy) + { + object_struct *object; + diff --git a/games-arcade/spacerider/files/spacerider-0.13-gentoo.patch b/games-arcade/spacerider/files/spacerider-0.13-gentoo.patch new file mode 100644 index 000000000000..d692f87632b0 --- /dev/null +++ b/games-arcade/spacerider/files/spacerider-0.13-gentoo.patch @@ -0,0 +1,27 @@ +--- Makefile ++++ Makefile +@@ -3,12 +3,12 @@ + BINDIR=/usr/bin/ + MANDIR=/usr/share/man/man1/ + DATADIR=/usr/share/games/spacerider/ +-CXX=g++ ++CXX?=g++ + CP=cp + MKDIR=mkdir -p + INSTALL=install + RM=rm -f +-CXXFLAGS=-Wall -fomit-frame-pointer -O3 `sdl-config --cflags` ++CXXFLAGS+=$(shell sdl-config --cflags) + OBJS=main.o globals.o spacerider.o music.o sprite.o enemy.o effect.o visible.o box.o features.o font.o image.o bullet.o + OUTPUT=spacerider + LIBS=`sdl-config --libs` -lSDL_image -lSDL_ttf -lSDL_mixer -lSDL_net -lSDL_gfx +@@ -22,8 +22,7 @@ + + + $(OUTPUT): $(OBJS) +- $(CXX) $(CXXFLAGS) -o $(OUTPUT) $(OBJS) $(LIBS) +- strip $(OUTPUT) ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $(OUTPUT) $(OBJS) $(LIBS) + + %.o: %.cpp + $(CXX) $(CXXFLAGS) -c $< diff --git a/games-arcade/spacerider/files/spacerider-0.13-ovflfix.patch b/games-arcade/spacerider/files/spacerider-0.13-ovflfix.patch new file mode 100644 index 000000000000..5ed73c348cf2 --- /dev/null +++ b/games-arcade/spacerider/files/spacerider-0.13-ovflfix.patch @@ -0,0 +1,11 @@ +--- spacerider.cpp.old 2010-10-29 10:12:19.000000000 +0200 ++++ spacerider.cpp 2010-10-29 10:13:47.000000000 +0200 +@@ -112,7 +112,7 @@ + break; + case 'n': + /* specify a name for the online-highscore */ +- strncpy(name, optarg, 128); ++ strncpy(name, optarg, sizeof (name)); + online_highscore = true; + break; + case 't': diff --git a/games-arcade/spacerider/metadata.xml b/games-arcade/spacerider/metadata.xml new file mode 100644 index 000000000000..6d3980e569e5 --- /dev/null +++ b/games-arcade/spacerider/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +<longdescription lang="en"> +spacerider is a space-shooter written in C++, using the SDL. +</longdescription> +</pkgmetadata> diff --git a/games-arcade/spacerider/spacerider-0.13.ebuild b/games-arcade/spacerider/spacerider-0.13.ebuild new file mode 100644 index 000000000000..80263900b2a4 --- /dev/null +++ b/games-arcade/spacerider/spacerider-0.13.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils games + +DESCRIPTION="space-shooter written in C++, using the SDL" +HOMEPAGE="http://www.hackl.dhs.org/spacerider/" +SRC_URI="mirror://gentoo/${P}.tar.bz2" # stupid php script + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="media-libs/libsdl[sound,video] + media-libs/sdl-gfx + media-libs/sdl-mixer + media-libs/sdl-image[jpeg] + media-libs/sdl-net + media-libs/sdl-ttf" +RDEPEND=${DEPEND} + +src_prepare() { + epatch "${FILESDIR}/${P}"-gentoo.patch \ + "${FILESDIR}/${P}"-gcc41.patch \ + "${FILESDIR}"/${P}-ovflfix.patch \ + "${FILESDIR}"/${P}-gcc49.patch \ + "${FILESDIR}"/${P}-font.patch + sed -i \ + -e "s:/usr/share/games/spacerider:${GAMES_DATADIR}/${PN}:" \ + globals.cpp || die +} + +src_install() { + dogamesbin ${PN} + insinto "${GAMES_DATADIR}/${PN}" + doins -r data + dodoc AUTHORS + newman ${PN}.{1,6} + prepgamesdirs +} |