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 4304213835A for ; Sun, 6 Sep 2020 21:00:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 47425E08BF; Sun, 6 Sep 2020 21:00:22 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 2333FE08BF for ; Sun, 6 Sep 2020 21:00:22 +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 9AFAA340C3E for ; Sun, 6 Sep 2020 21:00:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 24DC3347 for ; Sun, 6 Sep 2020 21:00:19 +0000 (UTC) From: "James Le Cuirot" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "James Le Cuirot" Message-ID: <1599425998.9030205024d99b280b5dfb35de5e5ee173d511ee.chewi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-puzzle/gnurobbo/, games-puzzle/gnurobbo/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-puzzle/gnurobbo/files/gnurobbo-0.68-cflags-d.patch games-puzzle/gnurobbo/files/gnurobbo-0.68-flags.patch games-puzzle/gnurobbo/gnurobbo-0.68.ebuild X-VCS-Directories: games-puzzle/gnurobbo/files/ games-puzzle/gnurobbo/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 9030205024d99b280b5dfb35de5e5ee173d511ee X-VCS-Branch: master Date: Sun, 6 Sep 2020 21:00:19 +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: 0e90b6ea-f8b9-4674-b267-60d6d24658a4 X-Archives-Hash: dad4c82cd0491d1be9a148b279506d8b commit: 9030205024d99b280b5dfb35de5e5ee173d511ee Author: James Le Cuirot gentoo org> AuthorDate: Sun Sep 6 20:56:39 2020 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Sun Sep 6 20:59:58 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90302050 games-puzzle/gnurobbo: Respect CC and LDFLAGS, use pkg-config Package-Manager: Portage-3.0.5, Repoman-3.0.1 Signed-off-by: James Le Cuirot gentoo.org> .../gnurobbo/files/gnurobbo-0.68-cflags-d.patch | 14 -------------- .../gnurobbo/files/gnurobbo-0.68-flags.patch | 22 ++++++++++++++++++++++ games-puzzle/gnurobbo/gnurobbo-0.68.ebuild | 6 ++++-- 3 files changed, 26 insertions(+), 16 deletions(-) diff --git a/games-puzzle/gnurobbo/files/gnurobbo-0.68-cflags-d.patch b/games-puzzle/gnurobbo/files/gnurobbo-0.68-cflags-d.patch deleted file mode 100644 index 84a7567a788..00000000000 --- a/games-puzzle/gnurobbo/files/gnurobbo-0.68-cflags-d.patch +++ /dev/null @@ -1,14 +0,0 @@ -Description: Drop -d which causes an error with GCC 7 -Author: Stephen Kitt - ---- a/Makefile -+++ b/Makefile -@@ -61,7 +61,7 @@ - - - --CFLAGS+=-d -Wall `$(SDL_CONFIG) --cflags` -DPLATFORM_PC -DVERSION=\"$(VERSION)\" $(SMOOTH_SCRL) $(LIGHTNING)\ -+CFLAGS+=-Wall `$(SDL_CONFIG) --cflags` -DPLATFORM_PC -DVERSION=\"$(VERSION)\" $(SMOOTH_SCRL) $(LIGHTNING)\ - -DPACKAGE_DATA_DIR=\"$(PACKAGE_DATA_DIR)\" $(FONT_USE_PIXMAP) $(MUSIC) $(DESIGNER) - LDFLAGS?= - # Use these instead for debugging and/or profiling (mainly intended for GNU Robbo developers) diff --git a/games-puzzle/gnurobbo/files/gnurobbo-0.68-flags.patch b/games-puzzle/gnurobbo/files/gnurobbo-0.68-flags.patch new file mode 100644 index 00000000000..2a0f63ce880 --- /dev/null +++ b/games-puzzle/gnurobbo/files/gnurobbo-0.68-flags.patch @@ -0,0 +1,22 @@ +diff --color -Naur a/Makefile b/Makefile +--- a/Makefile 2015-08-26 21:35:29.000000000 +0100 ++++ b/Makefile 2020-09-06 21:54:50.074658932 +0100 +@@ -61,16 +61,15 @@ + + + +-CFLAGS+=-d -Wall `$(SDL_CONFIG) --cflags` -DPLATFORM_PC -DVERSION=\"$(VERSION)\" $(SMOOTH_SCRL) $(LIGHTNING)\ ++CFLAGS+=-Wall `$(PKG_CONFIG) --cflags sdl SDL_image SDL_mixer SDL_ttf` -DPLATFORM_PC -DVERSION=\"$(VERSION)\" $(SMOOTH_SCRL) $(LIGHTNING)\ + -DPACKAGE_DATA_DIR=\"$(PACKAGE_DATA_DIR)\" $(FONT_USE_PIXMAP) $(MUSIC) $(DESIGNER) +-LDFLAGS= + # Use these instead for debugging and/or profiling (mainly intended for GNU Robbo developers) + #CFLAGS?=-O0 -pipe -g -pg + #CFLAGS+=-Wall `$(SDL_CONFIG) --cflags` -DPLATFORM_PC -DVERSION=\"$(VERSION)\" \ + # -DPACKAGE_DATA_DIR=\"$(PACKAGE_DATA_DIR)\" $(FONT_USE_PIXMAP) $(MUSIC) $(DESIGNER) + #LDFLAGS=-pg + LINK=$(CC) +-LIBS=`$(SDL_CONFIG) --libs` -lm -lSDL_image -lSDL_mixer $(FONT_USE_SDL_TTF) ++LIBS=`$(PKG_CONFIG) --libs sdl SDL_image SDL_mixer SDL_ttf` -lm + + #for caanoo compilation + #LIBS=-L$(GPH_SDK)/DGE/lib/target -L$(GPH_SDK)/lib/target -lSDL_image -lSDL_mixer $(FONT_USE_SDL_TTF) diff --git a/games-puzzle/gnurobbo/gnurobbo-0.68.ebuild b/games-puzzle/gnurobbo/gnurobbo-0.68.ebuild index 1f142c1ff64..fded8903934 100644 --- a/games-puzzle/gnurobbo/gnurobbo-0.68.ebuild +++ b/games-puzzle/gnurobbo/gnurobbo-0.68.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit desktop +inherit desktop toolchain-funcs DESCRIPTION="Robbo, a popular Atari XE/XL game ported to Linux" HOMEPAGE="http://gnurobbo.sourceforge.net/" @@ -26,12 +26,14 @@ RDEPEND=" DEPEND="${RDEPEND}" PATCHES=( - "${FILESDIR}/${P}-cflags-d.patch" + "${FILESDIR}/${P}-flags.patch" "${DISTDIR}/${P}-single-variable-declarations.patch" ) src_compile() { emake \ + CC="$(tc-getCC)" \ + PKG_CONFIG="$(tc-getPKG_CONFIG)" \ PACKAGE_DATA_DIR="${EPREFIX}/usr/share/${PN}" }