commit: 037696a6de55ef79c8e9a66628f6dc10c4fec788 Author: Lucio Sauer <watermanpaint <AT> posteo <DOT> net> AuthorDate: Sun May 12 12:52:56 2024 +0000 Commit: Lucio Sauer <watermanpaint <AT> posteo <DOT> net> CommitDate: Sun May 12 13:39:19 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=037696a6
sys-process/xe: respect CFLAGS and CHOST CC Closes: https://bugs.gentoo.org/931796 Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net> sys-process/xe/{xe-1.0.ebuild => xe-1.0-r1.ebuild} | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sys-process/xe/xe-1.0.ebuild b/sys-process/xe/xe-1.0-r1.ebuild similarity index 69% rename from sys-process/xe/xe-1.0.ebuild rename to sys-process/xe/xe-1.0-r1.ebuild index 90d99b5661..a1686f2a83 100644 --- a/sys-process/xe/xe-1.0.ebuild +++ b/sys-process/xe/xe-1.0-r1.ebuild @@ -2,6 +2,9 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=8 + +inherit toolchain-funcs + DESCRIPTION="Simple xargs and apply replacement with sane defaults" HOMEPAGE="https://github.com/leahneukirchen/xe/" SRC_URI="https://github.com/leahneukirchen/xe/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" @@ -9,8 +12,15 @@ LICENSE="CC0-1.0" SLOT="0" KEYWORDS="~amd64" +src_prepare() { + default + # https://github.com/leahneukirchen/xe/pull/11 + sed '/^CFLAGS/{s/=/:=/;s/-g -O2//;s/$/ $(CFLAGS)/}' \ + -i Makefile || die +} + src_compile() { - emake CC="$CC" CFLAGS="$CFLAGS" + emake CC="$(tc-getCC)" } src_install() {