public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-arcade/moleinvasion/files/, games-arcade/moleinvasion/
Date: Mon, 10 Feb 2025 08:50:04 +0000 (UTC)	[thread overview]
Message-ID: <1739177051.49361494f259c9d4e26e1d5daaa1b1567e6b6b0c.sam@gentoo> (raw)

commit:     49361494f259c9d4e26e1d5daaa1b1567e6b6b0c
Author:     Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org>
AuthorDate: Sun Feb  9 18:10:04 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> 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 <alexey+gentoo <AT> asokolov.org>
Signed-off-by: Sam James <sam <AT> 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"
+}


             reply	other threads:[~2025-02-10  8:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-10  8:50 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-04-22 19:40 [gentoo-commits] repo/gentoo:master commit in: games-arcade/moleinvasion/files/, games-arcade/moleinvasion/ Pacho Ramos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1739177051.49361494f259c9d4e26e1d5daaa1b1567e6b6b0c.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox