summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-05-07 22:08:57 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-05-07 22:08:57 +0000
commite3c065a4dfdca385fe7f5c9defb68e2a82a6919f (patch)
treeec5460911d457dfeace0f97edf2b955eb64f6a59 /sys-power/powersave/powersave-0.13.1.ebuild
parentRemove compiler check for ppc to allow compilation with gcc-4. This fixes bug... (diff)
downloadhistorical-e3c065a4dfdca385fe7f5c9defb68e2a82a6919f.tar.gz
historical-e3c065a4dfdca385fe7f5c9defb68e2a82a6919f.tar.bz2
historical-e3c065a4dfdca385fe7f5c9defb68e2a82a6919f.zip
Add patch to fix linking with --as-needed, bug #132544, thus remove filtering, run eautoreconf to replace libtoolize, also run elibtoolize for safety. Fix the KDE directory handling, add doce useflag to IUSE.
Package-Manager: portage-2.1_pre10-r3
Diffstat (limited to 'sys-power/powersave/powersave-0.13.1.ebuild')
-rw-r--r--sys-power/powersave/powersave-0.13.1.ebuild18
1 files changed, 11 insertions, 7 deletions
diff --git a/sys-power/powersave/powersave-0.13.1.ebuild b/sys-power/powersave/powersave-0.13.1.ebuild
index c51a6fa158fe..f009d3cd1aab 100644
--- a/sys-power/powersave/powersave-0.13.1.ebuild
+++ b/sys-power/powersave/powersave-0.13.1.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/powersave/powersave-0.13.1.ebuild,v 1.1 2006/05/07 10:29:45 genstef Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/powersave/powersave-0.13.1.ebuild,v 1.2 2006/05/07 22:08:57 flameeyes Exp $
-inherit eutils flag-o-matic
+inherit eutils libtool kde-functions autotools
DESCRIPTION="Powersave Daemon"
SRC_URI="mirror://sourceforge/powersave/${P}.tar.bz2"
@@ -10,7 +10,7 @@ HOMEPAGE="http://powersave.sf.net/"
KEYWORDS="~x86 ~amd64"
SLOT="0"
LICENSE="GPL-2"
-IUSE="pam_console"
+IUSE="pam_console doc"
RDEPEND=">=sys-apps/dbus-0.30
@@ -34,15 +34,19 @@ src_unpack() {
cd ${S}
# Use pam_console or group plugdev to control access to powersave
use pam_console || epatch ${FILESDIR}/plugdev_access.patch
- libtoolize --copy --force
+
+ epatch "${FILESDIR}/${P}-asneeded.patch"
+
+ eautoreconf
+ elibtoolize
}
src_compile() {
- #http://bugs.gentoo.org/132544
- filter-ldflags -Wl,--as-needed --as-needed
+ set-kdedir
+
econf \
--with-gnome-bindir=/usr/bin \
- --with-kde-bindir=$(kde-config --prefix)/bin \
+ --with-kde-bindir=${KDEDIR}/bin \
$(use_enable doc docs) || die "econf failed"
emake || die "emake failed"