diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2022-07-09 14:14:39 +0200 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2022-07-09 17:40:52 +0200 |
commit | 066654f5a7210de20c2f8447b0fef17c74be19eb (patch) | |
tree | 96ea9647549dbd1d565bf0fbe2df75b2580b7bee /x11-plugins | |
parent | x11-plugins/wmcms: respect CC (diff) | |
download | gentoo-066654f5a7210de20c2f8447b0fef17c74be19eb.tar.gz gentoo-066654f5a7210de20c2f8447b0fef17c74be19eb.tar.bz2 gentoo-066654f5a7210de20c2f8447b0fef17c74be19eb.zip |
x11-plugins/wmpager: respect CC
Closes: https://bugs.gentoo.org/726286
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'x11-plugins')
-rw-r--r-- | x11-plugins/wmpager/wmpager-1.2-r2.ebuild | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/x11-plugins/wmpager/wmpager-1.2-r2.ebuild b/x11-plugins/wmpager/wmpager-1.2-r2.ebuild index 920a6e876ac9..541b6e136aad 100644 --- a/x11-plugins/wmpager/wmpager-1.2-r2.ebuild +++ b/x11-plugins/wmpager/wmpager-1.2-r2.ebuild @@ -1,8 +1,10 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 +inherit toolchain-funcs + DESCRIPTION="A simple pager docklet for the WindowMaker window manager" HOMEPAGE="http://wmpager.sourceforge.net/" SRC_URI="mirror://sourceforge/wmpager/${P}.tar.gz" @@ -21,12 +23,17 @@ src_prepare() { sed -i "s:\(WMPAGER_DEFAULT_INSTALL_DIR \).*:\1\"/usr/share/wmpager\":" \ src/wmpager.c || die - #Honour Gentoo CFLAGS and LDFLAGS, see bug #337604 - sed -i -e "s/-g/${CFLAGS}/" \ + #Honour Gentoo CC, CFLAGS and LDFLAGS, see bug #337604 and #726286 + sed -i -e "s/-g/\${CFLAGS}/" \ -e "s/\${LIBS}/\${LIBS} \${LDFLAGS}/" \ + -e "s/gcc/\$(CC)/" \ src/Makefile || die } +src_compile() { + emake CC="$(tc-getCC)" +} + src_install() { emake INSTALLDIR="${ED}/usr" install rm -rf "${ED}"/usr/man || die |