summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2015-04-11 17:11:22 +0000
committerMichael Palimaka <kensington@gentoo.org>2015-04-11 17:11:22 +0000
commit8d2483f24a0403e4f6c8c8f6f57cdbf67c130f32 (patch)
treedd16185078974d131596f6ced268c44db786a7b3 /eclass
parentVersion bump. (diff)
downloadgentoo-2-8d2483f24a0403e4f6c8c8f6f57cdbf67c130f32.tar.gz
gentoo-2-8d2483f24a0403e4f6c8c8f6f57cdbf67c130f32.tar.bz2
gentoo-2-8d2483f24a0403e4f6c8c8f6f57cdbf67c130f32.zip
Sync with KDE overlay - don't set CMAKE_MIN_VERSION which is already set by cmake-utils, remove old extra-cmake-utils logic, and improve linguas handling.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ChangeLog8
-rw-r--r--eclass/kde5-functions.eclass9
-rw-r--r--eclass/kde5.eclass32
3 files changed, 25 insertions, 24 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog
index 9f646a2c63fa..27bf020adade 100644
--- a/eclass/ChangeLog
+++ b/eclass/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for eclass directory
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1585 2015/04/11 16:31:36 kensington Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1586 2015/04/11 17:11:22 kensington Exp $
+
+ 11 Apr 2015; Michael Palimaka <kensington@gentoo.org> kde5-functions.eclass,
+ kde5.eclass:
+ Sync with KDE overlay - don't set CMAKE_MIN_VERSION which is already set by
+ cmake-utils, remove old extra-cmake-utils logic, and improve linguas
+ handling.
11 Apr 2015; Michael Palimaka <kensington@gentoo.org> kde5.eclass:
extra-cmake-modules moved from dev-libs to kde-frameworks.
diff --git a/eclass/kde5-functions.eclass b/eclass/kde5-functions.eclass
index 06c75b2db62b..b0307765b954 100644
--- a/eclass/kde5-functions.eclass
+++ b/eclass/kde5-functions.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kde5-functions.eclass,v 1.5 2015/03/18 13:04:35 kensington Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde5-functions.eclass,v 1.6 2015/04/11 17:11:22 kensington Exp $
# @ECLASS: kde5-functions.eclass
# @MAINTAINER:
@@ -23,15 +23,10 @@ case ${EAPI} in
*) die "EAPI=${EAPI:-0} is not supported" ;;
esac
-# @ECLASS-VARIABLE: ECM_MINIMAL
-# @DESCRIPTION:
-# Minimal extra-cmake-modules version to require for the package.
-: ${ECM_MINIMAL:=1.7.0}
-
# @ECLASS-VARIABLE: FRAMEWORKS_MINIMAL
# @DESCRIPTION:
# Minimal Frameworks version to require for the package.
-: ${FRAMEWORKS_MINIMAL:=5.7.0}
+: ${FRAMEWORKS_MINIMAL:=5.8.0}
# @ECLASS-VARIABLE: PLASMA_MINIMAL
# @DESCRIPTION:
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index 92bbe98aacca..4a06fd8dd20a 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kde5.eclass,v 1.5 2015/04/11 16:31:36 kensington Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde5.eclass,v 1.6 2015/04/11 17:11:22 kensington Exp $
# @ECLASS: kde5.eclass
# @MAINTAINER:
@@ -12,8 +12,6 @@
if [[ -z ${_KDE5_ECLASS} ]]; then
_KDE5_ECLASS=1
-CMAKE_MIN_VERSION="2.8.12"
-
# @ECLASS-VARIABLE: VIRTUALX_REQUIRED
# @DESCRIPTION:
# For proper description see virtualx.eclass manpage.
@@ -40,7 +38,7 @@ EXPORT_FUNCTIONS pkg_pretend pkg_setup src_unpack src_prepare src_configure src_
# @ECLASS-VARIABLE: KDE_AUTODEPS
# @DESCRIPTION:
# If set to "false", do nothing.
-# For any other value, add a dependency on dev-libs/extra-cmake-modules and dev-qt/qtcore:5.
+# For any other value, add a dependency on dev-qt/qtcore:5 and kde-frameworks/extra-cmake-modules:5.
: ${KDE_AUTODEPS:=true}
# @ECLASS-VARIABLE: KDE_DEBUG
@@ -107,32 +105,26 @@ fi
case ${KDE_AUTODEPS} in
false) ;;
*)
- if [[ ${CATEGORY} = kde-frameworks ]]; then
- ECM_MINIMAL=1.$(get_version_component_range 2).0
- fi
-
if [[ ${KDE_BUILD_TYPE} = live ]]; then
case ${CATEGORY} in
kde-frameworks)
- ECM_MINIMAL=9999
FRAMEWORKS_MINIMAL=9999
;;
kde-plasma)
- ECM_MINIMAL=9999
FRAMEWORKS_MINIMAL=9999
;;
*) ;;
esac
fi
- DEPEND+=" >=kde-frameworks/extra-cmake-modules-${ECM_MINIMAL}"
+ DEPEND+=" $(add_frameworks_dep extra-cmake-modules)"
RDEPEND+=" >=kde-frameworks/kf-env-3"
COMMONDEPEND+=" >=dev-qt/qtcore-${QT_MINIMAL}:5"
if [[ ${CATEGORY} = kde-plasma ]]; then
RDEPEND+="
!kde-apps/kde-l10n[-minimal]
- !kde-base/kde-l10n:4
+ !kde-base/kde-l10n:4[-minimal(-)]
"
fi
@@ -142,8 +134,6 @@ case ${KDE_AUTODEPS} in
!kde-base/${PN}
"
fi
-
- unset ecm_version
;;
esac
@@ -373,11 +363,21 @@ kde5_src_prepare() {
# enable only the requested translations
# when required
if [[ ${KDE_BUILD_TYPE} = release ]] ; then
- for lang in $(ls po) ; do
+ for lang in $(ls po 2> /dev/null) ; do
if ! has ${lang} ${LINGUAS} ; then
rm -rf po/${lang}
fi
done
+
+ if [[ ${KDE_HANDBOOK} = true ]] ; then
+ pushd doc > /dev/null
+ for lang in $(ls) ; do
+ if ! has ${lang} ${LINGUAS} ; then
+ comment_add_subdirectory ${lang}
+ fi
+ done
+ popd > /dev/null
+ fi
else
rm -rf po
fi
@@ -453,7 +453,7 @@ kde5_src_test() {
fi
cmake-utils_src_test
- }
+ }
# When run as normal user during ebuild development with the ebuild command, the
# kde tests tend to access the session DBUS. This however is not possible in a real