diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-09-04 17:10:26 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-09-04 17:10:26 +0000 |
commit | 812f34b0335fb7013bfe1f6e0e1dce71e388b32c (patch) | |
tree | 1e508051f899a11d0cd67c8c03deb2a10247d8d3 /x11-plugins/wmacpi/wmacpi-1.34.ebuild | |
parent | Fix for problem of setting ownership before creating the required user (diff) | |
download | historical-812f34b0335fb7013bfe1f6e0e1dce71e388b32c.tar.gz historical-812f34b0335fb7013bfe1f6e0e1dce71e388b32c.tar.bz2 historical-812f34b0335fb7013bfe1f6e0e1dce71e388b32c.zip |
patches to fix acpi/apm support #27685
Diffstat (limited to 'x11-plugins/wmacpi/wmacpi-1.34.ebuild')
-rw-r--r-- | x11-plugins/wmacpi/wmacpi-1.34.ebuild | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/x11-plugins/wmacpi/wmacpi-1.34.ebuild b/x11-plugins/wmacpi/wmacpi-1.34.ebuild index 5626e6dda881..788c61f337af 100644 --- a/x11-plugins/wmacpi/wmacpi-1.34.ebuild +++ b/x11-plugins/wmacpi/wmacpi-1.34.ebuild @@ -1,24 +1,31 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmacpi/wmacpi-1.34.ebuild,v 1.2 2003/06/26 00:35:51 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmacpi/wmacpi-1.34.ebuild,v 1.3 2003/09/04 17:10:26 vapier Exp $ DESCRIPTION="WMaker DockApp: ACPI status monitor for laptops" -SRC_URI="http://www.ne.jp/asahi/linux/timecop/software/${P}.tar.gz" HOMEPAGE="http://www.ne.jp/asahi/linux/timecop/" +SRC_URI="http://www.ne.jp/asahi/linux/timecop/software/${P}.tar.gz" -SLOT="0" LICENSE="GPL-2" +SLOT="0" KEYWORDS="x86 sparc" DEPEND="virtual/x11" +src_unpack() { + unpack ${A} + cd ${S} + use apm && use acpi && eerror "APM and ACPI are in USE ... defaulting to ACPI" + use apm || use acpi || eerror "Neither APM or ACPI are in USE ... defaulting to ACPI" + if [ `use acpi` ] || [ ! `use apm` ] ; then + epatch ${FILESDIR}/${PV}-acpi.patch + else + epatch ${FILESDIR}/${PV}-apm.patch + fi +} + src_compile() { - use apm && use acpi && eerror "APM and ACPI is in USE ... defaulting to ACPI" - use apm || use acpi || eerror "Neither APM or ACPI is in USE ... defaulting to ACPI" - [ `use acpi` ] \ - && export CFLAGS="${CFLAGS} -DACPI" \ - || export CFLAGS="${CFLAGS} -DAPM" - emake CFLAGS="${CFLAGS}" || die + emake OPT="${CFLAGS}" || die } src_install() { |