/[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.89 Revision 1.90
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2010 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.89 2011/04/22 11:18:34 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.90 2011/04/22 18:48:03 abcd 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
165# @ECLASS-VARIABLE: KDE_LINGUAS_LIVE_OVERRIDE 165# @ECLASS-VARIABLE: KDE_LINGUAS_LIVE_OVERRIDE
166# @DESCRIPTION: 166# @DESCRIPTION:
167# Set this varible if you want your live package to manage its 167# Set this varible if you want your live package to manage its
168# translations. (Mostly all kde ebuilds does not ship documentation 168# translations. (Mostly all kde ebuilds does not ship documentation
169# and translations in live ebuilds) 169# and translations in live ebuilds)
170if [[ ${BUILD_TYPE} == live && -z ${KDE_LINGUAS_LIVE_OVERRIDE} && ${KDEBASE} != "kde-base" ]]; then 170if [[ ${BUILD_TYPE} == live && -z ${KDE_LINGUAS_LIVE_OVERRIDE} ]]; then
171 KDE_HANDBOOK=never 171 # Kdebase actualy provides the handbooks even for live stuff
172 [[ ${KDEBASE} == kde-base ]] || KDE_HANDBOOK=never
172 KDE_LINGUAS="" 173 KDE_LINGUAS=""
173fi 174fi
174 175
175# Setup packages inheriting this eclass 176# Setup packages inheriting this eclass
176case ${KDEBASE} in 177case ${KDEBASE} in
374# all packages needs oxygen icons for basic iconset 375# all packages needs oxygen icons for basic iconset
375if [[ ${PN} != oxygen-icons ]]; then 376if [[ ${PN} != oxygen-icons ]]; then
376 kderdepend+=" $(add_kdebase_dep oxygen-icons)" 377 kderdepend+=" $(add_kdebase_dep oxygen-icons)"
377fi 378fi
378 379
379# add a dependency over kde-l10n if EAPI4 is around 380# add a dependency over kde-l10n if EAPI4 or better is around
380if [[ ${KDEBASE} != "kde-base" ]] && [[ -n ${KDE_LINGUAS} ]] && has "${EAPI:-0}" 4; then 381if [[ ${KDEBASE} != "kde-base" && -n ${KDE_LINGUAS} && ${EAPI:-0} != 3 ]]; then
381 for _lingua in ${KDE_LINGUAS}; do 382 for _lingua in ${KDE_LINGUAS}; do
382 # if our package has lignuas, pull in kde-l10n with selected lingua enabled, 383 # if our package has lignuas, pull in kde-l10n with selected lingua enabled,
383 # but only for selected ones. 384 # but only for selected ones.
384 # this can't be done on one line because if user doesn't use any localisation 385 # this can't be done on one line because if user doesn't use any localisation
385 # then he is probably not interested in kde-l10n at all. 386 # then he is probably not interested in kde-l10n at all.
386 kderdepend+=" 387 kderdepend+="
387 linguas_${_lingua}? ( $(add_kdebase_dep kde-l10n linguas_${_lingua}(+)?) ) 388 linguas_${_lingua}? ( $(add_kdebase_dep kde-l10n "linguas_${_lingua}(+)?") )
388 " 389 "
389 done 390 done
390 unset _lingua 391 unset _lingua
391fi 392fi
392 393
465 fi 466 fi
466 _kmname_pv="${_kmname}-${PV}" 467 _kmname_pv="${_kmname}-${PV}"
467 case ${KDEBASE} in 468 case ${KDEBASE} in
468 kde-base) 469 kde-base)
469 case ${PV} in 470 case ${PV} in
470 4.[456].8[05] | 4.[456].9[023568] | 4.5.94.1) 471 4.[456].8[05] | 4.[456].9[023568])
471 # Unstable KDE SC releases 472 # Unstable KDE SC releases
472 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.bz2" 473 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.bz2"
473 # KDEPIM IS SPECIAL 474 # KDEPIM IS SPECIAL
474 [[ ${KMNAME} == "kdepim" || ${KMNAME} == "kdepim-runtime" ]] && SRC_URI="mirror://kde/unstable/kdepim/${PV}/src/${_kmname_pv}.tar.bz2" 475 [[ ${KMNAME} == "kdepim" || ${KMNAME} == "kdepim-runtime" ]] && SRC_URI="mirror://kde/unstable/kdepim/${PV}/${_kmname_pv}.tar.bz2"
475 ;; 476 ;;
476 4.4.[6789] | 4.4.1?*) 477 4.4.[6789] | 4.4.1?*)
477 # Stable kdepim releases 478 # Stable kdepim releases
478 SRC_URI="mirror://kde/stable/kdepim-${PV}/src/${_kmname_pv}.tar.bz2" 479 SRC_URI="mirror://kde/stable/kdepim-${PV}/src/${_kmname_pv}.tar.bz2"
479 ;; 480 ;;
741 if [[ ${PN} != kde-l10n && ${PN} != kdepim-l10n && ${PN} != kdelibs ]] && use !handbook; then 742 if [[ ${PN} != kde-l10n && ${PN} != kdepim-l10n && ${PN} != kdelibs ]] && use !handbook; then
742 # documentation in kde4-functions 743 # documentation in kde4-functions
743 : ${KDE_DOC_DIRS:=doc} 744 : ${KDE_DOC_DIRS:=doc}
744 local dir 745 local dir
745 for dir in ${KDE_DOC_DIRS}; do 746 for dir in ${KDE_DOC_DIRS}; do
746 sed -e "/^[[:space:]]*add_subdirectory[[:space:]]*([[:space:]]*${dir}[[:space:]]*)/s/^/#DONOTCOMPILE /" \ 747 sed -e "\!^[[:space:]]*add_subdirectory[[:space:]]*([[:space:]]*${dir}[[:space:]]*)!s/^/#DONOTCOMPILE /" \
747 -e "/^[[:space:]]*ADD_SUBDIRECTORY[[:space:]]*([[:space:]]*${dir}[[:space:]]*)/s/^/#DONOTCOMPILE /" \ 748 -e "\!^[[:space:]]*ADD_SUBDIRECTORY[[:space:]]*([[:space:]]*${dir}[[:space:]]*)!s/^/#DONOTCOMPILE /" \
748 -e "/^[[:space:]]*macro_optional_add_subdirectory[[:space:]]*([[:space:]]*${dir}[[:space:]]*)/s/^/#DONOTCOMPILE /" \ 749 -e "\!^[[:space:]]*macro_optional_add_subdirectory[[:space:]]*([[:space:]]*${dir}[[:space:]]*)!s/^/#DONOTCOMPILE /" \
749 -e "/^[[:space:]]*MACRO_OPTIONAL_ADD_SUBDIRECTORY[[:space:]]*([[:space:]]*${dir}[[:space:]]*)/s/^/#DONOTCOMPILE /" \ 750 -e "\!^[[:space:]]*MACRO_OPTIONAL_ADD_SUBDIRECTORY[[:space:]]*([[:space:]]*${dir}[[:space:]]*)!s/^/#DONOTCOMPILE /" \
750 -i CMakeLists.txt || die "failed to comment out handbook" 751 -i CMakeLists.txt || die "failed to comment out handbook"
751 done 752 done
752 fi 753 fi
753 else 754 else
754 enable_selected_doc_linguas 755 enable_selected_doc_linguas
936 [[ -f ${doc} && -s ${doc} ]] && newdoc "${doc}" "$(basename $(dirname ${doc})).$(basename ${doc})" 937 [[ -f ${doc} && -s ${doc} ]] && newdoc "${doc}" "$(basename $(dirname ${doc})).$(basename ${doc})"
937 done 938 done
938 fi 939 fi
939 940
940 cmake-utils_src_install 941 cmake-utils_src_install
942
943 # In EAPI 4+, we don't want ${PREFIX}/share/doc/HTML to be compressed,
944 # because then khelpcenter can't find the docs
945 [[ ${EAPI:-0} != 3 && -d ${ED}/${PREFIX}/share/doc/HTML ]] &&
946 docompress -x ${PREFIX}/share/doc/HTML
941} 947}
942 948
943# @FUNCTION: kde4-base_pkg_preinst 949# @FUNCTION: kde4-base_pkg_preinst
944# @DESCRIPTION: 950# @DESCRIPTION:
945# Function storing icon caches 951# Function storing icon caches

Legend:
Removed from v.1.89  
changed lines
  Added in v.1.90

  ViewVC Help
Powered by ViewVC 1.1.20