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

Diff of /eclass/kde4-meta.eclass

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

Revision 1.27 Revision 1.28
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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-meta.eclass,v 1.27 2009/10/27 14:16:49 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.28 2009/12/01 10:56:17 scarabeus Exp $
4# 4#
5# @ECLASS: kde4-meta.eclass 5# @ECLASS: kde4-meta.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# kde@gentoo.org 7# kde@gentoo.org
8# @BLURB: Eclass for writing "split" KDE packages. 8# @BLURB: Eclass for writing "split" KDE packages.
16 16
17EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare src_configure src_compile src_test src_install pkg_postinst pkg_postrm 17EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare src_configure src_compile src_test src_install pkg_postinst pkg_postrm
18 18
19if [[ -z ${KMNAME} ]]; then 19if [[ -z ${KMNAME} ]]; then
20 die "kde4-meta.eclass inherited but KMNAME not defined - broken ebuild" 20 die "kde4-meta.eclass inherited but KMNAME not defined - broken ebuild"
21fi
22
23# Add khelpcenter dependency when installing handbooks
24if [[ ${PN} != khelpcenter ]] && has handbook ${IUSE//+}; then
25 RDEPEND+=" handbook? ( $(add_kdebase_dep khelpcenter) )"
26fi 21fi
27 22
28# Add dependencies that all packages in a certain module share. 23# Add dependencies that all packages in a certain module share.
29case ${KMNAME} in 24case ${KMNAME} in
30 kdebase|kdebase-apps|kdebase-workspace|kdebase-runtime|kdegraphics) 25 kdebase|kdebase-apps|kdebase-workspace|kdebase-runtime|kdegraphics)
31 COMMONDEPEND+=" >=kde-base/qimageblitz-0.0.4" 26 COMMONDEPEND+=" >=kde-base/qimageblitz-0.0.4"
32 ;; 27 ;;
33 kdepim|kdepim-runtime) 28 kdepim|kdepim-runtime)
34 COMMONDEPEND+="
35 dev-libs/boost
36 $(add_kdebase_dep kdepimlibs) 29 COMMONDEPEND+=" $(add_kdebase_dep kdepimlibs)"
37 "
38 case ${PN} in 30 case ${PN} in
39 akregator|kaddressbook|kjots|kmail|knode|knotes|korganizer|ktimetracker) 31 akregator|kaddressbook|kjots|kmail|knode|knotes|korganizer|ktimetracker)
40 IUSE+=" +kontact" 32 IUSE+=" +kontact"
41 if ! slot_is_at_least 4.4 ${SLOT} || [[ ${SLOT} == 4.4 && ${PV} < 4.3.68 ]]; then 33 if ! slot_is_at_least 4.4 ${SLOT} || [[ ${SLOT} == 4.4 && ${PV} < 4.3.68 ]]; then
42 RDEPEND+=" kontact? ( $(add_kdebase_dep kontactinterfaces) )" 34 RDEPEND+=" kontact? ( $(add_kdebase_dep kontactinterfaces) )"
220 # block for normally packed upstream unstable snapshots 212 # block for normally packed upstream unstable snapshots
221 KMTARPARAMS+=" --bzip2" # bz2 213 KMTARPARAMS+=" --bzip2" # bz2
222 postfix="bz2" 214 postfix="bz2"
223 ;; 215 ;;
224 4.3.[6-9]*) 216 4.3.[6-9]*)
225 KMTARPARAMS+=" --lzma" # lzma 217 # Not passing --xz, as it doesn't work with stable tar
218 KMTARPARAMS+=" --use-compress-program=xz" # xz
226 postfix="lzma" 219 postfix="xz"
227 ;; 220 ;;
228 *) 221 *)
229 KMTARPARAMS+=" --bzip2" # bz2 222 KMTARPARAMS+=" --bzip2" # bz2
230 postfix="bz2" 223 postfix="bz2"
231 ;; 224 ;;
698 kde4-base_src_make_doc 691 kde4-base_src_make_doc
699} 692}
700 693
701# @FUNCTION: kde4-meta_pkg_postinst 694# @FUNCTION: kde4-meta_pkg_postinst
702# @DESCRIPTION: 695# @DESCRIPTION:
703# Display information about application handbook and invoke kbuildsycoca4. 696# Invoke kbuildsycoca4.
704kde4-meta_pkg_postinst() { 697kde4-meta_pkg_postinst() {
705 debug-print-function ${FUNCNAME} "$@" 698 debug-print-function ${FUNCNAME} "$@"
706
707 if has handbook ${IUSE//+} && ! use handbook; then
708 echo
709 einfo "Application handbook for ${PN} has not been installed."
710 einfo "To install handbook, reemerge =${CATEGORY}/${PF} with 'handbook' USE flag."
711 echo
712 fi
713 699
714 kde4-base_pkg_postinst 700 kde4-base_pkg_postinst
715} 701}
716 702
717# @FUNCTION: kde4-meta_pkg_postrm 703# @FUNCTION: kde4-meta_pkg_postrm

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

  ViewVC Help
Powered by ViewVC 1.1.20