From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B10BB1582EF for ; Mon, 10 Feb 2025 08:50:07 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id A163A3430D4 for ; Mon, 10 Feb 2025 08:50:07 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 539D21103CB; Mon, 10 Feb 2025 08:50:06 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 48C8D1103CB for ; Mon, 10 Feb 2025 08:50:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F0F043430B1 for ; Mon, 10 Feb 2025 08:50:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5D11D272D for ; Mon, 10 Feb 2025 08:50:04 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1739177051.49361494f259c9d4e26e1d5daaa1b1567e6b6b0c.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-arcade/moleinvasion/files/, games-arcade/moleinvasion/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-arcade/moleinvasion/files/moleinvasion-0.4-gcc14.patch games-arcade/moleinvasion/moleinvasion-0.4-r4.ebuild X-VCS-Directories: games-arcade/moleinvasion/files/ games-arcade/moleinvasion/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 49361494f259c9d4e26e1d5daaa1b1567e6b6b0c X-VCS-Branch: master Date: Mon, 10 Feb 2025 08:50:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 203dfec2-5e09-453f-8a3a-8b510f995016 X-Archives-Hash: 53c6043d50ff0981299ed4c641c5e12b commit: 49361494f259c9d4e26e1d5daaa1b1567e6b6b0c Author: Alexey Sokolov asokolov org> AuthorDate: Sun Feb 9 18:10:04 2025 +0000 Commit: Sam James gentoo org> CommitDate: Mon Feb 10 08:44:11 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49361494 games-arcade/moleinvasion: update EAPI 7 -> 8, fix build Closes: https://bugs.gentoo.org/881347 Signed-off-by: Alexey Sokolov asokolov.org> Signed-off-by: Sam James gentoo.org> .../files/moleinvasion-0.4-gcc14.patch | 29 +++++++++++ .../moleinvasion/moleinvasion-0.4-r4.ebuild | 60 ++++++++++++++++++++++ 2 files changed, 89 insertions(+) diff --git a/games-arcade/moleinvasion/files/moleinvasion-0.4-gcc14.patch b/games-arcade/moleinvasion/files/moleinvasion-0.4-gcc14.patch new file mode 100644 index 000000000000..63734f6ef711 --- /dev/null +++ b/games-arcade/moleinvasion/files/moleinvasion-0.4-gcc14.patch @@ -0,0 +1,29 @@ +--- a/editor.c ++++ b/editor.c +@@ -98,7 +98,7 @@ void init() + level_tab=InitList(); + } + +-void perform_mouse_motion(mousex,mousey) ++void perform_mouse_motion(int mousex,int mousey) + { int x,y; + static SDL_Surface* rubber=NULL; + mySprite *sprite; +@@ -134,7 +134,7 @@ void perform_mouse_motion(mousex,mousey) + displaySprite(disp_sprite,g_SDL_screen,0,0); + } + +-void perform_mouse_add(mousex,mousey) ++void perform_mouse_add(int mousex,int mousey) + { int x,y; + mySprite *sprite; + mySprite disp_sprite; +@@ -174,7 +174,7 @@ void perform_mouse_add(mousex,mousey) + AddToList(level_tab,&disp_sprite,sizeof(mySprite)); + } + +-void perform_mouse_del(mousex,mousey) ++void perform_mouse_del(int mousex,int mousey) + { int x,y; + mySprite *sprite; + unsigned int i; diff --git a/games-arcade/moleinvasion/moleinvasion-0.4-r4.ebuild b/games-arcade/moleinvasion/moleinvasion-0.4-r4.ebuild new file mode 100644 index 000000000000..119469eb29a2 --- /dev/null +++ b/games-arcade/moleinvasion/moleinvasion-0.4-r4.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop toolchain-funcs + +DESCRIPTION="Mole infested 2D platform game" +HOMEPAGE="http://moleinvasion.tuxfamily.org/" +SRC_URI=" + ftp://download.tuxfamily.org/minvasion/packages/MoleInvasion-${PV}.tar.bz2 + music? ( mirror://gentoo/${PN}-music-20090731.tar.gz )" +S="${WORKDIR}/${P}/src" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="music" + +DEPEND=" + media-libs/libsdl[joystick,opengl,video] + media-libs/sdl-image[jpeg,png] + media-libs/sdl-mixer[vorbis] + media-libs/sdl-ttf + virtual/opengl" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-opengl.patch + "${FILESDIR}"/${P}-underlink.patch + "${FILESDIR}"/${P}-fno-common.patch + "${FILESDIR}"/${P}-gcc14.patch +) + +src_prepare() { + default + + if use music; then + mv -f "${WORKDIR}"/music ../ || die + fi + + sed -i \ + -e '/^CFLAGS/s:= -g:+=:' \ + -e '/^LDFLAGS/d' \ + -e "/^FINALEXEDIR/s:/usr.*:/usr/bin:" \ + -e "/^FINALDATADIR/s:/usr.*:/usr/share/${PN}:" \ + Makefile || die "sed failed" +} + +src_configure() { + tc-export CC +} + +src_install() { + emake DESTDIR="${D}" install install-data + doman ../debian/*.6 + + newicon ../gfx/icon.xpm moleinvasion.xpm + make_desktop_entry moleinvasion "Mole Invasion" +}