/[gentoo-x86]/eclass/kde4-base.eclass
Gentoo

Diff of /eclass/kde4-base.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.110 Revision 1.111
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2011 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.110 2011/10/29 15:07:16 abcd Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.111 2011/12/18 00:00:45 dilfridge Exp $
4 4
5# @ECLASS: kde4-base.eclass 5# @ECLASS: kde4-base.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# kde@gentoo.org 7# kde@gentoo.org
8# @BLURB: This eclass provides functions for kde 4.X ebuilds 8# @BLURB: This eclass provides functions for kde 4.X ebuilds
10# The kde4-base.eclass provides support for building KDE4 based ebuilds 10# The kde4-base.eclass provides support for building KDE4 based ebuilds
11# and KDE4 applications. 11# and KDE4 applications.
12# 12#
13# NOTE: KDE 4 ebuilds currently support EAPI "3". This will be reviewed 13# NOTE: KDE 4 ebuilds currently support EAPI "3". This will be reviewed
14# over time as new EAPI versions are approved. 14# over time as new EAPI versions are approved.
15
16# @ECLASS-VARIABLE: KDE_SELINUX_MODULE
17# @DESCRIPTION:
18# If set to "none", do nothing.
19# For any other value, add selinux to IUSE, and depending on that useflag
20# add a dependency on sec-policy/selinux-${KDE_SELINUX_MODULE} to (R)DEPEND
21: ${KDE_SELINUX_MODULE:=none}
15 22
16# @ECLASS-VARIABLE: VIRTUALX_REQUIRED 23# @ECLASS-VARIABLE: VIRTUALX_REQUIRED
17# @DESCRIPTION: 24# @DESCRIPTION:
18# For proper description see virtualx.eclass manpage. 25# For proper description see virtualx.eclass manpage.
19# Here we redefine default value to be manual, if your package needs virtualx 26# Here we redefine default value to be manual, if your package needs virtualx
190esac 197esac
191 198
192# @ECLASS-VARIABLE: QT_MINIMAL 199# @ECLASS-VARIABLE: QT_MINIMAL
193# @DESCRIPTION: 200# @DESCRIPTION:
194# Determine version of qt we enforce as minimal for the package. 201# Determine version of qt we enforce as minimal for the package.
195if version_is_at_least 4.5.50 "${KDE_MINIMAL}"; then 202if version_is_at_least 4.7.80 "${KDE_MINIMAL}"; then
203 QT_MINIMAL="${QT_MINIMAL:-4.7.4}"
204else
196 QT_MINIMAL="${QT_MINIMAL:-4.7.0}" 205 QT_MINIMAL="${QT_MINIMAL:-4.7.0}"
197else
198 QT_MINIMAL="${QT_MINIMAL:-4.6.3}"
199fi 206fi
200 207
201# Declarative dependencies 208# Declarative dependencies
202qtdeclarativedepend=" 209qtdeclarativedepend="
203 >=x11-libs/qt-declarative-${QT_MINIMAL}:4 210 >=x11-libs/qt-declarative-${QT_MINIMAL}:4
379 ;; 386 ;;
380 *) ;; 387 *) ;;
381esac 388esac
382unset kdehandbookdepend kdehandbookrdepend 389unset kdehandbookdepend kdehandbookrdepend
383 390
391case ${KDE_SELINUX_MODULE} in
392 none) ;;
393 *)
394 IUSE+=" selinux"
395 kdecommondepend+=" selinux? ( sec-policy/selinux-${KDE_SELINUX_MODULE} )"
396 ;;
397esac
398
384case ${KDE_REQUIRED} in 399case ${KDE_REQUIRED} in
385 always) 400 always)
386 IUSE+=" aqua" 401 IUSE+=" aqua"
387 [[ -n ${kdecommondepend} ]] && COMMONDEPEND+=" ${kdecommondepend}" 402 [[ -n ${kdecommondepend} ]] && COMMONDEPEND+=" ${kdecommondepend}"
388 [[ -n ${kdedepend} ]] && DEPEND+=" ${kdedepend}" 403 [[ -n ${kdedepend} ]] && DEPEND+=" ${kdedepend}"
435 fi 450 fi
436 _kmname_pv="${_kmname}-${PV}" 451 _kmname_pv="${_kmname}-${PV}"
437 case ${KDEBASE} in 452 case ${KDEBASE} in
438 kde-base) 453 kde-base)
439 case ${PV} in 454 case ${PV} in
440 4.[456].8[05] | 4.[456].9[023568]) 455 4.[456789].8[05] | 4.[456789].9[023568])
441 # Unstable KDE SC releases 456 # Unstable KDE SC releases
442 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.bz2" 457 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.bz2"
443 if ! version_is_at_least 4.6.80 ${PV} 458 if ! version_is_at_least 4.6.80 ${PV}
444 then 459 then
445 # KDEPIM IS SPECIAL 460 # KDEPIM IS SPECIAL
598# @DESCRIPTION: 613# @DESCRIPTION:
599# Do some basic settings 614# Do some basic settings
600kde4-base_pkg_setup() { 615kde4-base_pkg_setup() {
601 debug-print-function ${FUNCNAME} "$@" 616 debug-print-function ${FUNCNAME} "$@"
602 617
618 if has handbook ${IUSE} || has "+handbook" ${IUSE} && [ "${KDE_HANDBOOK}" != optional ] ; then
619 eqawarn "Handbook support is enabled via KDE_HANDBOOK=optional in the ebuild."
620 eqawarn "Please do not just set IUSE=handbook, as this leads to dependency errors."
621 fi
622
603 if use_if_iuse kdeprefix; then 623 if use_if_iuse kdeprefix; then
604 eerror "Sorry, kdeprefix support has been removed." 624 eerror "Sorry, kdeprefix support has been removed."
605 eerror "Please remove kdeprefix from your USE variable." 625 eerror "Please remove kdeprefix from your USE variable."
606 die "kdeprefix support has been removed" 626 die "kdeprefix support has been removed"
607 fi 627 fi
718 738
719 # Inject library dependencies 739 # Inject library dependencies
720 if [[ -n ${KMLOADLIBS} ]] ; then 740 if [[ -n ${KMLOADLIBS} ]] ; then
721 load_library_dependencies 741 load_library_dependencies
722 fi 742 fi
723
724 # Replace KDE4Workspace library targets
725 find "${S}" -name CMakeLists.txt \
726 -exec sed -i -r \
727 -e 's/\$\{KDE4WORKSPACE_TASKMANAGER_(LIBRARY|LIBS)\}/taskmanager/g' \
728 -e 's/\$\{KDE4WORKSPACE_KWORKSPACE_(LIBRARY|LIBS)\}/kworkspace/g' \
729 -e 's/\$\{KDE4WORKSPACE_SOLIDCONTROLIFACES_(LIBRARY|LIBS)\}/solidcontrolifaces/g' \
730 -e 's/\$\{KDE4WORKSPACE_SOLIDCONTROL_(LIBRARY|LIBS)\}/solidcontrol/g' \
731 -e 's/\$\{KDE4WORKSPACE_PROCESSUI_(LIBRARY|LIBS)\}/processui/g' \
732 -e 's/\$\{KDE4WORKSPACE_LSOFUI_(LIBRARY|LIBS)\}/lsofui/g' \
733 -e 's/\$\{KDE4WORKSPACE_PLASMACLOCK_(LIBRARY|LIBS)\}/plasmaclock/g' \
734 -e 's/\$\{KDE4WORKSPACE_NEPOMUKQUERYCLIENT_(LIBRARY|LIBS)\}/nepomukqueryclient/g' \
735 -e 's/\$\{KDE4WORKSPACE_NEPOMUKQUERY_(LIBRARY|LIBS)\}/nepomukquery/g' \
736 -e 's/\$\{KDE4WORKSPACE_KSCREENSAVER_(LIBRARY|LIBS)\}/kscreensaver/g' \
737 -e 's/\$\{KDE4WORKSPACE_WEATHERION_(LIBRARY|LIBS)\}/weather_ion/g' \
738 -e 's/\$\{KDE4WORKSPACE_KWINEFFECTS_(LIBRARY|LIBS)\}/kwineffects/g' \
739 -e 's/\$\{KDE4WORKSPACE_KDECORATIONS_(LIBRARY|LIBS)\}/kdecorations/g' \
740 -e 's/\$\{KDE4WORKSPACE_KSGRD_(LIBRARY|LIBS)\}/ksgrd/g' \
741 -e 's/\$\{KDE4WORKSPACE_KEPHAL_(LIBRARY|LIBS)\}/kephal/g' \
742 {} + \
743 || die 'failed to replace KDE4Workspace library targets'
744 743
745 # Hack for manuals relying on outdated DTD, only outside kde-base/koffice/... 744 # Hack for manuals relying on outdated DTD, only outside kde-base/koffice/...
746 if [[ -z ${KDEBASE} ]]; then 745 if [[ -z ${KDEBASE} ]]; then
747 find "${S}" -name "*.docbook" \ 746 find "${S}" -name "*.docbook" \
748 -exec sed -i -r \ 747 -exec sed -i -r \

Legend:
Removed from v.1.110  
changed lines
  Added in v.1.111

  ViewVC Help
Powered by ViewVC 1.1.20