x11-plugins/wmpop3: respect CC, bug #605910
authorBernard Cafarelli <voyageur@gentoo.org>
Mon, 16 Jan 2017 15:56:50 +0000 (16:56 +0100)
committerBernard Cafarelli <voyageur@gentoo.org>
Mon, 16 Jan 2017 15:57:33 +0000 (16:57 +0100)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

x11-plugins/wmpop3/wmpop3-0.5.6a-r1.ebuild

index 66a7a0ebdd19e83c3c2ae65052f39def3cc2b803..18b2d8dc76a1a8cb4aad89854d2d36da53841818 100644 (file)
@@ -1,8 +1,9 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
 EAPI=6
+inherit eutils toolchain-funcs
 
 DESCRIPTION="dockapp for checking pop3 accounts"
 HOMEPAGE="http://www.cs.mun.ca/~scotth/"
@@ -20,7 +21,8 @@ RDEPEND="${DEPEND}"
 PATCHES=( ${FILESDIR}/${P}-list.patch )
 
 src_prepare() {
-       sed -e "s:-O2:${CFLAGS}:" \
+       sed -e "s:cc :$(tc-getCC) :" \
+               -e "s:-O2:${CFLAGS}:" \
                -e "s:-o wmpop3:${LDFLAGS} -o wmpop3:" \
                -i ${PN}/Makefile || die