summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDan Armak <danarmak@gentoo.org>2002-07-19 09:54:05 +0000
committerDan Armak <danarmak@gentoo.org>2002-07-19 09:54:05 +0000
commit74b7c8258db36fccf486e17706bd457fc42efe3a (patch)
tree5e1c53c286400c4d2c8abbd8f664a9d4ee7dc367 /eclass
parentfix some masking errors (diff)
downloadhistorical-74b7c8258db36fccf486e17706bd457fc42efe3a.tar.gz
historical-74b7c8258db36fccf486e17706bd457fc42efe3a.tar.bz2
historical-74b7c8258db36fccf486e17706bd457fc42efe3a.zip
make cvs_src_unpack implement base_src_unpack-style autopatching. this way patches from csv ebuilds apply which fixes compile problems in kdeartwork.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/cvs.eclass14
1 files changed, 13 insertions, 1 deletions
diff --git a/eclass/cvs.eclass b/eclass/cvs.eclass
index ebc83f1a3b10..c7b9e70e9176 100644
--- a/eclass/cvs.eclass
+++ b/eclass/cvs.eclass
@@ -1,7 +1,7 @@
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Dan Armak <danarmak@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.4 2002/07/18 17:37:32 danarmak Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.5 2002/07/19 09:54:05 danarmak Exp $
# This eclass provides the generic cvs fetching functions.
ECLASS=cvs
@@ -141,8 +141,20 @@ cvs_src_unpack() {
# is that in the future after copying the sources we might need to
# delete them, so this has to be self-contained
cp -Rf ${ECVS_TOP_DIR}/${ECVS_MODULE} $WORKDIR
+
+ # implement some of base_src_unpack's functionality;
+ # note however that base.eclass may not have been inherited!
+ if [ -n "$PATCHES" ]; then
+ debug-print "$FUNCNAME: PATCHES=$PATCHES, S=$S, autopatching"
+ cd $S
+ for x in $PATCHES; do
+ debug-print "patching from $x"
+ patch -p0 < $x
+ done
+ fi
}
EXPORT_FUNCTIONS src_unpack
+