commit:     32068cf7204c8310cc646c916b2a0128becb79fd
Author:     Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Tue Nov 19 09:47:53 2019 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Tue Nov 19 23:27:38 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32068cf7

games-simulation/micropolis: fix eclass usage, don't call gcc directly

Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/13703
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 games-simulation/micropolis/micropolis-1.0-r2.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/games-simulation/micropolis/micropolis-1.0-r2.ebuild 
b/games-simulation/micropolis/micropolis-1.0-r2.ebuild
index 185b1d35b1f..c329f78b081 100644
--- a/games-simulation/micropolis/micropolis-1.0-r2.ebuild
+++ b/games-simulation/micropolis/micropolis-1.0-r2.ebuild
@@ -2,7 +2,8 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit eutils
+
+inherit desktop eutils toolchain-funcs
 
 DESCRIPTION="Free version of the well-known city building simulation"
 HOMEPAGE="http://www.donhopkins.com/home/micropolis/";
@@ -43,7 +44,7 @@ src_prepare() {
 }
 
 src_compile() {
-       emake -C src LDFLAGS="${LDFLAGS}"
+       emake -C src LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)"
 }
 
 src_install() {

Reply via email to