1
0
mirror of https://github.com/gryf/gryf-overlay.git synced 2026-04-14 04:43:31 +02:00

Removed problematic for wmpower LD flag --as-needed

This commit is contained in:
root
2011-01-02 17:22:59 +01:00
parent 6c652d93f2
commit 72663549cc
2 changed files with 9 additions and 3 deletions

View File

@@ -3,6 +3,7 @@
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmpower/wmpower-0.4.3.ebuild,v 1.1 2008/11/25 10:57:57 s4t4n Exp $
inherit eutils
inherit flag-o-matic
DESCRIPTION="a dockapp to get/set power management status for laptops (APM, ACPI
and CPUfreq)"
@@ -11,7 +12,7 @@ SRC_URI="mirror://sourceforge/wmpower/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
KEYWORDS="~amd64 ~ppc x86"
IUSE=""
RDEPEND="x11-libs/libX11
@@ -20,14 +21,19 @@ RDEPEND="x11-libs/libX11
DEPEND="${RDEPEND}
x11-proto/xproto
x11-proto/xextproto"
src_unpack() {
unpack ${A}
epatch "${FILESDIR}/wmacpi_acpi_detect.patch"
}
pkg_setup(){
append-ldflags $(no-as-needed)
}
src_compile() {
# override wmpower self-calculated cflags
econf MY_CFLAGS="${CFLAGS}" || die "Configuration failed"
# override wmpower self-calculated cflags
emake prefix="/usr/" || die "Compilation failed"
}