From 8db58db8430af33950961f337993931bd93bc9f6 Mon Sep 17 00:00:00 2001
From: Michele Noberasco <s4t4n@gentoo.org>
Date: Mon, 20 Sep 2010 09:17:18 +0000
Subject: Honour Gentoo LDFLAGS, see bug #337893. Package-Manager:
 portage-2.1.8.3/cvs/Linux i686

---
 x11-plugins/wmcube/wmcube-0.98.ebuild | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

(limited to 'x11-plugins/wmcube/wmcube-0.98.ebuild')

diff --git a/x11-plugins/wmcube/wmcube-0.98.ebuild b/x11-plugins/wmcube/wmcube-0.98.ebuild
index 0a4f1b1b8e56..ab6298f87350 100644
--- a/x11-plugins/wmcube/wmcube-0.98.ebuild
+++ b/x11-plugins/wmcube/wmcube-0.98.ebuild
@@ -1,6 +1,8 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmcube/wmcube-0.98.ebuild,v 1.13 2007/07/22 05:14:57 dberkholz Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmcube/wmcube-0.98.ebuild,v 1.14 2010/09/20 09:17:18 s4t4n Exp $
+
+EAPI=3
 
 DESCRIPTION="a dockapp cpu monitor with spinning 3d objects"
 HOMEPAGE="http://kling.mine.nu/kling/wmcube.htm"
@@ -20,10 +22,13 @@ DEPEND="${RDEPEND}
 
 S="${WORKDIR}/${P}/wmcube"
 
-src_compile() {
-
-	emake || die "parallel make failed"
+src_prepare() {
+	#Honour Gentoo LDFLAGS, see bug #337893.
+	sed -e "s/-o wmcube/${LDFLAGS} -o wmcube/" -i Makefile
+}
 
+src_compile() {
+	emake CFLAGS="${CFLAGS}" || die "parallel make failed"
 }
 
 src_install() {
-- 
cgit v1.2.3-65-gdbad