/[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.21 Revision 1.22
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.21 2009/05/29 10:29:10 dagger Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.22 2009/06/04 09:29:54 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.
29 HOMEPAGE="http://www.koffice.org/" 29 HOMEPAGE="http://www.koffice.org/"
30 LICENSE="GPL-2" 30 LICENSE="GPL-2"
31 ;; 31 ;;
32esac 32esac
33 33
34# remove this codeblock when 4.2.3 is dropped
35if [[ ${PV} = "4.2.3" ]]; then
36 [[ ${PN} != khelpcenter ]] && has doc ${IUSE//+} \
37 RDEPEND="${RDEPEND} doc? ( >=kde-base/khelpcenter-${PV}:${SLOT}[kdeprefix=] )"
38else
34# Add khelpcenter dependency when installing 39# Add khelpcenter dependency when installing handbooks
35if [[ ${PN} != khelpcenter ]] && has doc ${IUSE//+} && use doc; then 40if [[ ${PN} != khelpcenter ]] && has handbook ${IUSE//+}; then
36 RDEPEND="${RDEPEND} 41 RDEPEND="${RDEPEND}
37 >=kde-base/khelpcenter-${PV}:${SLOT}[kdeprefix=] 42 handbook? ( >=kde-base/khelpcenter-${PV}:${SLOT}[kdeprefix=] )
38 " 43 "
39fi 44fi
40 45fi
41# Add dependencies that all packages in a certain module share. 46# Add dependencies that all packages in a certain module share.
42case ${KMNAME} in 47case ${KMNAME} in
43 kdebase|kdebase-apps|kdebase-workspace|kdebase-runtime|kdegraphic) 48 kdebase|kdebase-apps|kdebase-workspace|kdebase-runtime|kdegraphics)
44 DEPEND="${DEPEND} 49 DEPEND="${DEPEND}
45 >=kde-base/qimageblitz-0.0.4 50 >=kde-base/qimageblitz-0.0.4
46 " 51 "
47 RDEPEND="${RDEPEND} 52 RDEPEND="${RDEPEND}
48 >=kde-base/qimageblitz-0.0.4 53 >=kde-base/qimageblitz-0.0.4
64 RDEPEND="${RDEPEND} 69 RDEPEND="${RDEPEND}
65 dev-libs/boost 70 dev-libs/boost
66 >=kde-base/kdepimlibs-${PV}:${SLOT}[kdeprefix=] 71 >=kde-base/kdepimlibs-${PV}:${SLOT}[kdeprefix=]
67 " 72 "
68 case ${PN} in 73 case ${PN} in
69 akregator|kaddressbook|kjots|kmail|kmobiletools|knode|knotes|korganizer|ktimetracker) 74 akregator|kaddressbook|kjots|kmail|knode|knotes|korganizer|ktimetracker)
70 IUSE="+kontact" 75 IUSE="+kontact"
71 RDEPEND="${RDEPEND} 76 RDEPEND="${RDEPEND}
72 kontact? ( >=kde-base/kontactinterfaces-${PV}:${SLOT}[kdeprefix=] ) 77 kontact? ( >=kde-base/kontactinterfaces-${PV}:${SLOT}[kdeprefix=] )
73 " 78 "
74 ;; 79 ;;
158 163
159# @ECLASS-VARIABLE: KMEXTRA 164# @ECLASS-VARIABLE: KMEXTRA
160# @DESCRIPTION: 165# @DESCRIPTION:
161# All subdirectories listed here will be extracted, compiled & installed. 166# All subdirectories listed here will be extracted, compiled & installed.
162# $KMMODULE is always added to $KMEXTRA. 167# $KMMODULE is always added to $KMEXTRA.
163# If the doc USE-flag is set, and if this directory exists, 168# If the handbook USE-flag is set, and if this directory exists,
164# then "doc/$KMMODULE" is added to $KMEXTRA. In other cases, this should be 169# then "doc/$KMMODULE" is added to $KMEXTRA. In other cases, this should be
165# handled in the ebuild. 170# handled in the ebuild.
166# If the documentation is in a different subdirectory, you should add it to KMEXTRA. 171# If the documentation is in a different subdirectory, you should add it to KMEXTRA.
167 172
168# @ECLASS-VARIABLE: KMCOMPILEONLY 173# @ECLASS-VARIABLE: KMCOMPILEONLY
253 "${S}"/CMakeLists.txt || die "Sed to exclude bin/kde4 failed" 258 "${S}"/CMakeLists.txt || die "Sed to exclude bin/kde4 failed"
254 fi 259 fi
255 else 260 else
256 local abort tarball tarfile f extractlist moduleprefix postfix 261 local abort tarball tarfile f extractlist moduleprefix postfix
257 case ${PV} in 262 case ${PV} in
258 4.2.85) 263 4.2.85|4.2.90)
259 # block for normally packed upstream unstable snapshots 264 # block for normally packed upstream unstable snapshots
260 KMTARPARAMS="${KMTARPARAMS} --bzip2" # bz2 265 KMTARPARAMS="${KMTARPARAMS} --bzip2" # bz2
261 postfix="bz2" 266 postfix="bz2"
262 ;; 267 ;;
263 4.2.9* | 4.2.8* | 4.2.7* | 4.2.6*) 268 4.2.9* | 4.2.8* | 4.2.7* | 4.2.6*)
337# KMEXTRACTONLY and KMTARPARAMS. 342# KMEXTRACTONLY and KMTARPARAMS.
338kde4-meta_create_extractlists() { 343kde4-meta_create_extractlists() {
339 debug-print-function ${FUNCNAME} "$@" 344 debug-print-function ${FUNCNAME} "$@"
340 345
341 # TODO change to KMEXTRA for more strict check 346 # TODO change to KMEXTRA for more strict check
347 # remvove 4.2.3 check when dropped
348 if [[ ${PV} = "4.2.3" ]]; then
342 if has doc ${IUSE//+} && use doc && [[ -n ${KMMODULE} ]]; then 349 if has doc ${IUSE//+} && use doc && [[ -n ${KMMODULE} ]]; then
350 KMEXTRA_NONFATAL="${KMEXTRA_NONFATAL} doc/${KMMODULE##*/}"
351 fi
352 else
353 if has handbook ${IUSE//+} && use handbook && [[ -n ${KMMODULE} ]]; then
343 # We use the basename of $KMMODULE because $KMMODULE can contain 354 # We use the basename of $KMMODULE because $KMMODULE can contain
344 # the path to the module subdirectory. 355 # the path to the module subdirectory.
345 KMEXTRA_NONFATAL="${KMEXTRA_NONFATAL} doc/${KMMODULE##*/}" 356 KMEXTRA_NONFATAL="${KMEXTRA_NONFATAL} doc/${KMMODULE##*/}"
357 fi
346 fi 358 fi
347 359
348 # Add some CMake-files to KMEXTRACTONLY. 360 # Add some CMake-files to KMEXTRACTONLY.
349 # Note that this actually doesn't include KMEXTRA handling. 361 # Note that this actually doesn't include KMEXTRA handling.
350 # In those cases you should care to add the relevant files to KMEXTRACTONLY 362 # In those cases you should care to add the relevant files to KMEXTRACTONLY
709# @DESCRIPTION: 721# @DESCRIPTION:
710# Display information about application handbook and invoke kbuildsycoca4. 722# Display information about application handbook and invoke kbuildsycoca4.
711kde4-meta_pkg_postinst() { 723kde4-meta_pkg_postinst() {
712 debug-print-function ${FUNCNAME} "$@" 724 debug-print-function ${FUNCNAME} "$@"
713 725
714 if has doc ${IUSE//+} && ! use doc; then 726 if has handbook ${IUSE//+} && ! use handbook; then
715 echo 727 echo
716 einfo "Application handbook for ${PN} has not been installed." 728 einfo "Application handbook for ${PN} has not been installed."
717 einfo "To install handbook, reemerge =${CATEGORY}/${P} with 'doc' USE flag." 729 einfo "To install handbook, reemerge =${CATEGORY}/${P} with 'handbook' USE flag."
718 echo 730 echo
719 fi 731 fi
720 732
721 kde4-base_pkg_postinst 733 kde4-base_pkg_postinst
722} 734}

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

  ViewVC Help
Powered by ViewVC 1.1.20