summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-plugins/wmacpi/wmacpi-1.34.ebuild')
-rw-r--r--x11-plugins/wmacpi/wmacpi-1.34.ebuild25
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() {