From f19282e3a123bd836bc549bf0c33af0539d14a48 Mon Sep 17 00:00:00 2001 From: Michele Noberasco Date: Tue, 31 Aug 2010 10:00:34 +0000 Subject: Honour LDFLAGS, see bug #334747. Honour CFLAGS. (Portage version: 2.1.8.3/cvs/Linux i686) --- x11-plugins/wmapm/wmapm-3.1-r1.ebuild | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'x11-plugins/wmapm/wmapm-3.1-r1.ebuild') diff --git a/x11-plugins/wmapm/wmapm-3.1-r1.ebuild b/x11-plugins/wmapm/wmapm-3.1-r1.ebuild index 23b2b4946fd3..f8d0f5dfa664 100644 --- a/x11-plugins/wmapm/wmapm-3.1-r1.ebuild +++ b/x11-plugins/wmapm/wmapm-3.1-r1.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2008 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/wmapm/wmapm-3.1-r1.ebuild,v 1.14 2008/06/29 13:14:44 drac Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmapm/wmapm-3.1-r1.ebuild,v 1.15 2010/08/31 10:00:34 s4t4n Exp $ DESCRIPTION="WindowMaker DockApp: Battery/Power status monitor for laptops" SRC_URI="http://nis-www.lanl.gov/~mgh/WindowMaker/${P}.tar.gz" @@ -20,6 +20,19 @@ DEPEND="${RDEPEND} S=${WORKDIR}/${P}/${PN} +src_unpack() +{ + unpack ${A} + cd "${S}" + + #Respect LDFLAGS, see bug #334747 + sed -i 's/ -o wmapm/ ${LDFLAGS} -o wmapm/' "Makefile" +} + +src_compile() { + emake COPTS="${CFLAGS}" || die "make failed" +} + src_install() { dobin wmapm || die "dobin failed." doman wmapm.1 -- cgit v1.2.3-65-gdbad