mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 12:58:16 -07:00
x11-plugins/wmbio: respect CC
Closes: https://bugs.gentoo.org/726230 Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user