diff options
author | Dan Armak <danarmak@gentoo.org> | 2003-07-13 13:04:04 +0000 |
---|---|---|
committer | Dan Armak <danarmak@gentoo.org> | 2003-07-13 13:04:04 +0000 |
commit | 5741361e76a24d728847a52bf2184a7c8707b19d (patch) | |
tree | 2287c30c755b4a45f10ec672dd26b704d85a7f28 /eclass | |
parent | gcc-3.3 fixes, bug #21213 (diff) | |
download | historical-5741361e76a24d728847a52bf2184a7c8707b19d.tar.gz historical-5741361e76a24d728847a52bf2184a7c8707b19d.tar.bz2 historical-5741361e76a24d728847a52bf2184a7c8707b19d.zip |
fix setting of $S - oops
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/kde-source.eclass | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/eclass/kde-source.eclass b/eclass/kde-source.eclass index 46310338d701..02b78fccc6df 100644 --- a/eclass/kde-source.eclass +++ b/eclass/kde-source.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/kde-source.eclass,v 1.16 2003/07/13 09:08:26 danarmak Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kde-source.eclass,v 1.17 2003/07/13 13:04:04 danarmak Exp $ # # Author Dan Armak <danarmak@gentoo.org> # @@ -33,7 +33,7 @@ INHERITED="$INHERITED $ECLASS" [ -z "$ECVS_SERVER" ] && ECVS_SERVER="anoncvs.kde.org:/home/kde" [ -z "$ECVS_AUTH" ] && ECVS_AUTH="pserver" -# for apps living inside modules like kdenonbeta - see beginning of our _src_unpack +# for apps living inside modules like kdenonbeta - see also beginning of our _src_unpack # KCVS_SUBDIR=... # If a tag is specified as ECVS_BRANCH, it will be used for the kde-common module @@ -64,20 +64,31 @@ DESCRIPTION="$DESCRIPTION (cvs) " # inheriting kde_source. SRC_URI="" +# this is here because it needs to be in the main section of the eclass, +# even though the code setting ECVS_MODULE from KCVS_MODULE is all inside +# kde-source_src_unpack +if [ -n "$KCVS_SUBDIR" -o -n "$KCVS_MODULE" ]; then + S="$WORKDIR/$KCVS_MODULE" +else + # default for kde-base ebuilds + S="$WORKDIR/$ECVS_MODULE" +fi + + kde-source_src_unpack() { debug-print-function $FUNCNAME $* + # decide what the main module is that we're fetching and call cvs_src_unpack + # the other things are fetched later + # (kde-common/admin, <module>/doc/*, <module>/<files>) if [ -n "$KCVS_SUBDIR" ]; then ECVS_MODULE="$KCVS_MODULE/$KCVS_SUBDIR" - S="$WORKDIR/$KCVS_MODULE" elif [ -n "$KCVS_MODULE" ]; then ECVS_MODULE="$KCVS_MODULE" - S="$WORKDIR/$KCVS_MODULE" else # default for kde-base ebuilds ECVS_MODULE="$PN" - S="$WORKDIR/$ECVS_MODULE" fi cvs_src_unpack |