app-shells/pdmenu: Make use of $(tc-getCC) to get compiler name right. Fixes bug...
authorPatrice Clement <monsieurp@gentoo.org>
Mon, 9 Nov 2015 10:43:20 +0000 (10:43 +0000)
committerPatrice Clement <monsieurp@gentoo.org>
Mon, 9 Nov 2015 10:44:52 +0000 (10:44 +0000)
Package-Manager: portage-2.2.20.1
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
app-shells/pdmenu/pdmenu-1.3.4.ebuild

index 88f94c820ffb187f6a47425e77831ac89a12659a..bce67fcabf53e6e5ec80b82ca50feeb0ef7cabee 100644 (file)
@@ -4,7 +4,7 @@
 
 EAPI=5
 
-inherit eutils
+inherit eutils toolchain-funcs
 
 DESCRIPTION="A simple console menu program"
 HOMEPAGE="http://joeyh.name/code/pdmenu/"
@@ -32,11 +32,15 @@ src_prepare() {
 }
 
 src_configure() {
-       econf \
+       CC=$(tc-getCC) econf \
                $(use_with gpm) \
                $(use_enable nls)
 }
 
+src_compile() {
+       emake CC=$(tc-getCC) || die
+}
+
 src_install() {
        dobin "${PN}"
        dodoc doc/ANNOUNCE doc/BUGS doc/TODO