From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- games-arcade/epiar/Manifest | 7 ++ 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, 204 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..e037d2973025 --- /dev/null +++ b/games-arcade/epiar/Manifest @@ -0,0 +1,7 @@ +AUX epiar-0.5-Makefile.linux.patch 682 BLAKE2B 0794a07f1f4beef8b16e8fc720930cabe3db40941be39c0ed3d1ef66b4a24bab68f9aeb6961b4a4429d4de7fc12dc395dbf7e34c7caf887aedee0cf7af94e584 SHA512 5219be09af0443a780d918306086f9c7792a9fd6e7051806c368db6808017ee9c2897b4093664f9c087e3fe987b22edeb50280f25f615cdbfcdf914c1cf4be47 +AUX epiar-0.5-gcc41.patch 332 BLAKE2B c3d34f29b2d9186d0f6ac14b14bb40e63578764f613b74bd670266dda3885c4542e48e3e95b06a668e01fccc9630a9d0e46f1918f1dda37e1e78840ca890dfb7 SHA512 29de0155e37696c1f2f66060aa6b08d01df13bcf36e2fc20a803bf664bd7a326d4ec70141376305771d2c188e67ddd32d19d5a864c3a8c9c7c5ea329a6e19060 +AUX epiar-0.5-paths.patch 2195 BLAKE2B 995f1d0a39b72be7e1e542a6e799b5d644d62cdb2ad1710f44bc73a82310c148b54113254c4502f499fceaada0aadb5944ec5d370b3ca79c72b208d6197e4c20 SHA512 4f6068f69b6f2367bbc665159f2612da86591d050e5296304b26d613c6579465c632a442251033fdb7803e6cb72c8f70e6118e8c1d43d33f0376863b91ebd037 +AUX epiar-0.5-underlink.patch 818 BLAKE2B 9ab04018e1051d905674b53154e4297be50e1954a79c28f7e70fd47381f9dcd4b452385d05dc38ad2cd117bb4b6b06d9d95727d61fdaf483f4d3940a2c8f6028 SHA512 ada142afdd3de71af454bd1a03c8c406d609deeff7a68a84b7066089761bebcb01dae8e69f7fccbd0cf4f0294789696e1181900c30f857c8b5197c24bab51b2a +DIST epiar-0.5.0-src.zip 8809392 BLAKE2B c29c541f5841da91d13f7ccddfa2d2175265a434ae03e2ed87a64cd5c177d7139ff2cf44ec679ec023fe783427868f0f234c6f5f49d0d52ab08be852d424ba59 SHA512 22d8655aefd3aa071de064aeeed40d8780fb32ee702e657c8b8a723c381b6825ae9b5820cf5b29991e14bc264c443d0b24f88656b4997a6270383aa080c15f3e +EBUILD epiar-0.5-r1.ebuild 1063 BLAKE2B 283af179cfd95d7afe7eefca643cdb6662563e2fbed24ee437033f1c90f3ee1823e6b9bc4b9d669488f290d3b89cdc1637219873ba6436dabcf1b2b9821972be SHA512 2c81c4665ee0df32f8ec9d5aea824760b2f8328315245d8953e460fac7369a3eebfc615acd5c708dc8f4806f4c05b4145eb0dceae9cefd2568d137138c84e167 +MISC metadata.xml 823 BLAKE2B 4ad0d0b974bd58a1d1edd77eb201fa2e236eb6b7a1efee030c8f106a6a016f3ecbf3de213b162a9d0f52d0e0751c4c3905acdaab4cd2d24292c6425620f7c88b SHA512 ef154f46f533f6b255bac62dcdffb84833fee98135e714b9a6b546a9128c3d3be0e7cfe7721ce1ccf302019b414ef1edb4ba92cc43b7024be6881a3cb0d6dffb 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..7ddbc3d9c668 --- /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