summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/pbbuttonsd/pbbuttonsd-0.4.10.ebuild')
-rw-r--r--sys-apps/pbbuttonsd/pbbuttonsd-0.4.10.ebuild14
1 files changed, 8 insertions, 6 deletions
diff --git a/sys-apps/pbbuttonsd/pbbuttonsd-0.4.10.ebuild b/sys-apps/pbbuttonsd/pbbuttonsd-0.4.10.ebuild
index 4f45b4aba746..2eef7f4f4a60 100644
--- a/sys-apps/pbbuttonsd/pbbuttonsd-0.4.10.ebuild
+++ b/sys-apps/pbbuttonsd/pbbuttonsd-0.4.10.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/pbbuttonsd/pbbuttonsd-0.4.10.ebuild,v 1.2 2002/06/21 20:39:48 gerk Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/pbbuttonsd/pbbuttonsd-0.4.10.ebuild,v 1.3 2002/06/22 00:30:02 gerk Exp $
S=${WORKDIR}/${P}
DESCRIPTION="PBButtons is a PPC-only program to map special Powerbook/iBook keys in Linux"
@@ -11,12 +11,14 @@ RDEPEND=""
SLOT=0
LICENSE=GPL
-src_compile() {
- if [ ${ARCH} = "x86" ] ; then
- einfo "PPC Only build, sorry"
- exit 1
+pkg_setup() {
+ if [ ${ARCH} != "ppc" ] ; then
+ eerror "Sorry, this is a PPC only package."
+ die "Sorry, this as a PPC only pacakge."
fi
-
+}
+
+src_compile() {
./configure \
--prefix=/usr \
--sysconfdir=/etc || die "sorry, ppc-only package"