summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2022-07-09 14:19:03 +0200
committerBernard Cafarelli <voyageur@gentoo.org>2022-07-09 17:40:52 +0200
commit7c3ae040dc00c514b7e45638467bad76b5bac056 (patch)
treea4512622d73b04bbf6990d1f44c72c242f07e7dc /x11-plugins/wmbio
parentx11-plugins/wmgrabimage: respect CC (diff)
downloadgentoo-7c3ae040dc00c514b7e45638467bad76b5bac056.tar.gz
gentoo-7c3ae040dc00c514b7e45638467bad76b5bac056.tar.bz2
gentoo-7c3ae040dc00c514b7e45638467bad76b5bac056.zip
x11-plugins/wmbio: respect CC
Closes: https://bugs.gentoo.org/726230 Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'x11-plugins/wmbio')
-rw-r--r--x11-plugins/wmbio/wmbio-1.02.ebuild16
1 files 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() {