commit: 79efc416ad655ae05ae717455a297007f05189c2 Author: Johannes Huber <johu <AT> gentoo <DOT> org> AuthorDate: Tue May 27 17:27:42 2014 +0000 Commit: Johannes Huber <johu <AT> gentoo <DOT> org> CommitDate: Tue May 27 17:27:42 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=79efc416
[eclass] Fix git repo src uri calculation Allow to overwrite KMNAME with EGIT_REPONAME. --- eclass/kde5.eclass | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass index fe447f8..c0a1dea 100644 --- a/eclass/kde5.eclass +++ b/eclass/kde5.eclass @@ -217,7 +217,14 @@ _calculate_live_repo() { # (anongit) with anything else you might want to use. EGIT_MIRROR=${EGIT_MIRROR:=git://anongit.kde.org} - if [[ -n ${KMNAME} ]]; then + # @ECLASS-VARIABLE: EGIT_REPONAME + # @DESCRIPTION: + # This variable allows overriding of default repository + # name. Specify only if this differ from PN and KMNAME. + if [[ -n ${EGIT_REPONAME} ]]; then + # the repository and kmname different + _kmname=${EGIT_REPONAME} + elif [[ -n ${KMNAME} ]]; then _kmname=${KMNAME} else _kmname=${PN}