Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

modified kde.eclass to support git download only if feature is suppor…

…ted.
  • Loading branch information...
commit fd5b907bb86fd6c89fabb9594536e9f14ac6d231 1 parent 55d44d4
@iegor authored
Showing with 10 additions and 7 deletions.
  1. +1 −1  eclass/feature.eclass
  2. +9 −6 eclass/kde.eclass
View
2  eclass/feature.eclass
@@ -24,4 +24,4 @@ feature() {
[ [ "${1}" == "${line}" ] ] && return 1;
done
return 0;
-}
+}
View
15 eclass/kde.eclass
@@ -17,7 +17,7 @@ ECLASS_DEBUG_OUTPUT=on
[[ -z ${WANT_AUTOMAKE} ]] && WANT_AUTOMAKE="1.9"
-inherit base eutils kde-functions flag-o-matic libtool autotools git-2
+inherit base eutils kde-functions flag-o-matic libtool autotools git-2 feature
DESCRIPTION="Based on the $ECLASS eclass"
HOMEPAGE="http://www.kde.org/"
@@ -145,11 +145,14 @@ kde_src_unpack() {
if [ $kdesrc_downloaded == 0 ]; then
debug-print "gitting source code."
- if [ -z ${EGIT_REPO_URI} ]; then
- debug-print "Empty EGIT_REPO_URI: setting to default: git://github.com/iegor/${PN}.git"
- ebegin "Set egit_repo_uri to: git://github.com/iegor/${PN}.git"
- EGIT_REPO_URI="git://github.com/iegor/${PN}.git"
- eend 0
+ # Check if git_install feature is enabled, then download
+ if [ feature "git_install" ]; then
+ if [ -z ${EGIT_REPO_URI} ]; then
+ debug-print "Empty EGIT_REPO_URI: setting to default: git://github.com/iegor/${PN}.git"
+ ebegin "Set egit_repo_uri to: git://github.com/iegor/${PN}.git"
+ EGIT_REPO_URI="git://github.com/iegor/${PN}.git"
+ eend 0
+ fi
fi
git-2_src_unpack
Please sign in to comment.
Something went wrong with that request. Please try again.