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-action/powermanga |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-action/powermanga')
10 files changed, 318 insertions, 0 deletions
diff --git a/games-action/powermanga/Manifest b/games-action/powermanga/Manifest new file mode 100644 index 000000000000..1b4b4978f7d9 --- /dev/null +++ b/games-action/powermanga/Manifest @@ -0,0 +1,13 @@ +AUX powermanga-0.91-automake-1.13.patch 235 SHA256 e0aee03ac7f683e2545e58e148a4ca35d32e70ec394792e56202bea07700a95f SHA512 acbef65ce595a0dcf597cb02e1f6c05d3d24a2e9bd3c61efbdceb796edcf9015623157533d7389789dd0bc5b719f9e095aad05a948cdf21804e8a424a9b63ed4 WHIRLPOOL 2b66eff41b7cf8df9889da0d7d5da7706e9e7c75afa4aa8727745c87100f3940bfed6b049e87ef6f1931a81da185435c8e28bb97389cb99a29800af54ff8601c +AUX powermanga-0.91-flags.patch 352 SHA256 18732d77eaa18d08973f66667048e899684f09b907b69403a2ba63eeaec62e44 SHA512 f10dd6d2c45c520085433a40085d79d48122870804283c309f317658f01238323d23075787751bab85bdde0a1d70c4d065fb7947c14a7bbe8e60e728503769e1 WHIRLPOOL bcee3f2147a4b79fdf85f4f1c79a43104a5814bbfa2640b1fcdb8211fbaa5c003ceedf8f62ae6d491d74f0f520a98021f1baac73c858309fcf3211ca56dbb348 +AUX powermanga-0.91-segfault.patch 877 SHA256 c7915dce8f27193fc398f2719d8f91885259086073ece3ebe2eba2955a7d205e SHA512 d9c8a3f02c528d2a18003818495e62996cb7884961427db6e4cf45f5cf4f0af052a24d097569c203bccb2e434b35baa9ea9cae22463e17ec7a39734df158fe0d WHIRLPOOL 8c3b4256d31e2b375691c7716afa7ca7b91a0c6793594511b80cd2f7ad734b9771d911eb263cdb6cdc10c76d25296f6e16346c460921c5cafdd80d5185398416 +AUX powermanga-0.91-underlink.patch 647 SHA256 bf57b08064282223389ef931be351ffc513371c895952bfa7f3e96c2caae1db5 SHA512 782f3833c11c83fb2549b9c9f616d6fd0b8f4cb177ebc0247e1f2457d62204269d829eae428017e17caafb44682673c17cb6387d075b5f8df02244f2fe351280 WHIRLPOOL 17f020997ef113d2fda277b82a841a0c35bc620b719e2c2e577adc91e7d9342e6a0e7b1e00f63d48d1623b8a7d253abdc9fdbc37412f81b9561497c6a3d0dfe0 +AUX powermanga-0.93.1-flags.patch 394 SHA256 2045e8f7ce04a9498dd83dd9f37ed48d6046e4170825e3ec379a20d5dbb02df9 SHA512 16cb19ea59cd632b7d9c7b2b61f74e664e81160d9bfd25604613057e2dd08d84e112cb355a0e18e76069fcf2693bffb381ce467f8d86218850659cb6ce5bd756 WHIRLPOOL 4d44084f4742759dc09816c4786afeccb4a8c372b62aad2035557bfe6f786addf9987bd2947fd1e5906f1d97c4556ed2440d416af44134c17c31f4735021f53e +DIST powermanga-0.91.tgz 11114130 SHA256 b4830169682fecf4237d169a62a2d8fbf1a42ee66e811f7f60fa1b9a725ee9b3 SHA512 8c261d8802d8ac6c39910be56442c12fc7028c9677f0df0d975feb9bb38707c6886e06d9e14b45980a3805191b63a38e2c0d91833f4272f3f657f6dbc7b79452 WHIRLPOOL 9e150678e766377c0765cccf75c46411cdb17bb71ac05ba85970a3db71d3b94dad3d1005c4706685227cba5943cf30fa381ae0a443bf955a460d71ddc72dba93 +DIST powermanga-0.93.1.tgz 11855703 SHA256 da753fce83905a6db3fd8ea65c70c57d662362c86c429d6c6954417144f943e8 SHA512 852c0b4550db6c9e4ecd380077d390327f6649b6e8ab4cad246f23e7335e8622008f9fc753e2f474bf9cf7a5654b071e3f117f6a2b5be72ea53709912f4a0f41 WHIRLPOOL 856aa00fdd2a178530dd12750c514486982e02c004f00d8cc50adcfcdf9064ed76aae217a597ff21240f2054382ed5e7f169d46b9f6c490664e4f6b20d987bc0 +EBUILD powermanga-0.91.ebuild 1813 SHA256 1b5cdc11c42c9f5f4139e67f23a40959a964c926f63cd9824b1737cff38308ac SHA512 8fc95c4b340aa2bf1a1a2b087c2b93330c5b0b0675599c65fb4a373c3a0b4502a58dbb4949752c94a23b9057437b91809016ffd557edf52a8291df83f21ba3f6 WHIRLPOOL 77215d7682aa93d7e5623c1b92d175c8097886b93cffca28b90cdc24afd8dfe59ccef69de4ae909be8d15eb9215610d6520d9f460efce3418b5a12efc2f5d2fb +EBUILD powermanga-0.93.1-r1.ebuild 1623 SHA256 271f07dfd3e18ad86c47e2ccee6d4a02526cd48a29e8da6cd9767da2c34009a9 SHA512 097b59d1286f4f44dd8afe51ea9dbb3b4f511e63eefba71784a06353dcabe764870657f5630115c1c5bdfe213b9c1c402d0e934125ce91b19b3957402636ebf6 WHIRLPOOL 9202adf89fec906d38ee6f193dfc11540e70cf64e71b40f6cab9bcb72795a22a1d681f337c0f6bdd4d726ae4c995f76bc8a2908e5ce54d16142adc73db9a78f7 +EBUILD powermanga-0.93.1.ebuild 1687 SHA256 553402d062c1878969d656b35391b108e2ae1df90a2bed99390ea7bfaed49710 SHA512 2d8cfd3937f9ea534f167da0cf8c4908e2de5e81e1fc032f221b3fcdd4cc8bf994ddd5e1ff846891cd5e686574d16d6e88dbb618f37c4b9230ea6f78484aad3b WHIRLPOOL 404aff181bf0d2f265169c03b21bc823807da4e34f77f58b5d29d6fb9cda28e9028efca2b534a96060fdd1861d5442c277d41a222605cc54f9515680537f70e4 +MISC ChangeLog 3632 SHA256 cd52865306356ce0c5653a420e6b1671476318247fd154a8c8198b60a9e047c8 SHA512 f88ca8966d8d0dafd5857ab255759c0757830a1968b83b29f1a3e9d4a2f17bb5f1db660324942fe404d409237d13afeed60f04ab2691f67d833ef78ef96ceaf0 WHIRLPOOL 540c4d6818b0abda15e1280d9839855e67d16eda7ef673567248f30604820cffb085633f853d94634a975182b1a4a8f54ed9a62aecec976d1f05725fcb304cc2 +MISC ChangeLog-2015 5902 SHA256 a3e14af78bdefdef86cd5e2d7f05eb6e4447619c3e8ac73cb55dd12e3ef94059 SHA512 41b2004c42b3b8190c4344701ece0558c9a391a475b0fc43ccbc49e10a4c76d2b3b7ce71aff8c31f368a3579fe1770e5900e6ebce9a611849a87a7f065fffbe3 WHIRLPOOL 909cd09dc8ec647f3e4cd1c7e3b8518ded106ead95fa6888dc39e543b87f3bb4f0230f323921dc5fa535d58713ba463e2035cd54b1d4eae6a2615c2069c6f302 +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-action/powermanga/files/powermanga-0.91-automake-1.13.patch b/games-action/powermanga/files/powermanga-0.91-automake-1.13.patch new file mode 100644 index 000000000000..bac18db0f4c9 --- /dev/null +++ b/games-action/powermanga/files/powermanga-0.91-automake-1.13.patch @@ -0,0 +1,11 @@ +--- configure.ac ++++ configure.ac +@@ -5,7 +5,7 @@ + AC_CANONICAL_SYSTEM + #AM_INIT_AUTOMAKE(powermanga,0.90) + AM_INIT_AUTOMAKE([foreign]) +-AM_CONFIG_HEADER(config.h) ++AC_CONFIG_HEADERS(config.h) + + dnl Check our build tools + AC_PROG_CC diff --git a/games-action/powermanga/files/powermanga-0.91-flags.patch b/games-action/powermanga/files/powermanga-0.91-flags.patch new file mode 100644 index 000000000000..ca665add06cc --- /dev/null +++ b/games-action/powermanga/files/powermanga-0.91-flags.patch @@ -0,0 +1,11 @@ +--- powermanga-0.91/configure.ac ++++ powermanga-0.91/configure.ac +@@ -54,7 +54,7 @@ + AC_DEFINE(USE_MALLOC_WRAPPER, 1, Define to use a malloc wrapper) + CFLAGS="-Wall -Werror -pedantic -Wextra -std=gnu99 -g" + else +- CFLAGS="-O3 -Werror -Wall -pedantic -Wextra -std=gnu99" ++ CFLAGS="$CFLAGS -Wall -Wextra -std=gnu99" + fi + + dnl Check for SDL_mixer diff --git a/games-action/powermanga/files/powermanga-0.91-segfault.patch b/games-action/powermanga/files/powermanga-0.91-segfault.patch new file mode 100644 index 000000000000..2b6d177373de --- /dev/null +++ b/games-action/powermanga/files/powermanga-0.91-segfault.patch @@ -0,0 +1,22 @@ +https://bugs.gentoo.org/show_bug.cgi?id=422915 + +--- src/shots.c ++++ src/shots.c +@@ -490,8 +490,6 @@ + { + bullet->img_angle = (Sint16) (bullet->angle / PI_BY_16); + } +- /* save current angle for the calculation of the next angle */ +- bullet->img_old_angle = bullet->img_angle; + /* avoid negative indexes */ + bullet->img_angle = (Sint16) abs (bullet->img_angle); + /* avoid a shot angle higher than the number of images */ +@@ -499,6 +497,8 @@ + { + bullet->img_angle = (Sint16) (bullet->spr.numof_images - 1); + } ++ /* save current angle for the calculation of the next angle */ ++ bullet->img_old_angle = bullet->img_angle; + /* draw the shot sprite */ + draw_sprite (bullet->spr.img[bullet->img_angle], + (Uint32) bullet->spr.xcoord, diff --git a/games-action/powermanga/files/powermanga-0.91-underlink.patch b/games-action/powermanga/files/powermanga-0.91-underlink.patch new file mode 100644 index 000000000000..bb6f832cbd4c --- /dev/null +++ b/games-action/powermanga/files/powermanga-0.91-underlink.patch @@ -0,0 +1,21 @@ +--- src/Makefile.am.old ++++ src/Makefile.am +@@ -8,7 +8,7 @@ + powermanga_CFLAGS = -DPREFIX=\"$(prefix)\" \ + -DSCOREFILE=\"$(scoredir)/$(score)\" \ + @XLIB_CFLAGS@ @SDL_CFLAGS@ +-powermanga_LDADD = @XLIB_LIBS@ @SDL_LIBS@ ++powermanga_LDADD = @XLIB_LIBS@ @SDL_LIBS@ -lm + + install-data-hook: + -chown root:games "$(DESTDIR)/$(gamesdir)/powermanga" +--- src/images.c ++++ src/images.c +@@ -31,6 +31,7 @@ + #include "display.h" + #include "images.h" + #include "log_recorder.h" ++#include <zlib.h> + + static char *bitmap_read (bitmap * bmp, Uint32 num_of_obj, + Uint32 num_of_images, char *addr, diff --git a/games-action/powermanga/files/powermanga-0.93.1-flags.patch b/games-action/powermanga/files/powermanga-0.93.1-flags.patch new file mode 100644 index 000000000000..e8a013a2e04e --- /dev/null +++ b/games-action/powermanga/files/powermanga-0.93.1-flags.patch @@ -0,0 +1,11 @@ +--- a/configure.ac 2015-07-12 17:31:49.673817375 -0400 ++++ b/configure.ac 2015-07-12 17:32:18.567700880 -0400 +@@ -54,7 +54,7 @@ + AC_DEFINE(USE_MALLOC_WRAPPER, 1, Define to use a malloc wrapper) + CFLAGS="-Wall -Werror -pedantic -Wextra -std=gnu99 -g $CFLAGS" + else +- CFLAGS="-O3 -Wall -Wextra -std=gnu99 $CFLAGS" ++ CFLAGS="$CFLAGS -Wall -Wextra -std=gnu99" + fi + + dnl Check for SDL_mixer diff --git a/games-action/powermanga/metadata.xml b/games-action/powermanga/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-action/powermanga/metadata.xml @@ -0,0 +1,8 @@ +<?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> +</pkgmetadata> diff --git a/games-action/powermanga/powermanga-0.91.ebuild b/games-action/powermanga/powermanga-0.91.ebuild new file mode 100644 index 000000000000..777d44c0a3e2 --- /dev/null +++ b/games-action/powermanga/powermanga-0.91.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils autotools games + +DESCRIPTION="An arcade 2D shoot-em-up game" +HOMEPAGE="http://linux.tlk.fr/" +SRC_URI="http://linux.tlk.fr/games/Powermanga/download/${P}.tgz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND=">=media-libs/libsdl-1.2[sound,joystick,video] + media-libs/libpng:0 + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXxf86dga + media-libs/sdl-mixer[mod]" +DEPEND="${RDEPEND}" + +src_prepare() { + local f + for f in src/assembler.S src/assembler_opt.S ; do + einfo "patching $f" + cat <<-EOF >> ${f} + #if defined(__linux__) && defined(__ELF__) + .section .note.GNU-stack,"",%progbits + #endif + EOF + done + epatch \ + "${FILESDIR}"/${P}-underlink.patch \ + "${FILESDIR}"/${P}-segfault.patch \ + "${FILESDIR}"/${P}-flags.patch \ + "${FILESDIR}"/${P}-automake-1.13.patch + sed -i \ + -e "/scoredir/s#/var/games/powermanga#${GAMES_STATEDIR}#" \ + src/Makefile.am || die + eautoreconf +} + +src_configure() { + egamesconf --prefix=/usr +} + +src_install() { + newgamesbin src/powermanga powermanga.bin + doman powermanga.6 + dodoc AUTHORS CHANGES README + + insinto "${GAMES_DATADIR}/powermanga" + doins -r data sounds graphics texts + + find "${D}${GAMES_DATADIR}/powermanga/" -name "Makefil*" -execdir rm -f \{\} + + + insinto "${GAMES_STATEDIR}" + local f + for f in powermanga.hi-easy powermanga.hi powermanga.hi-hard ; do + touch "${D}${GAMES_STATEDIR}/${f}" || die + fperms 660 "${GAMES_STATEDIR}/${f}" + done + + games_make_wrapper powermanga powermanga.bin "${GAMES_DATADIR}/powermanga" + make_desktop_entry powermanga Powermanga + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + ewarn "NOTE: The highscore file format has changed." + ewarn "Older highscores will not be retained." +} diff --git a/games-action/powermanga/powermanga-0.93.1-r1.ebuild b/games-action/powermanga/powermanga-0.93.1-r1.ebuild new file mode 100644 index 000000000000..01a45a6d43cd --- /dev/null +++ b/games-action/powermanga/powermanga-0.93.1-r1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils autotools user + +DESCRIPTION="An arcade 2D shoot-em-up game" +HOMEPAGE="http://linux.tlk.fr/" +SRC_URI="http://linux.tlk.fr/games/Powermanga/download/${P}.tgz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=media-libs/libsdl-1.2[sound,joystick,video] + media-libs/libpng:0 + media-libs/sdl-mixer[mod] + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXxf86dga" +DEPEND=${RDEPEND} + +PATCHES=( + "${FILESDIR}"/${P}-flags.patch +) + +pkg_setup(){ + enewgroup gamestat 36 +} + +src_prepare() { + default + + local f + for f in src/assembler.S src/assembler_opt.S ; do + einfo "patching $f" + cat <<-EOF >> ${f} + #if defined(__linux__) && defined(__ELF__) + .section .note.GNU-stack,"",%progbits + #endif + EOF + done + eautoreconf +} + +src_install() { + newbin src/powermanga powermanga.bin + doman powermanga.6 + dodoc AUTHORS CHANGES README + + insinto "/usr/share/${PN}" + doins -r data sounds graphics texts + + find "${D}/usr/share/${PN}" -name "Makefil*" -execdir rm -f \{\} + + + dodir "/var/games/${PN}" + fowners root:gamestat /var/games/${PN} /usr/bin/${PN}.bin + fperms 660 /var/games/${PN} + fperms 2755 /usr/bin/${PN}.bin + + local f + for f in powermanga.hi-easy powermanga.hi powermanga.hi-hard ; do + touch "${D}/var/games/${f}" || die + fperms 660 "/var/games/${f}" + done + + make_wrapper powermanga powermanga.bin "/usr/share/${PN}" + make_desktop_entry powermanga Powermanga +} + +pkg_postinst() { + ewarn "NOTE: The highscore file format has changed." + ewarn "Older highscores will not be retained." +} diff --git a/games-action/powermanga/powermanga-0.93.1.ebuild b/games-action/powermanga/powermanga-0.93.1.ebuild new file mode 100644 index 000000000000..52aa04caee1a --- /dev/null +++ b/games-action/powermanga/powermanga-0.93.1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils autotools games + +DESCRIPTION="An arcade 2D shoot-em-up game" +HOMEPAGE="http://linux.tlk.fr/" +SRC_URI="http://linux.tlk.fr/games/Powermanga/download/${P}.tgz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND=">=media-libs/libsdl-1.2[sound,joystick,video] + media-libs/libpng:0 + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXxf86dga + media-libs/sdl-mixer[mod]" +DEPEND=${RDEPEND} + +src_prepare() { + local f + for f in src/assembler.S src/assembler_opt.S ; do + einfo "patching $f" + cat <<-EOF >> ${f} + #if defined(__linux__) && defined(__ELF__) + .section .note.GNU-stack,"",%progbits + #endif + EOF + done + epatch "${FILESDIR}"/${P}-flags.patch + sed -i \ + -e "/scoredir/s#/var/games/powermanga#${GAMES_STATEDIR}#" \ + src/Makefile.am || die + eautoreconf +} + +src_configure() { + egamesconf --prefix=/usr +} + +src_install() { + newgamesbin src/powermanga powermanga.bin + doman powermanga.6 + dodoc AUTHORS CHANGES README + + insinto "${GAMES_DATADIR}/powermanga" + doins -r data sounds graphics texts + + find "${D}${GAMES_DATADIR}/powermanga/" -name "Makefil*" -execdir rm -f \{\} + + + insinto "${GAMES_STATEDIR}" + local f + for f in powermanga.hi-easy powermanga.hi powermanga.hi-hard ; do + touch "${D}${GAMES_STATEDIR}/${f}" || die + fperms 660 "${GAMES_STATEDIR}/${f}" + done + + games_make_wrapper powermanga powermanga.bin "${GAMES_DATADIR}/powermanga" + make_desktop_entry powermanga Powermanga + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + ewarn "NOTE: The highscore file format has changed." + ewarn "Older highscores will not be retained." +} |