From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- games-arcade/epiar/Manifest | 9 +++ games-arcade/epiar/epiar-0.5-r1.ebuild | 50 +++++++++++++ .../epiar/files/epiar-0.5-Makefile.linux.patch | 20 +++++ games-arcade/epiar/files/epiar-0.5-gcc41.patch | 10 +++ games-arcade/epiar/files/epiar-0.5-paths.patch | 86 ++++++++++++++++++++++ games-arcade/epiar/files/epiar-0.5-underlink.patch | 10 +++ games-arcade/epiar/metadata.xml | 21 ++++++ 7 files changed, 206 insertions(+) create mode 100644 games-arcade/epiar/Manifest create mode 100644 games-arcade/epiar/epiar-0.5-r1.ebuild create mode 100644 games-arcade/epiar/files/epiar-0.5-Makefile.linux.patch create mode 100644 games-arcade/epiar/files/epiar-0.5-gcc41.patch create mode 100644 games-arcade/epiar/files/epiar-0.5-paths.patch create mode 100644 games-arcade/epiar/files/epiar-0.5-underlink.patch create mode 100644 games-arcade/epiar/metadata.xml (limited to 'games-arcade/epiar') diff --git a/games-arcade/epiar/Manifest b/games-arcade/epiar/Manifest new file mode 100644 index 000000000000..00398c1ee1b5 --- /dev/null +++ b/games-arcade/epiar/Manifest @@ -0,0 +1,9 @@ +AUX epiar-0.5-Makefile.linux.patch 682 SHA256 ff81c159a228fa0ea37e472229752b726bd17bdb20e05542d10b3c6311b5207e SHA512 5219be09af0443a780d918306086f9c7792a9fd6e7051806c368db6808017ee9c2897b4093664f9c087e3fe987b22edeb50280f25f615cdbfcdf914c1cf4be47 WHIRLPOOL 69948bc17be8cb1189d86dfc19b5ec0a605214d456082e4c2d853dfc00c9a6a6f095a3d025a84cfd20002277324344b582cd2ca304dd7422a962a24836b5e224 +AUX epiar-0.5-gcc41.patch 332 SHA256 d42c3b853ae9267cf6b7e5d2043bd2a7c7cf3975f3a52219ef7208b898104323 SHA512 29de0155e37696c1f2f66060aa6b08d01df13bcf36e2fc20a803bf664bd7a326d4ec70141376305771d2c188e67ddd32d19d5a864c3a8c9c7c5ea329a6e19060 WHIRLPOOL 50d239436e907dba5697d3a8d1ac871995b529ba6b91f8b0e2907d8326ebde51e7d3f92a2f6dbfca37b5da16931684a461bacffafb50a01954bead5748355da0 +AUX epiar-0.5-paths.patch 2195 SHA256 9f23077e8efc4a741414dc3f8692681f570fc129a7e47cc9904e75b790890831 SHA512 4f6068f69b6f2367bbc665159f2612da86591d050e5296304b26d613c6579465c632a442251033fdb7803e6cb72c8f70e6118e8c1d43d33f0376863b91ebd037 WHIRLPOOL e5d4b4b20aa178e41e6549a84931cba3f4061cac0a119fb0b51e823fab9236a8fc0c12e44c6589afa4f1d7b991b278dfc1e4ae126641b60c124f09ee4fa6e49c +AUX epiar-0.5-underlink.patch 818 SHA256 57eff28db02eb5cb7b4f966e5616d16f67a27e9bb044b81c78a82336c4e90896 SHA512 ada142afdd3de71af454bd1a03c8c406d609deeff7a68a84b7066089761bebcb01dae8e69f7fccbd0cf4f0294789696e1181900c30f857c8b5197c24bab51b2a WHIRLPOOL 9d665c7200ca17b9a2be2cbe937ac75eb7c15c14bb06df9fef8fe418b7ad78c4c79172e4a04062a3c22fe0edcfaecff073f1da1d2d3976c54fe6c0b240a75a4b +DIST epiar-0.5.0-src.zip 8809392 SHA256 ec81babd5e5149d1104264fe218bebf83b84e1819c50066d17f71fb2184b21a4 SHA512 22d8655aefd3aa071de064aeeed40d8780fb32ee702e657c8b8a723c381b6825ae9b5820cf5b29991e14bc264c443d0b24f88656b4997a6270383aa080c15f3e WHIRLPOOL 529f67e16eb2fd174ac2f7e8cc2451fea025f71503a7bb6c11e6f5db02791adf9b6b23cfed2a1a0abb3d65094a0b4fc7172b49db10b2eee6741edf2f1fa56ce1 +EBUILD epiar-0.5-r1.ebuild 1062 SHA256 7695536299dd3943a5b85197d48d1487a2a55b5948bcf1fd5c8f583bc0dc882e SHA512 14afa90fadf22fb49e2026f5bafc1f861af1bbd9bd9387a2376befc255aa530984897d21577eec9451d418f927e67d4e266ce04a5b8cc31f20576d2078dcadc9 WHIRLPOOL 94037a8b089def91e2297af4ab4af3906806b0b041970ca90be95b89bb5e6b3a314f5f9b2ca8f2addc6587de95a3f79023fb21b804298dff77ab44f811621152 +MISC ChangeLog 2707 SHA256 f2b8084176ada4c70d440f2cb1351cb871a1d82104d7046bba8599d1667401b6 SHA512 6590a1cdf76d3c0bd544e146c044cd5484cdf63fddf8bccfabb6d3c56b866d183bc154e4726224a86fd870a214852dc2a040e27e9792e6451bbb379963030596 WHIRLPOOL c6fafd1e4c24b493d7ede0f4e6a2a36a72b534270d22e62e362d6a8375fab7f73628e7a6b6086703711bd9cde9aa71cb84b2238b7101b93f2a53ca0923eb3703 +MISC ChangeLog-2015 2300 SHA256 77e8e3b269f12ee45bfcde368e735067405a030483195d9018cef6703422e058 SHA512 5adff81cf8ee9c2b1d56f924495c088b6e2dcd05f25020b1dd92ad3ca3825e016fdded236dab87159e6372df4786f95588635a644bb966e81f4816d88762ffc1 WHIRLPOOL fccbf0372def6d789ccdcd40be2b74ebc0aca945b1cd6ef3c0f46e28ee9c184f780f67e4ac09918baf6da166f8eb72673b7bef52b400112ce50725a13c4f4ea3 +MISC metadata.xml 823 SHA256 8f50cde0e18a3b4615ace97141e8c8437d6af27814776dfe0320dfbe9b9feea5 SHA512 ef154f46f533f6b255bac62dcdffb84833fee98135e714b9a6b546a9128c3d3be0e7cfe7721ce1ccf302019b414ef1edb4ba92cc43b7024be6881a3cb0d6dffb WHIRLPOOL 97c94cdcc751b98a558d67db3cbee0ab98b148cb6859f5e4a02f6819df4f2d41653d97d58202e0e43ab2d54711bff25c790cb9f936a5423ae6d6b911fe8a81c1 diff --git a/games-arcade/epiar/epiar-0.5-r1.ebuild b/games-arcade/epiar/epiar-0.5-r1.ebuild new file mode 100644 index 000000000000..c4f796d7729a --- /dev/null +++ b/games-arcade/epiar/epiar-0.5-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit flag-o-matic eutils games + +DESCRIPTION="A space adventure/combat game" +HOMEPAGE="http://epiar.net/" +SRC_URI="mirror://sourceforge/epiar/${P}.0-src.zip" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="x86 ~x86-fbsd" +IUSE="" + +RDEPEND="media-libs/libsdl[video] + media-libs/sdl-image[png]" +DEPEND="${RDEPEND} + x11-libs/libX11 + virtual/opengl + app-arch/unzip" + +S=${WORKDIR} + +src_prepare() { + sed -i \ + -e "/^CFLAGS/s:-pg -g:${CFLAGS} ${LDFLAGS}:" \ + Makefile.linux || die + epatch \ + "${FILESDIR}"/${P}-paths.patch \ + "${FILESDIR}"/${P}-gcc41.patch \ + "${FILESDIR}"/${P}-Makefile.linux.patch \ + "${FILESDIR}"/${P}-underlink.patch + sed -i \ + -e "s:GENTOO_DATADIR:${GAMES_DATADIR}/${PN}/:" \ + src/main.c || die +} + +src_compile() { + emake -f Makefile.linux +} + +src_install() { + dogamesbin epiar + insinto "${GAMES_DATADIR}"/${PN} + doins -r missions *.eaf + keepdir "${GAMES_DATADIR}"/${PN}/plugins + dodoc AUTHORS ChangeLog README + prepgamesdirs +} diff --git a/games-arcade/epiar/files/epiar-0.5-Makefile.linux.patch b/games-arcade/epiar/files/epiar-0.5-Makefile.linux.patch new file mode 100644 index 000000000000..3086bd13ef9a --- /dev/null +++ b/games-arcade/epiar/files/epiar-0.5-Makefile.linux.patch @@ -0,0 +1,20 @@ +--- Makefile.linux.old 2007-04-05 16:42:30 +0000 ++++ Makefile.linux 2007-04-05 16:42:47 +0000 +@@ -24,7 +24,7 @@ + @echo Building Epiar 0.5.0 ... + @$(CC) $(CFLAGS) -I/usr/X11R6/lib/ $(OBJS) -o epiar $(LIBS) + @echo Building plugins ... +- @make -f Makefile.linux plugin ++ @$(MAKE) -f Makefile.linux plugin + @echo Epiar 0.5.0 build complete. + @echo + @echo Type './epiar' to play. +@@ -33,7 +33,7 @@ + @echo Building Epiar 0.5.0 and linking statically ... + @$(CC) $(CFLAGS) -L/usr/X11R6/lib -L/opt/gnome-2.1/lib $(OBJS) -o epiar $(STATIC_LIBS) + @echo Building plugins ... +- @make plugin ++ @$(MAKE) plugin + @echo Epiar 0.5.0 build complete. + @echo + @echo Type './epiar' to play. diff --git a/games-arcade/epiar/files/epiar-0.5-gcc41.patch b/games-arcade/epiar/files/epiar-0.5-gcc41.patch new file mode 100644 index 000000000000..65f08b2691d1 --- /dev/null +++ b/games-arcade/epiar/files/epiar-0.5-gcc41.patch @@ -0,0 +1,10 @@ +--- src/game/game.h.old 2006-04-23 22:13:36.000000000 +0200 ++++ src/game/game.h 2006-04-23 22:13:50.000000000 +0200 +@@ -2,7 +2,6 @@ + #include "includes.h" + + extern Uint32 average_loop_time; +-extern Uint32 game_start_time; + extern Uint32 total_play_time, total_frames_drawn; + extern float average_session_fps, current_fps; + diff --git a/games-arcade/epiar/files/epiar-0.5-paths.patch b/games-arcade/epiar/files/epiar-0.5-paths.patch new file mode 100644 index 000000000000..41266c7272b1 --- /dev/null +++ b/games-arcade/epiar/files/epiar-0.5-paths.patch @@ -0,0 +1,86 @@ +--- src/input/input.c ++++ src/input/input.c +@@ -240,7 +240,10 @@ + * + ******************************************************************************/ + int load_input_cfg(void) { +- FILE *fp = fopen("./.epiar-input.ecf", "rb"); ++ char filename[PATH_MAX]; ++ FILE *fp; ++ snprintf(filename, sizeof(filename), "%s/.epiar-input.ecf", getenv("HOME")); ++ fp = fopen(filename, "rb"); + + /* make sure all keys are enabled */ + unlock_keys(); +@@ -282,7 +285,7 @@ + } else { + float file_version = 0.0f; + /* read the file into the struct */ +- fp = fopen("./.epiar-input.ecf", "rb"); ++ fp = fopen(filename, "rb"); + + if (fp == NULL) { + fprintf(stdout, "Could not open \"./.epiar-input.ecf\" for reading, assuming default bindings.\n"); +@@ -472,10 +475,12 @@ + } + + void save_keybindings(void) { ++ char filename[PATH_MAX]; + float file_version = 0.2f; + FILE *fp; + +- fp = fopen("./.epiar-input.ecf", "wb"); ++ snprintf(filename, sizeof(filename), "%s/.epiar-input.ecf", getenv("HOME")); ++ fp = fopen(filename, "wb"); + if (fp == NULL) { + fprintf(stdout, "Could not create '~/.epiar-input.ecf' to save keybindings\n"); + return; +--- src/main.c ++++ src/main.c +@@ -16,7 +16,7 @@ + unsigned char view_mode = 0; + int ship_to_follow = 0; + int desired_bpp = 16; +-char *game_path; ++const char * const game_path = "GENTOO_DATADIR"; + unsigned char use_ogl = 0; + unsigned char skip_intro = 0; + FILE *epiar_eaf = NULL, *main_eaf = NULL; +@@ -78,8 +78,6 @@ + + parse_commandline(argc, argv); + +- get_absolute_path(argv[0]); +- + init(desired_bpp); + + menu(); +--- src/main.h ++++ src/main.h +@@ -1,2 +1,2 @@ + extern char epiar_version[6]; +-extern char *game_path; ++extern const char * const game_path; +--- src/system/init.c ++++ src/system/init.c +@@ -89,9 +89,6 @@ + main_eaf = NULL; + } + +- assert(game_path != NULL); +- free(game_path); +- game_path = NULL; + + if (average_loop_time == 0) average_loop_time = 18; /* in case they quit on menu */ + #ifndef NDEBUG +--- src/system/path.c ++++ src/system/path.c +@@ -45,7 +45,7 @@ + } + #endif + +-#ifdef LINUX ++#if 0 + char *strip_path_of_binary(char *argv) { + int len = 0, i, blen = 0; + char *stripped = NULL; diff --git a/games-arcade/epiar/files/epiar-0.5-underlink.patch b/games-arcade/epiar/files/epiar-0.5-underlink.patch new file mode 100644 index 000000000000..13146cb68b27 --- /dev/null +++ b/games-arcade/epiar/files/epiar-0.5-underlink.patch @@ -0,0 +1,10 @@ +--- Makefile.linux.old 2011-06-22 15:15:50.000000000 +0200 ++++ Makefile.linux 2011-06-22 15:17:01.000000000 +0200 +@@ -1,6 +1,6 @@ + CFLAGS=-W -Wall `sdl-config --cflags` -Isrc/ -DLINUX -DDEVEL -export-dynamic -I/usr/include/SDL -I/usr/local/include/SDL -DBLIT_METHOD_2 -DNAUDIO -O2 -march=pentium4 -pipe -mfpmath=sse -ggdb -Wl,-O1 -Wl,--as-needed + +-LIBS=-lm `sdl-config --libs` -lSDL_image ++LIBS=-lm `sdl-config --libs` -lSDL_image -ldl + STATIC_LIBS=-lm /usr/local/lib/libSDL.a /usr/local/lib/libSDL_image.a /usr/local/lib/libSDL_ttf.a /usr/local/lib/libopenal.a /usr/local/lib/libvorbisfile.a /usr/local/lib/libvorbis.a /usr/local/lib/libogg.a /usr/lib/libpng.a /usr/lib/libz.a -lpthread -ldl -lfreetype /usr/lib/libjpeg.a -lX11 -lXext -lesd + + OBJS=main.o init.o video.o backbuffer.o debug.o audio.o linux_video.o \ diff --git a/games-arcade/epiar/metadata.xml b/games-arcade/epiar/metadata.xml new file mode 100644 index 000000000000..9a42744eb0df --- /dev/null +++ b/games-arcade/epiar/metadata.xml @@ -0,0 +1,21 @@ + + + + + games@gentoo.org + Gentoo Games Project + + +Epiar is a space adventure/combat game written in C with SDL +(Simple DirectMedia Layer). It is absolutely free (released +under the General Public License v2). +In Epiar, you begin as a shuttle pilot in a galaxy generally +ruled by anarchy, with few stable governments and numerous +rebel factions. You start your adventure off doing whatever +you want, but generally trying to save up money for a new +starship, and your adventure takes off from there ... + + + epiar + + -- cgit v1.2.3