From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BFFAD138359 for ; Sun, 15 Nov 2020 18:50:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0A737E0858; Sun, 15 Nov 2020 18:50:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D4BDEE0858 for ; Sun, 15 Nov 2020 18:50:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F2BC5340B9B for ; Sun, 15 Nov 2020 18:50:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 45AD9434 for ; Sun, 15 Nov 2020 18:50:06 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1605466173.7ff1adca02731a0f8dfe5b5e8f9a0a2e42efbc31.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-arcade/moleinvasion/, games-arcade/moleinvasion/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-arcade/moleinvasion/files/moleinvasion-0.4-fno-common.patch games-arcade/moleinvasion/moleinvasion-0.4-r2.ebuild X-VCS-Directories: games-arcade/moleinvasion/files/ games-arcade/moleinvasion/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: 7ff1adca02731a0f8dfe5b5e8f9a0a2e42efbc31 X-VCS-Branch: master Date: Sun, 15 Nov 2020 18:50:06 +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: 37c5c062-76fe-4329-bde7-6631ff73430e X-Archives-Hash: 94ee6d2c904891f03adcebf6ea1ebbef commit: 7ff1adca02731a0f8dfe5b5e8f9a0a2e42efbc31 Author: David Seifert gentoo org> AuthorDate: Sun Nov 15 18:49:33 2020 +0000 Commit: David Seifert gentoo org> CommitDate: Sun Nov 15 18:49:33 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ff1adca games-arcade/moleinvasion: Port to EAPI 7 Closes: https://bugs.gentoo.org/709502 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: David Seifert gentoo.org> .../files/moleinvasion-0.4-fno-common.patch | 11 +++++++ .../moleinvasion/moleinvasion-0.4-r2.ebuild | 37 +++++++++++++++------- 2 files changed, 36 insertions(+), 12 deletions(-) diff --git a/games-arcade/moleinvasion/files/moleinvasion-0.4-fno-common.patch b/games-arcade/moleinvasion/files/moleinvasion-0.4-fno-common.patch new file mode 100644 index 00000000000..3d183314879 --- /dev/null +++ b/games-arcade/moleinvasion/files/moleinvasion-0.4-fno-common.patch @@ -0,0 +1,11 @@ +--- a/worldmap.h ++++ b/worldmap.h +@@ -24,7 +24,7 @@ + void draw_level_name(int current_level,myList * all_level_desc); + + /* on stocke ici toutes les datas evoluant relatives au monde en cours */ +-#ifdef MAIN_WORLDMAP ++#ifndef MAIN_WORLDMAP + #define EXTERN_WLD extern + #else + #define EXTERN_WLD diff --git a/games-arcade/moleinvasion/moleinvasion-0.4-r2.ebuild b/games-arcade/moleinvasion/moleinvasion-0.4-r2.ebuild index 885dd1d1524..91e9e1aa5d0 100644 --- a/games-arcade/moleinvasion/moleinvasion-0.4-r2.ebuild +++ b/games-arcade/moleinvasion/moleinvasion-0.4-r2.ebuild @@ -1,12 +1,14 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 -inherit desktop +EAPI=7 + +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 +SRC_URI=" + ftp://download.tuxfamily.org/minvasion/packages/MoleInvasion-${PV}.tar.bz2 music? ( mirror://gentoo/${PN}-music-20090731.tar.gz )" LICENSE="GPL-2" @@ -14,19 +16,23 @@ SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="music" -DEPEND="media-libs/libsdl[opengl,video] - virtual/opengl +DEPEND=" + media-libs/libsdl[opengl,video] media-libs/sdl-image[jpeg,png] media-libs/sdl-mixer[vorbis] media-libs/sdl-ttf -" + virtual/opengl" RDEPEND="${DEPEND}" S="${WORKDIR}/${P}/src" src_prepare() { default - use music && mv -f "${WORKDIR}"/music ../ + + if use music; then + mv -f "${WORKDIR}"/music ../ || die + fi + sed -i \ -e '/^CFLAGS/s:= -g:+=:' \ -e '/^LDFLAGS/d' \ @@ -34,13 +40,20 @@ src_prepare() { -e "/^FINALDATADIR/s:/usr.*:/usr/share/${PN}:" \ Makefile || die "sed failed" - eapply "${FILESDIR}"/${P}-opengl.patch \ - "${FILESDIR}"/${P}-underlink.patch + eapply \ + "${FILESDIR}"/${P}-opengl.patch \ + "${FILESDIR}"/${P}-underlink.patch \ + "${FILESDIR}"/${P}-fno-common.patch +} + +src_configure() { + tc-export CC } src_install() { emake DESTDIR="${D}" install install-data - newicon ../gfx/icon.xpm ${PN}.xpm - make_desktop_entry ${PN} "Mole Invasion" doman ../debian/*.6 + + newicon ../gfx/icon.xpm moleinvasion.xpm + make_desktop_entry moleinvasion "Mole Invasion" }