/[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.24 Revision 1.33
1# Copyright 1999-2009 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-meta.eclass,v 1.24 2009/08/07 01:00:11 wired Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.33 2010/02/02 14:20:16 reavertm 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
23# Add khelpcenter dependency when installing handbooks
24if [[ ${PN} != khelpcenter ]] && has handbook ${IUSE//+}; then
25 RDEPEND+=" handbook? ( >=kde-base/khelpcenter-${PV}:${SLOT}[kdeprefix=] )"
26fi
27 20
28# Add dependencies that all packages in a certain module share. 21# Add dependencies that all packages in a certain module share.
29case ${KMNAME} in 22case ${KMNAME} in
30 kdebase|kdebase-apps|kdebase-workspace|kdebase-runtime|kdegraphics) 23 kdebase|kdebase-apps|kdebase-workspace|kdebase-runtime|kdegraphics)
31 COMMONDEPEND+=" >=kde-base/qimageblitz-0.0.4" 24 COMMONDEPEND+=" >=kde-base/qimageblitz-0.0.4"
32 ;; 25 ;;
33 kdenetwork)
34 COMMONDEPEND+=" >=kde-base/kdepimlibs-${PV}:${SLOT}[kdeprefix=]"
35 ;;
36 kdepim|kdepim-runtime) 26 kdepim|kdepim-runtime)
37 COMMONDEPEND+=" 27 ! slot_is_at_least 4.4 ${SLOT} && COMMONDEPEND+=" $(add_kdebase_dep kdepimlibs)"
38 dev-libs/boost
39 >=kde-base/kdepimlibs-${PV}:${SLOT}[kdeprefix=]
40 "
41 case ${PN} in 28 case ${PN} in
42 akregator|kaddressbook|kjots|kmail|knode|knotes|korganizer|ktimetracker) 29 akregator|kaddressbook|kjots|kmail|knode|knotes|korganizer|ktimetracker)
43 IUSE+=" +kontact" 30 IUSE+=" +kontact"
44 RDEPEND+=" kontact? ( >=kde-base/kontactinterfaces-${PV}:${SLOT}[kdeprefix=] )" 31 RDEPEND+=" kontact? ( $(add_kdebase_dep kontact) )"
45 ;; 32 ;;
46 esac 33 esac
47 ;; 34 ;;
48 kdegames) 35 kdegames)
49 if [[ ${PN} != libkdegames ]]; then 36 if [[ ${PN} != libkdegames ]]; then
50 COMMONDEPEND+=" >=kde-base/libkdegames-${PV}:${SLOT}[kdeprefix=] " 37 COMMONDEPEND+=" $(add_kdebase_dep libkdegames)"
51 fi 38 fi
52 ;; 39 ;;
53 koffice) 40 koffice)
54 [[ ${PN} != koffice-data ]] && IUSE+=" debug" 41 [[ ${PN} != koffice-data ]] && IUSE+=" debug"
55 RDEPEND+=" 42 RDEPEND+="
215 "${S}"/CMakeLists.txt || die "Sed to exclude bin/kde4 failed" 202 "${S}"/CMakeLists.txt || die "Sed to exclude bin/kde4 failed"
216 fi 203 fi
217 else 204 else
218 local abort tarball tarfile f extractlist moduleprefix postfix 205 local abort tarball tarfile f extractlist moduleprefix postfix
219 case ${PV} in 206 case ${PV} in
220 4.3.85 | 4.3.90 | 4.3.95 | 4.3.96 | 4.3.98 | 4.2.85 | 4.2.90 | 4.2.95 | 4.2.96 | 4.2.98) 207 4.[34].8[05] | 4.[34].9[0568])
221 # block for normally packed upstream unstable snapshots 208 # block for normally packed upstream unstable snapshots
222 KMTARPARAMS+=" --bzip2" # bz2 209 KMTARPARAMS+=" --bzip2" # bz2
223 postfix="bz2" 210 postfix="bz2"
224 ;; 211 ;;
225 4.2.9* | 4.2.8* | 4.2.7* | 4.2.6* | 4.3.9* | 4.3.8* | 4.3.7* | 4.3.6*) 212 4.[34].[6-9]*)
226 KMTARPARAMS+=" --lzma" # lzma 213 # Not passing --xz, as it doesn't work with stable tar
214 KMTARPARAMS+=" --use-compress-program=xz" # xz
227 postfix="lzma" 215 postfix="xz"
228 ;; 216 ;;
229 *) 217 *)
230 KMTARPARAMS+=" --bzip2" # bz2 218 KMTARPARAMS+=" --bzip2" # bz2
231 postfix="bz2" 219 postfix="bz2"
232 ;; 220 ;;
337 ;; 325 ;;
338 kdegames) 326 kdegames)
339 if [[ ${PN} != libkdegames ]]; then 327 if [[ ${PN} != libkdegames ]]; then
340 KMEXTRACTONLY+=" 328 KMEXTRACTONLY+="
341 libkdegames/" 329 libkdegames/"
330 KMLOADLIBS="${KMLOADLIBS} libkdegames"
342 fi 331 fi
343 ;; 332 ;;
344 kdepim) 333 kdepim)
345 if [[ ${PN} != libkdepim ]]; then 334 if [[ ${PN} != libkdepim ]]; then
346 KMEXTRACTONLY+=" 335 KMEXTRACTONLY+="
347 libkdepim/" 336 libkdepim/"
348 fi 337 fi
349 case ${SLOT} in
350 4.3|4.4|live)
351 KMEXTRACTONLY+="
352 kdepim-version.h
353 config-enterprise.h.cmake"
354 ;;
355 esac
356 KMEXTRACTONLY+=" 338 KMEXTRACTONLY+="
339 config-enterprise.h.cmake
357 kleopatra/ConfigureChecks.cmake" 340 kleopatra/ConfigureChecks.cmake"
341 if slot_is_at_least 4.5 ${SLOT}; then
342 KMEXTRACTONLY+="
343 kdepim-version.h.cmake"
344 else
345 KMEXTRACTONLY+="
346 kdepim-version.h"
347 fi
358 if has kontact ${IUSE//+} && use kontact; then 348 if has kontact ${IUSE//+} && use kontact; then
359 KMEXTRA+=" 349 KMEXTRA+="
360 kontact/plugins/${PLUGINNAME:-${PN}}/" 350 kontact/plugins/${PLUGINNAME:-${PN}}/"
351 if ! slot_is_at_least 4.4 ${SLOT}; then
361 KMEXTRACTONLY+=" 352 KMEXTRACTONLY+="
362 kontactinterfaces/" 353 kontactinterfaces/"
354 fi
363 fi 355 fi
364 ;; 356 ;;
365 kdeutils) 357 kdeutils)
366 case ${SLOT} in
367 4.3|4.4|live)
368 KMEXTRACTONLY+=" 358 KMEXTRACTONLY+="
369 kdeutils-version.h" 359 kdeutils-version.h"
370 ;;
371 esac
372 ;; 360 ;;
373 koffice) 361 koffice)
374 KMEXTRACTONLY+=" 362 KMEXTRACTONLY+="
375 config-endian.h.cmake 363 config-endian.h.cmake
376 filters/config-filters.h.cmake 364 filters/config-filters.h.cmake
386 esac 374 esac
387 ;; 375 ;;
388 esac 376 esac
389 # Don't install cmake modules for split ebuilds, to avoid collisions. 377 # Don't install cmake modules for split ebuilds, to avoid collisions.
390 case ${KMNAME} in 378 case ${KMNAME} in
391 kdepim)
392 # No need for unpack since 4.2.86
393 # Remove when 4.2 is wiped out from the tree
394 case ${PV} in
395 4.1*|4.2.0|4.2.1|4.2.2|4.2.3|4.2.4|4.2.85)
396 KMCOMPILEONLY+="
397 cmake/modules/"
398 ;;
399 *) ;;
400 esac
401 ;;
402 kdebase-runtime|kdebase-workspace|kdeedu|kdegames|kdegraphics) 379 kdebase-runtime|kdebase-workspace|kdeedu|kdegames|kdegraphics)
403 case ${PN} in 380 case ${PN} in
404 libkdegames|libkdeedu|libkworkspace) 381 libkdegames|libkdeedu|libkworkspace)
405 KMEXTRA+=" 382 KMEXTRA+="
406 cmake/modules/" 383 cmake/modules/"
492 -i ${_dir}/CMakeLists.txt || die "${LINENO}: died in ${FUNCNAME} while processing ${_dir}" 469 -i ${_dir}/CMakeLists.txt || die "${LINENO}: died in ${FUNCNAME} while processing ${_dir}"
493 fi 470 fi
494 done 471 done
495} 472}
496 473
497# FIXME: add description
498# @FUNCTION: kde4-meta_change_cmakelists 474# @FUNCTION: kde4-meta_change_cmakelists
499# @DESCRIPTION: 475# @DESCRIPTION:
476# Adjust CMakeLists.txt to comply to our splitting.
500kde4-meta_change_cmakelists() { 477kde4-meta_change_cmakelists() {
501 debug-print-function ${FUNCNAME} "$@" 478 debug-print-function ${FUNCNAME} "$@"
502 479
503 pushd "${S}" > /dev/null 480 pushd "${S}" > /dev/null
504 481
505 comment_all_add_subdirectory ./ 482 comment_all_add_subdirectory ./
506 483
507 # Restore "add_subdirectory( cmake )" in ${S}/CMakeLists.txt 484 # Restore "add_subdirectory( cmake )" in ${S}/CMakeLists.txt
508 if [[ -f "${S}"/CMakeLists.txt ]]; then 485 if [[ -f CMakeLists.txt ]]; then
509 sed -e '/add_subdirectory[[:space:]]*([[:space:]]*cmake[[:space:]]*)/s/^#DONOTCOMPILE //' \ 486 sed -e '/add_subdirectory[[:space:]]*([[:space:]]*cmake[[:space:]]*)/s/^#DONOTCOMPILE //' \
510 -e '/ADD_SUBDIRECTORY[[:space:]]*([[:space:]]*cmake[[:space:]]*)/s/^#DONOTCOMPILE //' \ 487 -e '/ADD_SUBDIRECTORY[[:space:]]*([[:space:]]*cmake[[:space:]]*)/s/^#DONOTCOMPILE //' \
511 -i "${S}"/CMakeLists.txt || die "${LINENO}: cmake sed died" 488 -i CMakeLists.txt || die "${LINENO}: cmake sed died"
512 fi 489 fi
513 490
514 if [[ -z ${KMNOMODULE} ]]; then 491 if [[ -z ${KMNOMODULE} ]]; then
515 # Restore "add_subdirectory" in $KMMODULE subdirectories 492 # Restore "add_subdirectory" in $KMMODULE subdirectories
516 find "${S}"/${KMMODULE} -name CMakeLists.txt -print0 | xargs -0 sed -i -e 's/^#DONOTCOMPILE //g' || \ 493 find "${S}"/${KMMODULE} -name CMakeLists.txt -print0 | \
494 xargs -0 sed -i -e 's/^#DONOTCOMPILE //g' || \
517 die "${LINENO}: died in KMMODULE section" 495 die "${LINENO}: died in KMMODULE section"
518 _change_cmakelists_parent_dirs ${KMMODULE} 496 _change_cmakelists_parent_dirs ${KMMODULE}
519 fi 497 fi
520 498
521 local i 499 local i
522 500
523 # KMEXTRACTONLY section - Some ebuilds need to comment out some subdirs in KMMODULE and they use KMEXTRACTONLY 501 # KMEXTRACTONLY section - Some ebuilds need to comment out some subdirs in KMMODULE and they use KMEXTRACTONLY
524 for i in ${KMEXTRACTONLY}; do 502 for i in ${KMEXTRACTONLY}; do
525 if [[ -d "${S}"/${i} && -f "${S}"/${i}/../CMakeLists.txt ]]; then 503 if [[ -d ${i} && -f ${i}/../CMakeLists.txt ]]; then
526 sed -i -e "/([[:space:]]*$(basename $i)[[:space:]]*)/s/^/#DONOTCOMPILE /" "${S}"/${i}/../CMakeLists.txt || \ 504 sed -e "/([[:space:]]*$(basename $i)[[:space:]]*)/s/^/#DONOTCOMPILE /" \
505 -i ${i}/../CMakeLists.txt || \
527 die "${LINENO}: sed died while working in the KMEXTRACTONLY section while processing ${i}" 506 die "${LINENO}: sed died while working in the KMEXTRACTONLY section while processing ${i}"
528 fi 507 fi
529 done 508 done
530 509
531 # KMCOMPILEONLY 510 # KMCOMPILEONLY
553 # KMEXTRA_NONFATAL section 532 # KMEXTRA_NONFATAL section
554 for i in ${KMEXTRA_NONFATAL}; do 533 for i in ${KMEXTRA_NONFATAL}; do
555 if [[ -d "${S}"/${i} ]]; then 534 if [[ -d "${S}"/${i} ]]; then
556 find "${S}"/${i} -name CMakeLists.txt -print0 | \ 535 find "${S}"/${i} -name CMakeLists.txt -print0 | \
557 xargs -0 sed -i -e 's/^#DONOTCOMPILE //g' || \ 536 xargs -0 sed -i -e 's/^#DONOTCOMPILE //g' || \
558 die "${LINENO}: sed died uncommenting add_subdirectory instructions in KMEXTRA section while processing ${i}" 537 die "${LINENO}: sed died uncommenting add_subdirectory instructions in KMEXTRA section while processing ${i}"
559 _change_cmakelists_parent_dirs ${i} 538 _change_cmakelists_parent_dirs ${i}
560 fi 539 fi
561 done 540 done
562 541
563 case ${KMNAME} in 542 case ${KMNAME} in
564 kdebase-workspace) 543 kdebase-workspace)
565 # COLLISION PROTECT section 544 # COLLISION PROTECT section
566 # Install the startkde script just once, as a part of kde-base/kdebase-startkde, 545 # Install the startkde script just once, as a part of kde-base/kdebase-startkde,
567 # not as a part of every package. 546 # not as a part of every package.
568 if [[ ${PN} != kdebase-startkde && -f "${S}"/CMakeLists.txt ]]; then 547 if [[ ${PN} != kdebase-startkde && -f CMakeLists.txt ]]; then
569 # The startkde script moved to kdebase-workspace for KDE4 versions > 3.93.0. 548 # The startkde script moved to kdebase-workspace for KDE4 versions > 3.93.0.
570 sed -i -e '/startkde/s/^/#DONOTINSTALL /' "${S}"/CMakeLists.txt || \ 549 sed -e '/startkde/s/^/#DONOTINSTALL /' \
571 die "${LINENO}: sed died in the kdebase-startkde collision prevention section" 550 -i CMakeLists.txt || die "${LINENO}: sed died in the kdebase-startkde collision prevention section"
572 fi 551 fi
573 # Strip EXPORT feature section from workspace for KDE4 versions > 4.1.82 552 # Strip EXPORT feature section from workspace for KDE4 versions > 4.1.82
574 if [[ ${PN} != libkworkspace ]]; then 553 if [[ ${PN} != libkworkspace ]]; then
575 sed -i \
576 -e '/install(FILES ${CMAKE_CURRENT_BINARY_DIR}\/KDE4WorkspaceConfig.cmake/,/^[[:space:]]*FILE KDE4WorkspaceLibraryTargets.cmake )[[:space:]]*^/d' \ 554 sed -e '/install(FILES ${CMAKE_CURRENT_BINARY_DIR}\/KDE4WorkspaceConfig.cmake/,/^[[:space:]]*FILE KDE4WorkspaceLibraryTargets.cmake )[[:space:]]*^/d' \
577 CMakeLists.txt || die "${LINENO}: sed died in kdebase-workspace strip config install and fix EXPORT section" 555 -i CMakeLists.txt || die "${LINENO}: sed died in kdebase-workspace strip config install and fix EXPORT section"
578 fi 556 fi
579 ;; 557 ;;
580 kdebase-runtime) 558 kdebase-runtime)
581 # COLLISION PROTECT section 559 # COLLISION PROTECT section
582 # Only install the kde4 script as part of kde-base/kdebase-data 560 # Only install the kde4 script as part of kde-base/kdebase-data
583 if [[ ${PN} != kdebase-data && -f "${S}"/CMakeLists.txt ]]; then 561 if [[ ${PN} != kdebase-data && -f CMakeLists.txt ]]; then
584 sed -i -e '/^install(PROGRAMS[[:space:]]*[^[:space:]]*\/kde4[[:space:]]/s/^/#DONOTINSTALL /' \ 562 sed -e '/^install(PROGRAMS[[:space:]]*[^[:space:]]*\/kde4[[:space:]]/s/^/#DONOTINSTALL /' \
585 "${S}"/CMakeLists.txt || die "Sed to exclude bin/kde4 failed" 563 -i CMakeLists.txt || die "Sed to exclude bin/kde4 failed"
586 fi 564 fi
565 ;;
566 kdenetwork)
567 # Disable hardcoded kdepimlibs check
568 sed -e 's/find_package(KdepimLibs REQUIRED)/macro_optional_find_package(KdepimLibs)/' \
569 -i CMakeLists.txt || die "failed to disable hardcoded checks"
587 ;; 570 ;;
588 kdepim) 571 kdepim)
572 # Disable hardcoded checks
573 sed -r -e '/find_package\(KdepimLibs/s/REQUIRED//' \
574 -e '/find_package\((KdepimLibs|Boost|QGpgme|Akonadi|ZLIB|Strigi|SharedDesktopOntologies|Soprano|Nepomuk)/{/macro_optional_/!s/find/macro_optional_&/}' \
575 -e '/macro_log_feature\((Boost|QGPGME|Akonadi|ZLIB|STRIGI|SHAREDDESKTOPONTOLOGIES|Soprano|Nepomuk)_FOUND/s/ TRUE / FALSE /' \
576 -i CMakeLists.txt || die "failed to disable hardcoded checks"
577 if ! slot_is_at_least 4.5 ${SLOT}; then
589 case ${PN} in 578 case ${PN} in
590 kaddressbook|kalarm|kmailcvt|kontact|korganizer|korn) 579 kalarm|kmailcvt|kontact|korganizer|korn)
591 sed -i -n -e '/qt4_generate_dbus_interface(.*org\.kde\.kmail\.\(kmail\|mailcomposer\)\.xml/p' \ 580 sed -n -e '/qt4_generate_dbus_interface(.*org\.kde\.kmail\.\(kmail\|mailcomposer\)\.xml/p' \
592 -e '/add_custom_target(kmail_xml /,/)/p' "${S}"/kmail/CMakeLists.txt || die "uncommenting xml failed" 581 -e '/add_custom_target(kmail_xml /,/)/p' \
582 -i kmail/CMakeLists.txt || die "uncommenting xml failed"
593 _change_cmakelists_parent_dirs kmail 583 _change_cmakelists_parent_dirs kmail
594 ;; 584 ;;
595 esac 585 esac
586 fi
596 ;; 587 ;;
597 kdewebdev) 588 kdewebdev)
598 # Disable hardcoded kdepimlibs check 589 # Disable hardcoded checks
599 sed -e 's/find_package(KdepimLibs REQUIRED)/macro_optional_find_package(KdepimLibs)/' \ 590 sed -e 's/find_package(KdepimLibs REQUIRED)/macro_optional_find_package(KdepimLibs)/' \
600 -e 's/find_package(LibXml2 REQUIRED)/macro_optional_find_package(LibXml2)/' \ 591 -e 's/find_package(LibXml2 REQUIRED)/macro_optional_find_package(LibXml2)/' \
601 -e 's/find_package(LibXslt REQUIRED)/macro_optional_find_package(LibXslt)/' \ 592 -e 's/find_package(LibXslt REQUIRED)/macro_optional_find_package(LibXslt)/' \
602 -e 's/find_package(Boost REQUIRED)/macro_optional_find_package(Boost)/' \ 593 -e 's/find_package(Boost REQUIRED)/macro_optional_find_package(Boost)/' \
603 -i CMakeLists.txt || die "failed to disable hardcoded checks" 594 -i CMakeLists.txt || die "failed to disable hardcoded checks"
604 ;; 595 ;;
605 koffice) 596 koffice)
606 # prevent collisions 597 # Prevent collisions
607 if [[ ${PN} != koffice-data ]]; then 598 if [[ ${PN} != koffice-data ]]; then
608 sed -i -e '/install(.*FindKOfficeLibs.cmake/,/)/ d' \ 599 sed -e '/install(.*FindKOfficeLibs.cmake/,/)/ d' \
609 "${S}"/cmake/modules/CMakeLists.txt || \ 600 -i cmake/modules/CMakeLists.txt || die "${LINENO}: sed died in collision prevention section"
601 sed -e '/install(.\+config-openexr\.h.\+)/d' \
610 die "${LINENO}: sed died in collision prevention section" 602 -i CMakeLists.txt || die "${LINENO}: sed died in collision prevention section"
603 fi
604 # koffice 2.0
611 case ${PV} in 605 case ${PV} in
612 2.0.*) 606 2.0.[1-9])
613 sed -i -n -e '1h;1!H;${g;s/install(.\+config-openexr.h.\+)//;p}' \ 607 sed -i -n -e '1h;1!H;${g;s/install(.\+config-openexr.h.\+)//;p}' \
614 "${S}"/CMakeLists.txt || \ 608 "${S}"/CMakeLists.txt || \
615 die "${LINENO}: sed died in collision prevention section" 609 die "${LINENO}: sed died in collision prevention section"
616 ;; 610 ;;
617 *) 611 *) ;;
618 sed -i -e '/install(.\+config-openexr\.h.\+)/d' \
619 "${S}"//CMakeLists.txt || \
620 die "${LINENO}: sed died in collision prevention section"
621 ;;
622 esac 612 esac
623 fi
624 esac 613 esac
625 614
626 popd > /dev/null 615 popd > /dev/null
627} 616}
628 617
631# Currently just calls its equivalent in kde4-base.eclass(5). Use this one in split 620# Currently just calls its equivalent in kde4-base.eclass(5). Use this one in split
632# ebuilds. 621# ebuilds.
633kde4-meta_src_configure() { 622kde4-meta_src_configure() {
634 debug-print-function ${FUNCNAME} "$@" 623 debug-print-function ${FUNCNAME} "$@"
635 624
625 # backwards-compatibility: make mycmakeargs an array, if it isn't already
626 if [[ $(declare -p mycmakeargs 2>&-) != "declare -a mycmakeargs="* ]]; then
627 mycmakeargs=(${mycmakeargs})
628 fi
629
636 # Set some cmake default values here (usually workarounds for automagic deps) 630 # Set some cmake default values here (usually workarounds for automagic deps)
637 case ${KMNAME} in 631 case ${KMNAME} in
638 kdewebdev) 632 kdewebdev)
639 mycmakeargs=" 633 mycmakeargs=(
640 -DWITH_KdepimLibs=OFF 634 -DWITH_KdepimLibs=OFF
641 -DWITH_LibXml2=OFF 635 -DWITH_LibXml2=OFF
642 -DWITH_LibXslt=OFF 636 -DWITH_LibXslt=OFF
643 -DWITH_Boost=OFF 637 -DWITH_Boost=OFF
644 -DWITH_LibTidy=OFF 638 -DWITH_LibTidy=OFF
645 ${mycmakeargs}" 639 "${mycmakeargs[@]}"
640 )
646 ;; 641 ;;
647 esac 642 esac
648 643
649 kde4-base_src_configure 644 kde4-base_src_configure
650} 645}
659 kde4-base_src_compile "$@" 654 kde4-base_src_compile "$@"
660} 655}
661 656
662# @FUNCTION: kde4-meta_src_test 657# @FUNCTION: kde4-meta_src_test
663# @DESCRIPTION: 658# @DESCRIPTION:
664# Currently just calls its equivalent in kde4-base.eclass(5). Use this in split 659# Currently just calls its equivalent in kde4-base.eclass(5) if
665# ebuilds. 660# I_KNOW_WHAT_I_AM_DOING is set. Use this in split ebuilds.
666kde4-meta_src_test() { 661kde4-meta_src_test() {
667 debug-print-function $FUNCNAME "$@" 662 debug-print-function $FUNCNAME "$@"
668 663
664 if [[ $I_KNOW_WHAT_I_AM_DOING ]]; then
669 kde4-base_src_test 665 kde4-base_src_test
666 else
667 einfo "Tests disabled"
668 fi
670} 669}
671 670
672# @FUNCTION: kde4-meta_src_install 671# @FUNCTION: kde4-meta_src_install
673# @DESCRIPTION: 672# @DESCRIPTION:
674# Function for installing KDE4 split applications. 673# Function for installing KDE4 split applications.
693 kde4-base_src_make_doc 692 kde4-base_src_make_doc
694} 693}
695 694
696# @FUNCTION: kde4-meta_pkg_postinst 695# @FUNCTION: kde4-meta_pkg_postinst
697# @DESCRIPTION: 696# @DESCRIPTION:
698# Display information about application handbook and invoke kbuildsycoca4. 697# Invoke kbuildsycoca4.
699kde4-meta_pkg_postinst() { 698kde4-meta_pkg_postinst() {
700 debug-print-function ${FUNCNAME} "$@" 699 debug-print-function ${FUNCNAME} "$@"
701
702 if has handbook ${IUSE//+} && ! use handbook; then
703 echo
704 einfo "Application handbook for ${PN} has not been installed."
705 einfo "To install handbook, reemerge =${CATEGORY}/${PF} with 'handbook' USE flag."
706 echo
707 fi
708 700
709 kde4-base_pkg_postinst 701 kde4-base_pkg_postinst
710} 702}
711 703
712# @FUNCTION: kde4-meta_pkg_postrm 704# @FUNCTION: kde4-meta_pkg_postrm

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.33

  ViewVC Help
Powered by ViewVC 1.1.20