/[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.71 Revision 1.72
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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.71 2013/08/15 15:10:05 kensington Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.72 2013/08/15 15:29:58 kensington 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.
22KDEMETA_EXPF="pkg_setup src_unpack src_prepare src_configure src_compile src_test src_install pkg_preinst pkg_postinst pkg_postrm" 22KDEMETA_EXPF="pkg_setup src_unpack src_prepare src_configure src_compile src_test src_install pkg_preinst pkg_postinst pkg_postrm"
23EXPORT_FUNCTIONS ${KDEMETA_EXPF} 23EXPORT_FUNCTIONS ${KDEMETA_EXPF}
24 24
25# Add dependencies that all packages in a certain module share. 25# Add dependencies that all packages in a certain module share.
26case ${KMNAME} in 26case ${KMNAME} in
27 kdebase|kdebase-apps|kde-baseapps|kdebase-workspace|kde-workspace|kdebase-runtime|kde-runtime|kdegraphics)
28 COMMONDEPEND+=" >=media-libs/qimageblitz-0.0.4"
29 ;;
30 kdepim|kdepim-runtime) 27 kdepim|kdepim-runtime)
31 case ${PN} in 28 case ${PN} in
32 akregator|kaddressbook|kjots|kmail|knode|knotes|korganizer|ktimetracker) 29 akregator|kaddressbook|kjots|kmail|knode|knotes|korganizer|ktimetracker)
33 IUSE+=" +kontact" 30 IUSE+=" +kontact"
34 RDEPEND+=" kontact? ( $(add_kdebase_dep kontact) )" 31 RDEPEND+=" kontact? ( $(add_kdebase_dep kontact) )"
509 if [[ "${PN}" != "kwin" ]]; then 506 if [[ "${PN}" != "kwin" ]]; then
510 sed -i -e "/^ macro_log_feature(OPENGL_OR_ES_FOUND/s/TRUE/FALSE/" \ 507 sed -i -e "/^ macro_log_feature(OPENGL_OR_ES_FOUND/s/TRUE/FALSE/" \
511 "${S}"/CMakeLists.txt || die "${LINENO}: sed died removing kde-workspace opengl dependency" 508 "${S}"/CMakeLists.txt || die "${LINENO}: sed died removing kde-workspace opengl dependency"
512 fi 509 fi
513 ;; 510 ;;
514 kdebase-runtime | kde-runtime) 511 kde-runtime)
515 # COLLISION PROTECT section 512 # COLLISION PROTECT section
516 # Only install the kde4 script as part of kde-base/kdebase-data 513 # Only install the kde4 script as part of kde-base/kdebase-data
517 if [[ ${PN} != kdebase-data && -f CMakeLists.txt ]]; then 514 if [[ ${PN} != kdebase-data && -f CMakeLists.txt ]]; then
518 sed -e '/^install(PROGRAMS[[:space:]]*[^[:space:]]*\/kde4[[:space:]]/s/^/#DONOTINSTALL /' \ 515 sed -e '/^install(PROGRAMS[[:space:]]*[^[:space:]]*\/kde4[[:space:]]/s/^/#DONOTINSTALL /' \
519 -i CMakeLists.txt || die "Sed to exclude bin/kde4 failed" 516 -i CMakeLists.txt || die "Sed to exclude bin/kde4 failed"
549 ;; 546 ;;
550 esac 547 esac
551 ;; 548 ;;
552 esac 549 esac
553 ;; 550 ;;
554 kdewebdev)
555 # Disable hardcoded checks
556 sed -e 's/find_package(KdepimLibs REQUIRED)/macro_optional_find_package(KdepimLibs)/' \
557 -e 's/find_package(LibXml2 REQUIRED)/macro_optional_find_package(LibXml2)/' \
558 -e 's/find_package(LibXslt REQUIRED)/macro_optional_find_package(LibXslt)/' \
559 -e 's/find_package(Boost REQUIRED)/macro_optional_find_package(Boost)/' \
560 -i CMakeLists.txt || die "failed to disable hardcoded checks"
561 ;;
562 esac 551 esac
563 552
564 popd > /dev/null 553 popd > /dev/null
565} 554}
566 555
568# @DESCRIPTION: 557# @DESCRIPTION:
569# Currently just calls its equivalent in kde4-base.eclass(5). Use this one in split 558# Currently just calls its equivalent in kde4-base.eclass(5). Use this one in split
570# ebuilds. 559# ebuilds.
571kde4-meta_src_configure() { 560kde4-meta_src_configure() {
572 debug-print-function ${FUNCNAME} "$@" 561 debug-print-function ${FUNCNAME} "$@"
573
574 # backwards-compatibility: make mycmakeargs an array, if it isn't already
575 if [[ $(declare -p mycmakeargs 2>&-) != "declare -a mycmakeargs="* ]]; then
576 mycmakeargs=(${mycmakeargs})
577 fi
578
579 # Set some cmake default values here (usually workarounds for automagic deps)
580 case ${KMNAME} in
581 kdewebdev)
582 mycmakeargs=(
583 -DWITH_KdepimLibs=OFF
584 -DWITH_LibXml2=OFF
585 -DWITH_LibXslt=OFF
586 -DWITH_Boost=OFF
587 -DWITH_LibTidy=OFF
588 "${mycmakeargs[@]}"
589 )
590 ;;
591 esac
592 562
593 kde4-base_src_configure 563 kde4-base_src_configure
594} 564}
595 565
596# @FUNCTION: kde4-meta_src_compile 566# @FUNCTION: kde4-meta_src_compile

Legend:
Removed from v.1.71  
changed lines
  Added in v.1.72

  ViewVC Help
Powered by ViewVC 1.1.20