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
commit4663edb56caf8720f83f7dba23d6cd0783f4c65b (patch)
tree3a08461c04c51593cf24816ac4b999b2061d3a04 /eclass
parentfix some masking errors (diff)
downloadgentoo-2-4663edb56caf8720f83f7dba23d6cd0783f4c65b.tar.gz
gentoo-2-4663edb56caf8720f83f7dba23d6cd0783f4c65b.tar.bz2
gentoo-2-4663edb56caf8720f83f7dba23d6cd0783f4c65b.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
+