Permalink
Browse files

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

…ted.
  • Loading branch information...
1 parent 55d44d4 commit fd5b907bb86fd6c89fabb9594536e9f14ac6d231 @iegor committed Sep 12, 2012
Showing with 10 additions and 7 deletions.
  1. +1 −1 eclass/feature.eclass
  2. +9 −6 eclass/kde.eclass
View
@@ -24,4 +24,4 @@ feature() {
[ [ "${1}" == "${line}" ] ] && return 1;
done
return 0;
-}
+}
View
@@ -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

0 comments on commit fd5b907

Please sign in to comment.