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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3E6DC158094 for ; Sat, 9 Jul 2022 15:43:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D5E2FE07C5; Sat, 9 Jul 2022 15:43:42 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B1B2AE07C5 for ; Sat, 9 Jul 2022 15:43:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4D2A4340F3D for ; Sat, 9 Jul 2022 15:43:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 77A7652C for ; Sat, 9 Jul 2022 15:43:39 +0000 (UTC) From: "Bernard Cafarelli" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Bernard Cafarelli" Message-ID: <1657381252.7c3ae040dc00c514b7e45638467bad76b5bac056.voyageur@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmbio/ X-VCS-Repository: repo/gentoo X-VCS-Files: x11-plugins/wmbio/wmbio-1.02.ebuild X-VCS-Directories: x11-plugins/wmbio/ X-VCS-Committer: voyageur X-VCS-Committer-Name: Bernard Cafarelli X-VCS-Revision: 7c3ae040dc00c514b7e45638467bad76b5bac056 X-VCS-Branch: master Date: Sat, 9 Jul 2022 15:43:39 +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: 11abed87-96c1-4852-9d4b-dbf1c0da068c X-Archives-Hash: 31d4a8266717859280d31c55f0995c3c commit: 7c3ae040dc00c514b7e45638467bad76b5bac056 Author: Bernard Cafarelli gentoo org> AuthorDate: Sat Jul 9 12:19:03 2022 +0000 Commit: Bernard Cafarelli gentoo org> CommitDate: Sat Jul 9 15:40:52 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c3ae040 x11-plugins/wmbio: respect CC Closes: https://bugs.gentoo.org/726230 Signed-off-by: Bernard Cafarelli gentoo.org> x11-plugins/wmbio/wmbio-1.02.ebuild | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/x11-plugins/wmbio/wmbio-1.02.ebuild b/x11-plugins/wmbio/wmbio-1.02.ebuild index d2d2e7ccc5fb..4c7d53c862ea 100644 --- a/x11-plugins/wmbio/wmbio-1.02.ebuild +++ b/x11-plugins/wmbio/wmbio-1.02.ebuild @@ -1,8 +1,10 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 +inherit toolchain-funcs + DESCRIPTION="A Window Maker applet that shows your biorhythm" HOMEPAGE="http://wmbio.sourceforge.net/" SRC_URI="mirror://sourceforge/wmbio/${P}.tar.gz" @@ -23,10 +25,14 @@ S=${WORKDIR}/${P}/src src_prepare() { default - # Honour Gentoo CFLAGS - sed -i "s/-g -O2/\$(CFLAGS)/" Makefile || die - # Honour Gentoo LDFLAGS - sed -i "s/-o wmbio/\$(LDFLAGS) -o wmbio/" Makefile || die + # Honour Gentoo CFLAGS, LDFLAGS, CC + sed -i -e "s/-g -O2/\$(CFLAGS)/" \ + -e "s/-o wmbio/\$(LDFLAGS) -o wmbio/" \ + -e "s/cc /\$(CC) /" Makefile || die +} + +src_compile() { + emake CC="$(tc-getCC)" } src_install() {