/[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.29 Revision 1.31
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.29 2009/12/02 17:07:05 abcd Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.31 2009/12/14 19:44:15 abcd 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.
14 14
15inherit kde4-base versionator 15inherit kde4-base versionator
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
20 die "kde4-meta.eclass inherited but KMNAME not defined - broken ebuild" 19[[ -z ${KMNAME} ]] && die "kde4-meta.eclass inherited but KMNAME not defined - broken ebuild"
21fi
22 20
23# Add khelpcenter dependency when installing handbooks 21# Add khelpcenter dependency when installing handbooks
24if [[ ${PN} != khelpcenter ]] && has handbook ${IUSE//+}; then 22if [[ ${PN} != khelpcenter ]] && has handbook ${IUSE//+}; then
25 RDEPEND+=" handbook? ( $(add_kdebase_dep khelpcenter) )" 23 RDEPEND+=" handbook? ( $(add_kdebase_dep khelpcenter) )"
26fi 24fi
27 25
28# Add dependencies that all packages in a certain module share. 26# Add dependencies that all packages in a certain module share.
29case ${KMNAME} in 27case ${KMNAME} in
30 kdebase|kdebase-apps|kdebase-workspace|kdebase-runtime|kdegraphics) 28 kdebase|kdebase-apps|kdebase-workspace|kdebase-runtime|kdegraphics)
33 kdepim|kdepim-runtime) 31 kdepim|kdepim-runtime)
34 COMMONDEPEND+=" $(add_kdebase_dep kdepimlibs)" 32 COMMONDEPEND+=" $(add_kdebase_dep kdepimlibs)"
35 case ${PN} in 33 case ${PN} in
36 akregator|kaddressbook|kjots|kmail|knode|knotes|korganizer|ktimetracker) 34 akregator|kaddressbook|kjots|kmail|knode|knotes|korganizer|ktimetracker)
37 IUSE+=" +kontact" 35 IUSE+=" +kontact"
38 if ! slot_is_at_least 4.4 ${SLOT} || [[ ${SLOT} == 4.4 && ${PV} < 4.3.68 ]]; then 36 if ! slot_is_at_least 4.4 ${SLOT}; then
39 RDEPEND+=" kontact? ( $(add_kdebase_dep kontactinterfaces) )" 37 RDEPEND+=" kontact? ( $(add_kdebase_dep kontactinterfaces) )"
40 fi 38 fi
41 ;; 39 ;;
42 esac 40 esac
43 ;; 41 ;;
353 KMEXTRACTONLY+=" 351 KMEXTRACTONLY+="
354 kleopatra/ConfigureChecks.cmake" 352 kleopatra/ConfigureChecks.cmake"
355 if has kontact ${IUSE//+} && use kontact; then 353 if has kontact ${IUSE//+} && use kontact; then
356 KMEXTRA+=" 354 KMEXTRA+="
357 kontact/plugins/${PLUGINNAME:-${PN}}/" 355 kontact/plugins/${PLUGINNAME:-${PN}}/"
358 if ! slot_is_at_least 4.4 ${SLOT} || [[ ${SLOT} == 4.4 && ${PV} < 4.3.68 ]]; then 356 if ! slot_is_at_least 4.4 ${SLOT}; then
359 KMEXTRACTONLY+=" 357 KMEXTRACTONLY+="
360 kontactinterfaces/" 358 kontactinterfaces/"
361 fi 359 fi
362 fi 360 fi
363 ;; 361 ;;
634# Currently just calls its equivalent in kde4-base.eclass(5). Use this one in split 632# Currently just calls its equivalent in kde4-base.eclass(5). Use this one in split
635# ebuilds. 633# ebuilds.
636kde4-meta_src_configure() { 634kde4-meta_src_configure() {
637 debug-print-function ${FUNCNAME} "$@" 635 debug-print-function ${FUNCNAME} "$@"
638 636
637 # backwards-compatibility: make mycmakeargs an array, if it isn't already
638 if [[ $(declare -p mycmakeargs 2>&-) != "declare -a mycmakeargs="* ]]; then
639 mycmakeargs=(${mycmakeargs})
640 fi
641
639 # Set some cmake default values here (usually workarounds for automagic deps) 642 # Set some cmake default values here (usually workarounds for automagic deps)
640 case ${KMNAME} in 643 case ${KMNAME} in
641 kdewebdev) 644 kdewebdev)
642 mycmakeargs=" 645 mycmakeargs=(
643 -DWITH_KdepimLibs=OFF 646 -DWITH_KdepimLibs=OFF
644 -DWITH_LibXml2=OFF 647 -DWITH_LibXml2=OFF
645 -DWITH_LibXslt=OFF 648 -DWITH_LibXslt=OFF
646 -DWITH_Boost=OFF 649 -DWITH_Boost=OFF
647 -DWITH_LibTidy=OFF 650 -DWITH_LibTidy=OFF
648 ${mycmakeargs}" 651 "${mycmakeargs[@]}"
652 )
649 ;; 653 ;;
650 esac 654 esac
651 655
652 kde4-base_src_configure 656 kde4-base_src_configure
653} 657}
662 kde4-base_src_compile "$@" 666 kde4-base_src_compile "$@"
663} 667}
664 668
665# @FUNCTION: kde4-meta_src_test 669# @FUNCTION: kde4-meta_src_test
666# @DESCRIPTION: 670# @DESCRIPTION:
667# Currently just calls its equivalent in kde4-base.eclass(5). Use this in split 671# Currently just calls its equivalent in kde4-base.eclass(5) if
668# ebuilds. 672# I_KNOW_WHAT_I_AM_DOING is set. Use this in split ebuilds.
669kde4-meta_src_test() { 673kde4-meta_src_test() {
670 debug-print-function $FUNCNAME "$@" 674 debug-print-function $FUNCNAME "$@"
671 675
676 if [[ $I_KNOW_WHAT_I_AM_DOING ]]; then
672 kde4-base_src_test 677 kde4-base_src_test
678 else
679 einfo "Tests disabled"
680 fi
673} 681}
674 682
675# @FUNCTION: kde4-meta_src_install 683# @FUNCTION: kde4-meta_src_install
676# @DESCRIPTION: 684# @DESCRIPTION:
677# Function for installing KDE4 split applications. 685# Function for installing KDE4 split applications.

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.31

  ViewVC Help
Powered by ViewVC 1.1.20