diff options
| author | Michael Palimaka <kensington@gentoo.org> | 2014-11-24 22:26:56 +1100 |
|---|---|---|
| committer | Michael Palimaka <kensington@gentoo.org> | 2014-11-24 22:26:56 +1100 |
| commit | 317551a35c33eea19e6c75545bc3c10593d72282 (patch) | |
| tree | ac1e48b6d020f7a057755f1cb79a5df227265ff7 | |
| parent | 65409addcae2f031c676b89cfca712553762b1be (diff) | |
| download | kde-317551a35c33eea19e6c75545bc3c10593d72282.tar.gz kde-317551a35c33eea19e6c75545bc3c10593d72282.tar.bz2 kde-317551a35c33eea19e6c75545bc3c10593d72282.zip | |
Revert "[eclass] Sync kde4-functions with tree"
This reverts commit ff16e62967f4afebe715141599170941c24f706f.
The overlay version is more recent.
Conflicts:
eclass/kde4-functions.eclass
| -rw-r--r-- | eclass/kde4-functions.eclass | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/eclass/kde4-functions.eclass b/eclass/kde4-functions.eclass index 69660ea32dc..6b20250a488 100644 --- a/eclass/kde4-functions.eclass +++ b/eclass/kde4-functions.eclass @@ -2,8 +2,6 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: $ -inherit versionator - # @ECLASS: kde4-functions.eclass # @MAINTAINER: # kde@gentoo.org @@ -15,12 +13,14 @@ inherit versionator if [[ -z ${_KDE4_FUNCTIONS_ECLASS} ]]; then _KDE4_FUNCTIONS_ECLASS=1 +inherit versionator + # @ECLASS-VARIABLE: EAPI # @DESCRIPTION: # Currently kde4 eclasses support EAPI 4 and 5. -case ${EAPI:-0} in +case ${EAPI} in 4|5) : ;; - *) die "EAPI=${EAPI} is not supported" ;; + *) die "EAPI=${EAPI:-0} is not supported" ;; esac # @ECLASS-VARIABLE: KDE_OVERRIDE_MINIMAL @@ -40,10 +40,11 @@ if [[ ${CATEGORY} = kde-base || ${CATEGORY} = kde-apps ]]; then debug-print "${ECLASS}: KDEBASE ebuild recognized" KDEBASE=kde-base elif [[ ${KMNAME-${PN}} = kdevelop ]]; then - debug-print "${ECLASS}: KDEVELOP ebuild recognized" KDEBASE=kdevelop fi +debug-print "${ECLASS}: ${KDEBASE} ebuild recognized" + # determine the build type if [[ ${PV} = *9999* ]]; then KDE_BUILD_TYPE="live" @@ -121,21 +122,6 @@ buildsycoca() { done } -# @FUNCTION: comment_add_subdirectory -# @USAGE: subdirectory -# @DESCRIPTION: -# Comment out an add_subdirectory call in CMakeLists.txt in the current directory -comment_add_subdirectory() { - if [[ -z ${1} ]]; then - die "comment_add_subdirectory must be passed the directory name to comment" - fi - - if [[ -a "CMakeLists.txt" ]]; then - sed -e "/add_subdirectory[[:space:]]*([[:space:]]*${1}[[:space:]]*)/s/^/#DONOTCOMPILE /" \ - -i CMakeLists.txt || die "failed to comment add_subdirectory(${1})" - fi -} - # @FUNCTION: comment_all_add_subdirectory # @USAGE: [list of directory names] # @DESCRIPTION: |
