summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eclass/git-2.eclass11
1 files changed, 7 insertions, 4 deletions
diff --git a/eclass/git-2.eclass b/eclass/git-2.eclass
index 4d17266e338..7ad8bc573ef 100644
--- a/eclass/git-2.eclass
+++ b/eclass/git-2.eclass
@@ -15,10 +15,6 @@ EXPORT_FUNCTIONS src_unpack
DEPEND="dev-vcs/git"
-# This static variable is for storing the data in WORKDIR.
-# Sometimes we might want to redefine S.
-EGIT_SOURCEDIR="${WORKDIR}/${P}"
-
# @FUNCTION: git-2_init_variables
# @DESCRIPTION:
# Internal function initializing all git variables.
@@ -29,6 +25,13 @@ git-2_init_variables() {
local x
+ # @ECLASS-VARIABLE: EGIT_SOURCEDIR
+ # @DESCRIPTION:
+ # This variable specifies destination where the cloned
+ # data are copied to.
+ # Sometimes we might want to make it different than S.
+ : ${EGIT_SOURCEDIR="${S}"}
+
# @ECLASS-VARIABLE: EGIT_STORE_DIR
# @DESCRIPTION:
# Storage directory for git sources.