Skip to content
Browse files

removed class for feature works.

  • Loading branch information...
1 parent fd5b907 commit 5887939871eeedb3cc28117b1b3b8c2ec8855050 @iegor committed Sep 12, 2012
Showing with 5 additions and 31 deletions.
  1. +0 −27 eclass/feature.eclass
  2. +5 −4 eclass/kde.eclass
View
27 eclass/feature.eclass
@@ -1,27 +0,0 @@
-ECLASS_DEBUG_OUTPUT=on
-
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.223 2009/05/12 12:55:46 tampakrap Exp $
-
-# @ECLASS: feature.eclass
-# @MAINTAINER: iegor
-# original iegor <rmtdev@gmail.com>
-#
-# @BLURB: functions for working with portage features.
-# @DESCRIPTION: simple feature class contains functions for working with portage features.
-#
-
-inherit base eutils
-
-# @FUNCTION: feature
-# @USAGE: feature feature_name
-# @DESCRIPTION:
-# This function returns 1 if requested feature is supported (is in list).
-# For now it supports only 1 feature check per call
-feature() {
- echo ${FEATURES}|while read -d ' ' line; do
- [ [ "${1}" == "${line}" ] ] && return 1;
- done
- return 0;
-}
View
9 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 feature
+inherit base eutils kde-functions flag-o-matic libtool autotools git-2
DESCRIPTION="Based on the $ECLASS eclass"
HOMEPAGE="http://www.kde.org/"
@@ -146,16 +146,17 @@ kde_src_unpack() {
debug-print "gitting source code."
# Check if git_install feature is enabled, then download
- if [ feature "git_install" ]; then
+ #property "git_install" && einfo "$? got property."
+
+ if [ "$KDE_DOWNLOAD_SOURCE" == "git_repo" ]; 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
+ git-2_src_unpack
fi
-
- git-2_src_unpack
fi
[[ -z "$*" ]] || die "$FUNCNAME no longer supports stages."

0 comments on commit 5887939

Please sign in to comment.
Something went wrong with that request. Please try again.