summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichele Noberasco <s4t4n@gentoo.org>2010-08-31 10:00:34 +0000
committerMichele Noberasco <s4t4n@gentoo.org>2010-08-31 10:00:34 +0000
commitf19282e3a123bd836bc549bf0c33af0539d14a48 (patch)
tree0625c8ca547ebec5d6274983472bf2df1e105dbc /x11-plugins/wmapm
parentDepend on sys-power/hibernate-script or sys-power/pm-utils (bug #334971). (diff)
downloadgentoo-2-f19282e3a123bd836bc549bf0c33af0539d14a48.tar.gz
gentoo-2-f19282e3a123bd836bc549bf0c33af0539d14a48.tar.bz2
gentoo-2-f19282e3a123bd836bc549bf0c33af0539d14a48.zip
Honour LDFLAGS, see bug #334747.
Honour CFLAGS. (Portage version: 2.1.8.3/cvs/Linux i686)
Diffstat (limited to 'x11-plugins/wmapm')
-rw-r--r--x11-plugins/wmapm/ChangeLog8
-rw-r--r--x11-plugins/wmapm/wmapm-3.1-r1.ebuild17
2 files changed, 21 insertions, 4 deletions
diff --git a/x11-plugins/wmapm/ChangeLog b/x11-plugins/wmapm/ChangeLog
index beeb838e6134..d7e6dcc1d533 100644
--- a/x11-plugins/wmapm/ChangeLog
+++ b/x11-plugins/wmapm/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for x11-plugins/wmapm
-# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmapm/ChangeLog,v 1.11 2007/07/22 05:28:39 dberkholz Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmapm/ChangeLog,v 1.12 2010/08/31 10:00:34 s4t4n Exp $
+
+ 31 Aug 2010; Michele Noberasco <s4t4n@gentoo.org>; wmapm-3.1-r1.ebuild:
+ Honour LDFLAGS, see bug #334747.
+ Honour CFLAGS.
22 Jul 2007; Donnie Berkholz <dberkholz@gentoo.org>; wmapm-3.1-r1.ebuild:
Drop virtual/x11 references.
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