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