x11-plugins/wmpop3lb: better sed command for $CC

Closes: https://bugs.gentoo.org/726246
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
This commit is contained in:
Bernard Cafarelli
2022-02-20 16:28:05 +01:00
parent 2b5bc1e0bc
commit 449d31cad4

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -28,7 +28,7 @@ src_prepare() {
sed -i -e "s|-g2 -D_DEBUG|${CFLAGS}|" "wmpop3/Makefile" || die
#De-hardcode compiler
sed -i -e "s|cc|\$(CC)|g" "wmpop3/Makefile" || die
sed -i -e "s|\tcc |\t\$(CC) |g" "wmpop3/Makefile" || die
#Honour Gentoo LDFLAGS - bug #335986
sed -i -e "s|\$(FLAGS) -o wmpop3lb|\$(LDFLAGS) -o wmpop3lb|" "wmpop3/Makefile" || die