# ChangeLog for eclass directory
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1464 2014/12/16 00:04:31 pacho Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1465 2014/12/17 13:26:28 mrueg Exp $
+
+ 17 Dec 2014; Manuel Rüger <mrueg@gentoo.org> kde5-functions.eclass:
+ Sync eclass with kde overlay.
16 Dec 2014; Pacho Ramos <pacho@gentoo.org> gnome2.eclass:
Deprecate USE_EINSTALL (#482082)
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kde5-functions.eclass,v 1.2 2014/10/28 16:45:38 kensington Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde5-functions.eclass,v 1.3 2014/12/17 13:26:28 mrueg Exp $
# @ECLASS: kde5-functions.eclass
# @MAINTAINER:
# @FUNCTION: _add_kdecategory_dep
# @INTERNAL
# @DESCRIPTION:
-# Implementation of add_kdebase_dep and add_frameworks_dep.
+# Implementation of add_kdeplasma_dep and add_frameworks_dep.
_add_kdecategory_dep() {
debug-print-function ${FUNCNAME} "$@"
local package=${2}
local use=${3}
local version=${4}
+ local slot=
if [[ -n ${use} ]] ; then
local use="[${use}]"
local version="-${version}"
fi
- echo " ${operator}${category}/${package}${version}:5${use}"
+ if [[ ${SLOT} = 4 || ${SLOT} = 5 ]] && ! has kde5-meta-pkg ${INHERITED} ; then
+ slot=":${SLOT}"
+ fi
+
+ echo " ${operator}${category}/${package}${version}${slot}${use}"
}
# @FUNCTION: add_frameworks_dep
_add_kdecategory_dep kde-frameworks "${1}" "${2}" "${version}"
}
-# @FUNCTION: add_kdebase_dep
+# @FUNCTION: add_kdeapps_dep
+# @USAGE: <package> [USE flags] [minimum version]
+# @DESCRIPTION:
+# Create proper dependency for kde-apps/ dependencies.
+# This takes 1 to 3 arguments. The first being the package name, the optional
+# second is additional USE flags to append, and the optional third is the
+# version to use instead of the automatic version (use sparingly).
+# The output of this should be added directly to DEPEND/RDEPEND, and may be
+# wrapped in a USE conditional (but not an || conditional without an extra set
+# of parentheses).
+add_kdeapps_dep() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ local version
+
+ if [[ -n ${3} ]]; then
+ version=${3}
+ elif [[ ${CATEGORY} = kde-apps ]]; then
+ version=${PV}
+ fi
+
+ _add_kdecategory_dep kde-apps "${1}" "${2}" "${version}"
+}
+
+# @FUNCTION: add_kdeplasma_dep
# @USAGE: <package> [USE flags] [minimum version]
# @DESCRIPTION:
# Create proper dependency for kde-base/ dependencies.
# The output of this should be added directly to DEPEND/RDEPEND, and may be
# wrapped in a USE conditional (but not an || conditional without an extra set
# of parentheses).
-add_kdebase_dep() {
+add_kdeplasma_dep() {
debug-print-function ${FUNCNAME} "$@"
local version
if [[ -n ${3} ]]; then
version=${3}
- elif [[ ${CATEGORY} = kde-base ]]; then
+ elif [[ ${CATEGORY} = kde-plasma ]]; then
version=${PV}
fi
- _add_kdecategory_dep kde-base "${1}" "${2}" "${version}"
+ _add_kdecategory_dep kde-plasma "${1}" "${2}" "${version}"
}
# @FUNCTION: get_kde_version