Gentoo Archives: gentoo-commits

From: Theo Anderson <telans@××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: games-board/rmahjong/
Date: Sat, 24 Apr 2021 23:19:58
Message-Id: 1619260354.fbbfb65d28b9e7889b4615973cdc886787798561.telans@gentoo
1 commit: fbbfb65d28b9e7889b4615973cdc886787798561
2 Author: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
3 AuthorDate: Sat Apr 24 10:32:34 2021 +0000
4 Commit: Theo Anderson <telans <AT> posteo <DOT> de>
5 CommitDate: Sat Apr 24 10:32:34 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fbbfb65d
7
8 games-board/rmahjong: fix pass system CC and CFLAGS
9
10 Closes: https://bugs.gentoo.org/785019
11 Closes: https://bugs.gentoo.org/780966
12
13 Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru>
14
15 games-board/rmahjong/rmahjong-0.4_p20201106.ebuild | 6 +++++-
16 1 file changed, 5 insertions(+), 1 deletion(-)
17
18 diff --git a/games-board/rmahjong/rmahjong-0.4_p20201106.ebuild b/games-board/rmahjong/rmahjong-0.4_p20201106.ebuild
19 index a8a3e6da8..c05893d27 100644
20 --- a/games-board/rmahjong/rmahjong-0.4_p20201106.ebuild
21 +++ b/games-board/rmahjong/rmahjong-0.4_p20201106.ebuild
22 @@ -5,7 +5,7 @@ EAPI=7
23
24 PYTHON_COMPAT=( python3_{7..9} )
25
26 -inherit desktop python-single-r1 xdg
27 +inherit desktop python-single-r1 toolchain-funcs xdg
28
29 # Tarball from py3 port branch:
30 # https://github.com/spirali/rmahjong/tree/py3
31 @@ -48,6 +48,10 @@ src_prepare(){
32 sed -i "/logging.info/d" "${S}/server/server.py" || die
33
34 echo $'#!/bin/sh\ncd '"$(python_get_sitedir)/${PN}"' && ./start.sh' > "${S}/rmahjong"
35 +
36 + # pass compiler and CFLAGS to 'Bot' makefile
37 + sed -i -e 's:gcc:'"$(tc-getCC)"':g' bot/makefile \
38 + -e 's:CFLAGS=-Wall -O3 -march=native:CFLAGS='"${CFLAGS}"':'|| die
39 }
40
41 src_compile() {