summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2011-04-13 22:16:08 +0200
committerTomas Chvatal <scarabeus@gentoo.org>2011-04-13 22:16:29 +0200
commit616e187f1641f3e38570ef5a059d38ed2199b6d4 (patch)
tree04d8d3c1fbda95ec0aa5004671ebd2682bda47db /eclass
parenta6d10dfc20641a1835260d38997b471f239e80f6 (diff)
downloadkde-616e187f1641f3e38570ef5a059d38ed2199b6d4.tar.gz
kde-616e187f1641f3e38570ef5a059d38ed2199b6d4.tar.bz2
kde-616e187f1641f3e38570ef5a059d38ed2199b6d4.zip
[git-2] rework the egit_sourcedir a bit.
Diffstat (limited to 'eclass')
-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.