diff options
author | Peter Johanson <latexer@gentoo.org> | 2004-02-07 23:44:23 +0000 |
---|---|---|
committer | Peter Johanson <latexer@gentoo.org> | 2004-02-07 23:44:23 +0000 |
commit | 053b669a0300e13b9ec33c647285e7c2e85d2835 (patch) | |
tree | 2b080a7e11d58cdf330e87eed75a8b2109d92be2 /eclass/pcmcia.eclass | |
parent | Patch to use GNU tar by absolute PATH. On Gentoo, star installs in /usr/bin,... (diff) | |
download | historical-053b669a0300e13b9ec33c647285e7c2e85d2835.tar.gz historical-053b669a0300e13b9ec33c647285e7c2e85d2835.tar.bz2 historical-053b669a0300e13b9ec33c647285e7c2e85d2835.zip |
Aesthetic fix to not change into the PCMCIA_SOURCE_DIR if it's not there.
Diffstat (limited to 'eclass/pcmcia.eclass')
-rw-r--r-- | eclass/pcmcia.eclass | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/eclass/pcmcia.eclass b/eclass/pcmcia.eclass index 85fefa656147..ecc90f17cef5 100644 --- a/eclass/pcmcia.eclass +++ b/eclass/pcmcia.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/pcmcia.eclass,v 1.1 2004/02/07 21:22:49 latexer Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/pcmcia.eclass,v 1.2 2004/02/07 23:44:23 latexer Exp $ # pcmcia.eclass - This eclass facilities writing ebuilds for driver packages # that may need to build against the pcmcia-cs drivers, depending on kernel @@ -21,6 +21,8 @@ # pcmcia_configure will configure the pcmcia-cs sources if that is needed +inherit eutils + ECLASS="pcmcia" INHERITED="$INHERITED $ECLASS" @@ -94,10 +96,10 @@ pcmcia_src_unpack() # Call this if you need the package configured for building to work pcmcia_configure() { - cd ${PCMCIA_SOURCE_DIR} if [ -n "`use pcmcia`" ]; then if ! egrep '^CONFIG_PCMCIA=[ym]' /usr/src/linux/.config >&/dev/null then + cd ${PCMCIA_SOURCE_DIR} local myarch # pcmcia-cs expects "i386" not "x86" |