From 26bb54471ac2c096fef160d3eb68fbb3fd0eb9b6 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Mon, 16 Nov 2020 22:45:51 +0100 Subject: games-fps/nexuiz: correctly pass flags and compiler Closes: https://bugs.gentoo.org/739288 Closes: https://bugs.gentoo.org/710826 Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Alexey Sokolov Signed-off-by: David Seifert --- games-fps/nexuiz/nexuiz-2.5.2-r1.ebuild | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'games-fps/nexuiz') diff --git a/games-fps/nexuiz/nexuiz-2.5.2-r1.ebuild b/games-fps/nexuiz/nexuiz-2.5.2-r1.ebuild index 2778fcff0c04..e23daea87d60 100644 --- a/games-fps/nexuiz/nexuiz-2.5.2-r1.ebuild +++ b/games-fps/nexuiz/nexuiz-2.5.2-r1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 -inherit eutils +inherit eutils toolchain-funcs MY_PN=Nexuiz MY_P=${PN}-${PV//./} @@ -69,9 +69,8 @@ src_prepare() { # Make the game automatically look in the correct data directory sed -i \ - -e "/^CC=/d" \ - -e "s:-O2:${CFLAGS}:" \ - -e "/-lm/s:$: ${LDFLAGS}:" \ + -e 's:-O2:$(CFLAGS):' \ + -e '/-lm/s:$: $(LDFLAGS):' \ -e '/^STRIP/s/strip/true/' \ makefile.inc || die @@ -88,6 +87,7 @@ src_prepare() { } src_compile() { + tc-export CC if use opengl || ! use dedicated ; then emake cl-${PN} if use sdl ; then -- cgit v1.2.3-65-gdbad