diff options
| author | Maciej Mrozowski <reavertm@gentoo.org> | 2010-09-03 19:20:49 +0200 |
|---|---|---|
| committer | Maciej Mrozowski <reavertm@gentoo.org> | 2010-09-03 19:27:27 +0200 |
| commit | bf6cd57ea2cc2a6c8153de8886fc1b0d9108b9d2 (patch) | |
| tree | be30389d3b459d711272ba4a0809d6b7ac863f10 | |
| parent | 76f7ef0c77de5897bc8995e74f2f7379f8daac30 (diff) | |
| download | kde-bf6cd57ea2cc2a6c8153de8886fc1b0d9108b9d2.tar.gz kde-bf6cd57ea2cc2a6c8153de8886fc1b0d9108b9d2.tar.bz2 kde-bf6cd57ea2cc2a6c8153de8886fc1b0d9108b9d2.zip | |
[eclass/kde4-{base,functions}] Add KDE_HANDBOOK support
| -rw-r--r-- | eclass/kde4-base.eclass | 49 | ||||
| -rw-r--r-- | eclass/kde4-functions.eclass | 1 |
2 files changed, 35 insertions, 15 deletions
diff --git a/eclass/kde4-base.eclass b/eclass/kde4-base.eclass index f16dd02e298..8c374ad4274 100644 --- a/eclass/kde4-base.eclass +++ b/eclass/kde4-base.eclass @@ -113,21 +113,6 @@ EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare ${export_fns} pkg_postinst pkg unset buildsystem_eclass unset export_fns -case ${KDEBASE} in - kde-base) - HOMEPAGE="http://www.kde.org/" - LICENSE="GPL-2" - ;; - koffice) - HOMEPAGE="http://www.koffice.org/" - LICENSE="GPL-2" - ;; - kdevelop) - HOMEPAGE="http://www.kdevelop.org/" - LICENSE="GPL-2" - ;; -esac - # @ECLASS-VARIABLE: OPENGL_REQUIRED # @DESCRIPTION: # Is qt-opengl required? Possible values are 'always', 'optional' and 'never'. @@ -160,9 +145,22 @@ CPPUNIT_REQUIRED="${CPPUNIT_REQUIRED:-never}" # Note that for kde-base packages this variable is fixed to 'always'. KDE_REQUIRED="${KDE_REQUIRED:-always}" +# @ECLASS-VARIABLE: KDE_HANDBOOK +# @DESCRIPTION: +# Set to enable handbook in application. It adds +handbook to IUSE, handbook dirs +# to KMEXTRA and ensures buildtime and runtime dependencies. +[[ -n ${KDE_HANDBOOK} ]] && IUSE+=" +handbook" + +# @ECLASS-VARIABLE: KDE_HANDBOOK_DIRS +# @DESCRIPTION: +# Specify additional handbook locations. Default is (doc doc/%lingua) +KDE_HANDBOOK_DIRS=${KDE_HANDBOOK_DIRS:-(doc doc/%lingua)} + # Setup packages inheriting this eclass case ${KDEBASE} in kde-base) + HOMEPAGE="http://www.kde.org/" + LICENSE="GPL-2" if [[ $BUILD_TYPE = live ]]; then # Disable tests for live ebuilds RESTRICT+=" test" @@ -183,6 +181,14 @@ case ${KDEBASE} in # Block installation of other SLOTS unless kdeprefix RDEPEND+=" $(block_other_slots)" ;; + koffice) + HOMEPAGE="http://www.koffice.org/" + LICENSE="GPL-2" + ;; + kdevelop) + HOMEPAGE="http://www.kdevelop.org/" + LICENSE="GPL-2" + ;; esac # @ECLASS-VARIABLE: QT_MINIMAL @@ -322,6 +328,18 @@ kdedepend=" x11-proto/xf86vidmodeproto ) " + +# Handbook handling - dependencies +if [[ ${PN} != khelpcenter ]]; then + if [[ -n ${KDE_HANDBOOK} ]]; then + if [[ ${KDEBASE} = kde-base ]]; then + PDEPEND+=" handbook? ( $(add_kdebase_dep khelpcenter) )" + else + PDEPEND+=" handbook? ( >=kde-base/khelpcenter-${KDE_MINIMAL} )" + fi + fi +fi + case ${KDE_REQUIRED} in always) IUSE+=" aqua" @@ -341,6 +359,7 @@ unset kdecommondepend kdedepend debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: COMMONDEPEND is ${COMMONDEPEND}" debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: DEPEND (only) is ${DEPEND}" debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: RDEPEND (only) is ${RDEPEND}" +debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: PDEPEND is ${PDEPEND}" # Accumulate dependencies set by this eclass DEPEND+=" ${COMMONDEPEND}" diff --git a/eclass/kde4-functions.eclass b/eclass/kde4-functions.eclass index 1dc507ba74a..435b43c2daf 100644 --- a/eclass/kde4-functions.eclass +++ b/eclass/kde4-functions.eclass @@ -206,6 +206,7 @@ enable_selected_doc_linguas() { # @DESCRIPTION: # Variable specifying whitespace separated patterns for documentation locations. # Default is "doc/%lingua" + # @DEPRECATED: Use KDE_HANDBOOK_DIRS instead. KDE_DOC_DIRS=${KDE_DOC_DIRS:='doc/%lingua'} local linguas for pattern in ${KDE_DOC_DIRS}; do |
