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 9652A13835B for ; Sat, 24 Apr 2021 23:19:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B16B4E0848; Sat, 24 Apr 2021 23:19:57 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 76176E0845 for ; Sat, 24 Apr 2021 23:19:57 +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 905A43413D4 for ; Sat, 24 Apr 2021 23:19:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 642C2729 for ; Sat, 24 Apr 2021 23:19:41 +0000 (UTC) From: "Theo Anderson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Theo Anderson" Message-ID: <1619260354.fbbfb65d28b9e7889b4615973cdc886787798561.telans@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: games-board/rmahjong/ X-VCS-Repository: repo/proj/guru X-VCS-Files: games-board/rmahjong/rmahjong-0.4_p20201106.ebuild X-VCS-Directories: games-board/rmahjong/ X-VCS-Committer: telans X-VCS-Committer-Name: Theo Anderson X-VCS-Revision: fbbfb65d28b9e7889b4615973cdc886787798561 X-VCS-Branch: master Date: Sat, 24 Apr 2021 23:19:41 +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: a83e8fa7-3251-430b-9f0b-a77024f5b0bd X-Archives-Hash: 2d6ad01bc7331752da0c8d8a081358fd commit: fbbfb65d28b9e7889b4615973cdc886787798561 Author: Sergey Torokhov yandex ru> AuthorDate: Sat Apr 24 10:32:34 2021 +0000 Commit: Theo Anderson posteo de> CommitDate: Sat Apr 24 10:32:34 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fbbfb65d games-board/rmahjong: fix pass system CC and CFLAGS Closes: https://bugs.gentoo.org/785019 Closes: https://bugs.gentoo.org/780966 Signed-off-by: Sergey Torokhov yandex.ru> games-board/rmahjong/rmahjong-0.4_p20201106.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/games-board/rmahjong/rmahjong-0.4_p20201106.ebuild b/games-board/rmahjong/rmahjong-0.4_p20201106.ebuild index a8a3e6da8..c05893d27 100644 --- a/games-board/rmahjong/rmahjong-0.4_p20201106.ebuild +++ b/games-board/rmahjong/rmahjong-0.4_p20201106.ebuild @@ -5,7 +5,7 @@ EAPI=7 PYTHON_COMPAT=( python3_{7..9} ) -inherit desktop python-single-r1 xdg +inherit desktop python-single-r1 toolchain-funcs xdg # Tarball from py3 port branch: # https://github.com/spirali/rmahjong/tree/py3 @@ -48,6 +48,10 @@ src_prepare(){ sed -i "/logging.info/d" "${S}/server/server.py" || die echo $'#!/bin/sh\ncd '"$(python_get_sitedir)/${PN}"' && ./start.sh' > "${S}/rmahjong" + + # pass compiler and CFLAGS to 'Bot' makefile + sed -i -e 's:gcc:'"$(tc-getCC)"':g' bot/makefile \ + -e 's:CFLAGS=-Wall -O3 -march=native:CFLAGS='"${CFLAGS}"':'|| die } src_compile() {