diff options
author | John Mylchreest <johnm@gentoo.org> | 2005-04-11 20:02:06 +0000 |
---|---|---|
committer | John Mylchreest <johnm@gentoo.org> | 2005-04-11 20:02:06 +0000 |
commit | 9f52778bb6e0a90292145b813a76b22ff7033083 (patch) | |
tree | 6a757e2986d638aff96253d7614db6449d22da93 /eclass/pcmcia.eclass | |
parent | Remove ~sparc keyword because pari-2.1.6 will not build on sparc. See Bug 877... (diff) | |
download | historical-9f52778bb6e0a90292145b813a76b22ff7033083.tar.gz historical-9f52778bb6e0a90292145b813a76b22ff7033083.tar.bz2 historical-9f52778bb6e0a90292145b813a76b22ff7033083.zip |
merging pcmcia support into linux-mod, now awaiting pcmcia-cs changes and were good to go
Diffstat (limited to 'eclass/pcmcia.eclass')
-rw-r--r-- | eclass/pcmcia.eclass | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/eclass/pcmcia.eclass b/eclass/pcmcia.eclass index 4c296dee8db1..ee051275b9fe 100644 --- a/eclass/pcmcia.eclass +++ b/eclass/pcmcia.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/pcmcia.eclass,v 1.5 2004/06/25 00:39:48 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/pcmcia.eclass,v 1.6 2005/04/11 20:02:06 johnm Exp $ # pcmcia.eclass - This eclass facilities writing ebuilds for driver packages # that may need to build against the pcmcia-cs drivers, depending on kernel @@ -48,12 +48,13 @@ SRC_URI="pcmcia? ( mirror://sourceforge/pcmcia-cs/${PCMCIA_BASE_VERSION}.tar.gz DEPEND="pcmcia? ( >=sys-apps/${PCMCIA_BASE_VERSION} )" -PCMCIA_SOURCE_DIR="${WORKDIR}/${PCMCIA_BASE_VERSION}" +pcmcia_src_unpack() { + # So while the two eclasses exist side-by-side and also the ebuilds inherit + # both we need to check for PCMCIA_SOURCE_DIR, and if we find it, then we + # bail out and assume pcmcia.eclass is working on it. + [[ -n ${PCMCIA_SOURCE_DIR} ]] && return 1 -pcmcia_src_unpack() -{ cd ${WORKDIR} - if use pcmcia ; then if egrep '^CONFIG_PCMCIA=[ym]' /usr/src/linux/.config >&/dev/null then @@ -63,6 +64,8 @@ pcmcia_src_unpack() PCMCIA_VERSION="" PCMCIA_SOURCE_DIR="" else + PCMCIA_SOURCE_DIR="${WORKDIR}/${PCMCIA_BASE_VERSION}" + # We unpack the base version, figure out what is installed, then # patch up to that version. Ugly hack to avoid messy SRC_URIs unpack ${PCMCIA_BASE_VERSION}.tar.gz |