diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-05-07 22:08:57 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-05-07 22:08:57 +0000 |
commit | f0d65a960a3bbdb1c3494751283038e993642cfa (patch) | |
tree | 81c447610f409edfdc1d020a85dd10a468ee340e /sys-power | |
parent | Remove compiler check for ppc to allow compilation with gcc-4. This fixes bug... (diff) | |
download | gentoo-2-f0d65a960a3bbdb1c3494751283038e993642cfa.tar.gz gentoo-2-f0d65a960a3bbdb1c3494751283038e993642cfa.tar.bz2 gentoo-2-f0d65a960a3bbdb1c3494751283038e993642cfa.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.
(Portage version: 2.1_pre10-r3)
Diffstat (limited to 'sys-power')
-rw-r--r-- | sys-power/powersave/ChangeLog | 8 | ||||
-rw-r--r-- | sys-power/powersave/files/powersave-0.13.1-asneeded.patch | 13 | ||||
-rw-r--r-- | sys-power/powersave/powersave-0.13.1.ebuild | 18 |
3 files changed, 31 insertions, 8 deletions
diff --git a/sys-power/powersave/ChangeLog b/sys-power/powersave/ChangeLog index d04dc174aced..2c99e45e3e14 100644 --- a/sys-power/powersave/ChangeLog +++ b/sys-power/powersave/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-power/powersave # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-power/powersave/ChangeLog,v 1.1 2006/05/07 10:29:45 genstef Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-power/powersave/ChangeLog,v 1.2 2006/05/07 22:08:57 flameeyes Exp $ + + 07 May 2006; Diego Pettenò <flameeyes@gentoo.org> + +files/powersave-0.13.1-asneeded.patch, powersave-0.13.1.ebuild: + 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. *powersave-0.13.1 (07 May 2006) diff --git a/sys-power/powersave/files/powersave-0.13.1-asneeded.patch b/sys-power/powersave/files/powersave-0.13.1-asneeded.patch new file mode 100644 index 000000000000..20e2a970b8da --- /dev/null +++ b/sys-power/powersave/files/powersave-0.13.1-asneeded.patch @@ -0,0 +1,13 @@ +Index: powersave-0.13.1/libpower/Makefile.am +=================================================================== +--- powersave-0.13.1.orig/libpower/Makefile.am ++++ powersave-0.13.1/libpower/Makefile.am +@@ -27,7 +27,7 @@ libpowersave_la_SOURCES = powerlib.c \ + debug.c + libpowersave_la_DEPENDENCIES = libpowersave_hal.la + libpowersave_la_LDFLAGS = -version-info 10:3:0 $(HAL_CFLAGS) +-libpowersave_la_LIBADD = libpowersave_hal.la $(HAL_LIBS) ++libpowersave_la_LIBADD = libpowersave_hal.la $(HAL_LIBS) -lm + + + libpowersave_dbus_la_SOURCES = powersave_dbus.c \ 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" |