| 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.24 2009/08/07 01:00:11 wired Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.32 2010/01/11 17:27:35 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. |
| … | |
… | |
| 14 | |
14 | |
| 15 | inherit kde4-base versionator |
15 | inherit kde4-base versionator |
| 16 | |
16 | |
| 17 | EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare src_configure src_compile src_test src_install pkg_postinst pkg_postrm |
17 | EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare src_configure src_compile src_test src_install pkg_postinst pkg_postrm |
| 18 | |
18 | |
| 19 | if [[ -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" |
| 21 | fi |
|
|
| 22 | |
20 | |
| 23 | # Add khelpcenter dependency when installing handbooks |
21 | # Add khelpcenter dependency when installing handbooks |
| 24 | if [[ ${PN} != khelpcenter ]] && has handbook ${IUSE//+}; then |
22 | if [[ ${PN} != khelpcenter ]] && has handbook ${IUSE//+}; then |
| 25 | RDEPEND+=" handbook? ( >=kde-base/khelpcenter-${PV}:${SLOT}[kdeprefix=] )" |
23 | RDEPEND+=" handbook? ( $(add_kdebase_dep khelpcenter) )" |
| 26 | fi |
24 | fi |
| 27 | |
25 | |
| 28 | # Add dependencies that all packages in a certain module share. |
26 | # Add dependencies that all packages in a certain module share. |
| 29 | case ${KMNAME} in |
27 | case ${KMNAME} in |
| 30 | kdebase|kdebase-apps|kdebase-workspace|kdebase-runtime|kdegraphics) |
28 | kdebase|kdebase-apps|kdebase-workspace|kdebase-runtime|kdegraphics) |
| 31 | COMMONDEPEND+=" >=kde-base/qimageblitz-0.0.4" |
29 | COMMONDEPEND+=" >=kde-base/qimageblitz-0.0.4" |
| 32 | ;; |
30 | ;; |
| 33 | kdenetwork) |
|
|
| 34 | COMMONDEPEND+=" >=kde-base/kdepimlibs-${PV}:${SLOT}[kdeprefix=]" |
|
|
| 35 | ;; |
|
|
| 36 | kdepim|kdepim-runtime) |
31 | kdepim|kdepim-runtime) |
| 37 | COMMONDEPEND+=" |
32 | COMMONDEPEND+=" $(add_kdebase_dep kdepimlibs)" |
| 38 | dev-libs/boost |
|
|
| 39 | >=kde-base/kdepimlibs-${PV}:${SLOT}[kdeprefix=] |
|
|
| 40 | " |
|
|
| 41 | case ${PN} in |
33 | case ${PN} in |
| 42 | akregator|kaddressbook|kjots|kmail|knode|knotes|korganizer|ktimetracker) |
34 | akregator|kaddressbook|kjots|kmail|knode|knotes|korganizer|ktimetracker) |
| 43 | IUSE+=" +kontact" |
35 | IUSE+=" +kontact" |
| 44 | RDEPEND+=" kontact? ( >=kde-base/kontactinterfaces-${PV}:${SLOT}[kdeprefix=] )" |
36 | if ! slot_is_at_least 4.4 ${SLOT}; then |
|
|
37 | RDEPEND+=" kontact? ( $(add_kdebase_dep kontactinterfaces) )" |
|
|
38 | fi |
| 45 | ;; |
39 | ;; |
| 46 | esac |
40 | esac |
| 47 | ;; |
41 | ;; |
| 48 | kdegames) |
42 | kdegames) |
| 49 | if [[ ${PN} != libkdegames ]]; then |
43 | if [[ ${PN} != libkdegames ]]; then |
| 50 | COMMONDEPEND+=" >=kde-base/libkdegames-${PV}:${SLOT}[kdeprefix=] " |
44 | COMMONDEPEND+=" $(add_kdebase_dep libkdegames)" |
| 51 | fi |
45 | fi |
| 52 | ;; |
46 | ;; |
| 53 | koffice) |
47 | koffice) |
| 54 | [[ ${PN} != koffice-data ]] && IUSE+=" debug" |
48 | [[ ${PN} != koffice-data ]] && IUSE+=" debug" |
| 55 | RDEPEND+=" |
49 | RDEPEND+=" |
| … | |
… | |
| 215 | "${S}"/CMakeLists.txt || die "Sed to exclude bin/kde4 failed" |
209 | "${S}"/CMakeLists.txt || die "Sed to exclude bin/kde4 failed" |
| 216 | fi |
210 | fi |
| 217 | else |
211 | else |
| 218 | local abort tarball tarfile f extractlist moduleprefix postfix |
212 | local abort tarball tarfile f extractlist moduleprefix postfix |
| 219 | case ${PV} in |
213 | 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) |
214 | 4.3.8[05] | 4.3.9[0568]) |
| 221 | # block for normally packed upstream unstable snapshots |
215 | # block for normally packed upstream unstable snapshots |
| 222 | KMTARPARAMS+=" --bzip2" # bz2 |
216 | KMTARPARAMS+=" --bzip2" # bz2 |
| 223 | postfix="bz2" |
217 | postfix="bz2" |
| 224 | ;; |
218 | ;; |
| 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*) |
219 | 4.3.[6-9]*) |
| 226 | KMTARPARAMS+=" --lzma" # lzma |
220 | # Not passing --xz, as it doesn't work with stable tar |
|
|
221 | KMTARPARAMS+=" --use-compress-program=xz" # xz |
| 227 | postfix="lzma" |
222 | postfix="xz" |
| 228 | ;; |
223 | ;; |
| 229 | *) |
224 | *) |
| 230 | KMTARPARAMS+=" --bzip2" # bz2 |
225 | KMTARPARAMS+=" --bzip2" # bz2 |
| 231 | postfix="bz2" |
226 | postfix="bz2" |
| 232 | ;; |
227 | ;; |
| … | |
… | |
| 356 | KMEXTRACTONLY+=" |
351 | KMEXTRACTONLY+=" |
| 357 | kleopatra/ConfigureChecks.cmake" |
352 | kleopatra/ConfigureChecks.cmake" |
| 358 | if has kontact ${IUSE//+} && use kontact; then |
353 | if has kontact ${IUSE//+} && use kontact; then |
| 359 | KMEXTRA+=" |
354 | KMEXTRA+=" |
| 360 | kontact/plugins/${PLUGINNAME:-${PN}}/" |
355 | kontact/plugins/${PLUGINNAME:-${PN}}/" |
|
|
356 | if ! slot_is_at_least 4.4 ${SLOT}; then |
| 361 | KMEXTRACTONLY+=" |
357 | KMEXTRACTONLY+=" |
| 362 | kontactinterfaces/" |
358 | kontactinterfaces/" |
|
|
359 | fi |
| 363 | fi |
360 | fi |
| 364 | ;; |
361 | ;; |
| 365 | kdeutils) |
362 | kdeutils) |
| 366 | case ${SLOT} in |
363 | case ${SLOT} in |
| 367 | 4.3|4.4|live) |
364 | 4.3|4.4|live) |
| … | |
… | |
| 390 | case ${KMNAME} in |
387 | case ${KMNAME} in |
| 391 | kdepim) |
388 | kdepim) |
| 392 | # No need for unpack since 4.2.86 |
389 | # No need for unpack since 4.2.86 |
| 393 | # Remove when 4.2 is wiped out from the tree |
390 | # Remove when 4.2 is wiped out from the tree |
| 394 | case ${PV} in |
391 | case ${PV} in |
| 395 | 4.1*|4.2.0|4.2.1|4.2.2|4.2.3|4.2.4|4.2.85) |
392 | 4.2.[0-4]) |
| 396 | KMCOMPILEONLY+=" |
393 | KMCOMPILEONLY+=" |
| 397 | cmake/modules/" |
394 | cmake/modules/" |
| 398 | ;; |
395 | ;; |
| 399 | *) ;; |
|
|
| 400 | esac |
396 | esac |
| 401 | ;; |
397 | ;; |
| 402 | kdebase-runtime|kdebase-workspace|kdeedu|kdegames|kdegraphics) |
398 | kdebase-runtime|kdebase-workspace|kdeedu|kdegames|kdegraphics) |
| 403 | case ${PN} in |
399 | case ${PN} in |
| 404 | libkdegames|libkdeedu|libkworkspace) |
400 | libkdegames|libkdeedu|libkworkspace) |
| … | |
… | |
| 492 | -i ${_dir}/CMakeLists.txt || die "${LINENO}: died in ${FUNCNAME} while processing ${_dir}" |
488 | -i ${_dir}/CMakeLists.txt || die "${LINENO}: died in ${FUNCNAME} while processing ${_dir}" |
| 493 | fi |
489 | fi |
| 494 | done |
490 | done |
| 495 | } |
491 | } |
| 496 | |
492 | |
| 497 | # FIXME: add description |
|
|
| 498 | # @FUNCTION: kde4-meta_change_cmakelists |
493 | # @FUNCTION: kde4-meta_change_cmakelists |
| 499 | # @DESCRIPTION: |
494 | # @DESCRIPTION: |
|
|
495 | # Adjust CMakeLists.txt to comply to our splitting. |
| 500 | kde4-meta_change_cmakelists() { |
496 | kde4-meta_change_cmakelists() { |
| 501 | debug-print-function ${FUNCNAME} "$@" |
497 | debug-print-function ${FUNCNAME} "$@" |
| 502 | |
498 | |
| 503 | pushd "${S}" > /dev/null |
499 | pushd "${S}" > /dev/null |
| 504 | |
500 | |
| 505 | comment_all_add_subdirectory ./ |
501 | comment_all_add_subdirectory ./ |
| 506 | |
502 | |
| 507 | # Restore "add_subdirectory( cmake )" in ${S}/CMakeLists.txt |
503 | # Restore "add_subdirectory( cmake )" in ${S}/CMakeLists.txt |
| 508 | if [[ -f "${S}"/CMakeLists.txt ]]; then |
504 | if [[ -f CMakeLists.txt ]]; then |
| 509 | sed -e '/add_subdirectory[[:space:]]*([[:space:]]*cmake[[:space:]]*)/s/^#DONOTCOMPILE //' \ |
505 | sed -e '/add_subdirectory[[:space:]]*([[:space:]]*cmake[[:space:]]*)/s/^#DONOTCOMPILE //' \ |
| 510 | -e '/ADD_SUBDIRECTORY[[:space:]]*([[:space:]]*cmake[[:space:]]*)/s/^#DONOTCOMPILE //' \ |
506 | -e '/ADD_SUBDIRECTORY[[:space:]]*([[:space:]]*cmake[[:space:]]*)/s/^#DONOTCOMPILE //' \ |
| 511 | -i "${S}"/CMakeLists.txt || die "${LINENO}: cmake sed died" |
507 | -i CMakeLists.txt || die "${LINENO}: cmake sed died" |
| 512 | fi |
508 | fi |
| 513 | |
509 | |
| 514 | if [[ -z ${KMNOMODULE} ]]; then |
510 | if [[ -z ${KMNOMODULE} ]]; then |
| 515 | # Restore "add_subdirectory" in $KMMODULE subdirectories |
511 | # Restore "add_subdirectory" in $KMMODULE subdirectories |
| 516 | find "${S}"/${KMMODULE} -name CMakeLists.txt -print0 | xargs -0 sed -i -e 's/^#DONOTCOMPILE //g' || \ |
512 | find "${S}"/${KMMODULE} -name CMakeLists.txt -print0 | \ |
|
|
513 | xargs -0 sed -i -e 's/^#DONOTCOMPILE //g' || \ |
| 517 | die "${LINENO}: died in KMMODULE section" |
514 | die "${LINENO}: died in KMMODULE section" |
| 518 | _change_cmakelists_parent_dirs ${KMMODULE} |
515 | _change_cmakelists_parent_dirs ${KMMODULE} |
| 519 | fi |
516 | fi |
| 520 | |
517 | |
| 521 | local i |
518 | local i |
| 522 | |
519 | |
| 523 | # KMEXTRACTONLY section - Some ebuilds need to comment out some subdirs in KMMODULE and they use KMEXTRACTONLY |
520 | # KMEXTRACTONLY section - Some ebuilds need to comment out some subdirs in KMMODULE and they use KMEXTRACTONLY |
| 524 | for i in ${KMEXTRACTONLY}; do |
521 | for i in ${KMEXTRACTONLY}; do |
| 525 | if [[ -d "${S}"/${i} && -f "${S}"/${i}/../CMakeLists.txt ]]; then |
522 | if [[ -d ${i} && -f ${i}/../CMakeLists.txt ]]; then |
| 526 | sed -i -e "/([[:space:]]*$(basename $i)[[:space:]]*)/s/^/#DONOTCOMPILE /" "${S}"/${i}/../CMakeLists.txt || \ |
523 | sed -e "/([[:space:]]*$(basename $i)[[:space:]]*)/s/^/#DONOTCOMPILE /" \ |
|
|
524 | -i ${i}/../CMakeLists.txt || \ |
| 527 | die "${LINENO}: sed died while working in the KMEXTRACTONLY section while processing ${i}" |
525 | die "${LINENO}: sed died while working in the KMEXTRACTONLY section while processing ${i}" |
| 528 | fi |
526 | fi |
| 529 | done |
527 | done |
| 530 | |
528 | |
| 531 | # KMCOMPILEONLY |
529 | # KMCOMPILEONLY |
| … | |
… | |
| 553 | # KMEXTRA_NONFATAL section |
551 | # KMEXTRA_NONFATAL section |
| 554 | for i in ${KMEXTRA_NONFATAL}; do |
552 | for i in ${KMEXTRA_NONFATAL}; do |
| 555 | if [[ -d "${S}"/${i} ]]; then |
553 | if [[ -d "${S}"/${i} ]]; then |
| 556 | find "${S}"/${i} -name CMakeLists.txt -print0 | \ |
554 | find "${S}"/${i} -name CMakeLists.txt -print0 | \ |
| 557 | xargs -0 sed -i -e 's/^#DONOTCOMPILE //g' || \ |
555 | xargs -0 sed -i -e 's/^#DONOTCOMPILE //g' || \ |
| 558 | die "${LINENO}: sed died uncommenting add_subdirectory instructions in KMEXTRA section while processing ${i}" |
556 | die "${LINENO}: sed died uncommenting add_subdirectory instructions in KMEXTRA section while processing ${i}" |
| 559 | _change_cmakelists_parent_dirs ${i} |
557 | _change_cmakelists_parent_dirs ${i} |
| 560 | fi |
558 | fi |
| 561 | done |
559 | done |
| 562 | |
560 | |
| 563 | case ${KMNAME} in |
561 | case ${KMNAME} in |
| 564 | kdebase-workspace) |
562 | kdebase-workspace) |
| 565 | # COLLISION PROTECT section |
563 | # COLLISION PROTECT section |
| 566 | # Install the startkde script just once, as a part of kde-base/kdebase-startkde, |
564 | # Install the startkde script just once, as a part of kde-base/kdebase-startkde, |
| 567 | # not as a part of every package. |
565 | # not as a part of every package. |
| 568 | if [[ ${PN} != kdebase-startkde && -f "${S}"/CMakeLists.txt ]]; then |
566 | if [[ ${PN} != kdebase-startkde && -f CMakeLists.txt ]]; then |
| 569 | # The startkde script moved to kdebase-workspace for KDE4 versions > 3.93.0. |
567 | # The startkde script moved to kdebase-workspace for KDE4 versions > 3.93.0. |
| 570 | sed -i -e '/startkde/s/^/#DONOTINSTALL /' "${S}"/CMakeLists.txt || \ |
568 | sed -e '/startkde/s/^/#DONOTINSTALL /' \ |
| 571 | die "${LINENO}: sed died in the kdebase-startkde collision prevention section" |
569 | -i CMakeLists.txt || die "${LINENO}: sed died in the kdebase-startkde collision prevention section" |
| 572 | fi |
570 | fi |
| 573 | # Strip EXPORT feature section from workspace for KDE4 versions > 4.1.82 |
571 | # Strip EXPORT feature section from workspace for KDE4 versions > 4.1.82 |
| 574 | if [[ ${PN} != libkworkspace ]]; then |
572 | if [[ ${PN} != libkworkspace ]]; then |
| 575 | sed -i \ |
|
|
| 576 | -e '/install(FILES ${CMAKE_CURRENT_BINARY_DIR}\/KDE4WorkspaceConfig.cmake/,/^[[:space:]]*FILE KDE4WorkspaceLibraryTargets.cmake )[[:space:]]*^/d' \ |
573 | 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" |
574 | -i CMakeLists.txt || die "${LINENO}: sed died in kdebase-workspace strip config install and fix EXPORT section" |
| 578 | fi |
575 | fi |
| 579 | ;; |
576 | ;; |
| 580 | kdebase-runtime) |
577 | kdebase-runtime) |
| 581 | # COLLISION PROTECT section |
578 | # COLLISION PROTECT section |
| 582 | # Only install the kde4 script as part of kde-base/kdebase-data |
579 | # Only install the kde4 script as part of kde-base/kdebase-data |
| 583 | if [[ ${PN} != kdebase-data && -f "${S}"/CMakeLists.txt ]]; then |
580 | if [[ ${PN} != kdebase-data && -f CMakeLists.txt ]]; then |
| 584 | sed -i -e '/^install(PROGRAMS[[:space:]]*[^[:space:]]*\/kde4[[:space:]]/s/^/#DONOTINSTALL /' \ |
581 | sed -e '/^install(PROGRAMS[[:space:]]*[^[:space:]]*\/kde4[[:space:]]/s/^/#DONOTINSTALL /' \ |
| 585 | "${S}"/CMakeLists.txt || die "Sed to exclude bin/kde4 failed" |
582 | -i CMakeLists.txt || die "Sed to exclude bin/kde4 failed" |
| 586 | fi |
583 | fi |
|
|
584 | ;; |
|
|
585 | kdenetwork) |
|
|
586 | # Disable hardcoded kdepimlibs check |
|
|
587 | sed -e 's/find_package(KdepimLibs REQUIRED)/macro_optional_find_package(KdepimLibs)/' \ |
|
|
588 | -i CMakeLists.txt || die "failed to disable hardcoded checks" |
| 587 | ;; |
589 | ;; |
| 588 | kdepim) |
590 | kdepim) |
| 589 | case ${PN} in |
591 | case ${PN} in |
| 590 | kaddressbook|kalarm|kmailcvt|kontact|korganizer|korn) |
592 | kaddressbook|kalarm|kmailcvt|kontact|korganizer|korn) |
| 591 | sed -i -n -e '/qt4_generate_dbus_interface(.*org\.kde\.kmail\.\(kmail\|mailcomposer\)\.xml/p' \ |
593 | 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" |
594 | -e '/add_custom_target(kmail_xml /,/)/p' \ |
|
|
595 | -i kmail/CMakeLists.txt || die "uncommenting xml failed" |
| 593 | _change_cmakelists_parent_dirs kmail |
596 | _change_cmakelists_parent_dirs kmail |
| 594 | ;; |
597 | ;; |
| 595 | esac |
598 | esac |
| 596 | ;; |
599 | ;; |
| 597 | kdewebdev) |
600 | kdewebdev) |
| … | |
… | |
| 603 | -i CMakeLists.txt || die "failed to disable hardcoded checks" |
606 | -i CMakeLists.txt || die "failed to disable hardcoded checks" |
| 604 | ;; |
607 | ;; |
| 605 | koffice) |
608 | koffice) |
| 606 | # prevent collisions |
609 | # prevent collisions |
| 607 | if [[ ${PN} != koffice-data ]]; then |
610 | if [[ ${PN} != koffice-data ]]; then |
| 608 | sed -i -e '/install(.*FindKOfficeLibs.cmake/,/)/ d' \ |
611 | sed -e '/install(.*FindKOfficeLibs.cmake/,/)/ d' \ |
| 609 | "${S}"/cmake/modules/CMakeLists.txt || \ |
|
|
| 610 | die "${LINENO}: sed died in collision prevention section" |
612 | -i cmake/modules/CMakeLists.txt || die "${LINENO}: sed died in collision prevention section" |
| 611 | case ${PV} in |
|
|
| 612 | 2.0.*) |
|
|
| 613 | sed -i -n -e '1h;1!H;${g;s/install(.\+config-openexr.h.\+)//;p}' \ |
|
|
| 614 | "${S}"/CMakeLists.txt || \ |
|
|
| 615 | die "${LINENO}: sed died in collision prevention section" |
|
|
| 616 | ;; |
|
|
| 617 | *) |
|
|
| 618 | sed -i -e '/install(.\+config-openexr\.h.\+)/d' \ |
613 | sed -e '/install(.\+config-openexr\.h.\+)/d' \ |
| 619 | "${S}"//CMakeLists.txt || \ |
|
|
| 620 | die "${LINENO}: sed died in collision prevention section" |
614 | -i CMakeLists.txt || die "${LINENO}: sed died in collision prevention section" |
| 621 | ;; |
|
|
| 622 | esac |
|
|
| 623 | fi |
615 | fi |
|
|
616 | # koffice 2.0 |
|
|
617 | case ${PV} in |
|
|
618 | 2.0.[1-9]) |
|
|
619 | sed -i -n -e '1h;1!H;${g;s/install(.\+config-openexr.h.\+)//;p}' \ |
|
|
620 | "${S}"/CMakeLists.txt || \ |
|
|
621 | die "${LINENO}: sed died in collision prevention section" |
|
|
622 | ;; |
|
|
623 | *) ;; |
|
|
624 | esac |
| 624 | esac |
625 | esac |
| 625 | |
626 | |
| 626 | popd > /dev/null |
627 | popd > /dev/null |
| 627 | } |
628 | } |
| 628 | |
629 | |
| … | |
… | |
| 631 | # 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 |
| 632 | # ebuilds. |
633 | # ebuilds. |
| 633 | kde4-meta_src_configure() { |
634 | kde4-meta_src_configure() { |
| 634 | debug-print-function ${FUNCNAME} "$@" |
635 | debug-print-function ${FUNCNAME} "$@" |
| 635 | |
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 | |
| 636 | # Set some cmake default values here (usually workarounds for automagic deps) |
642 | # Set some cmake default values here (usually workarounds for automagic deps) |
| 637 | case ${KMNAME} in |
643 | case ${KMNAME} in |
| 638 | kdewebdev) |
644 | kdewebdev) |
| 639 | mycmakeargs=" |
645 | mycmakeargs=( |
| 640 | -DWITH_KdepimLibs=OFF |
646 | -DWITH_KdepimLibs=OFF |
| 641 | -DWITH_LibXml2=OFF |
647 | -DWITH_LibXml2=OFF |
| 642 | -DWITH_LibXslt=OFF |
648 | -DWITH_LibXslt=OFF |
| 643 | -DWITH_Boost=OFF |
649 | -DWITH_Boost=OFF |
| 644 | -DWITH_LibTidy=OFF |
650 | -DWITH_LibTidy=OFF |
| 645 | ${mycmakeargs}" |
651 | "${mycmakeargs[@]}" |
|
|
652 | ) |
| 646 | ;; |
653 | ;; |
| 647 | esac |
654 | esac |
| 648 | |
655 | |
| 649 | kde4-base_src_configure |
656 | kde4-base_src_configure |
| 650 | } |
657 | } |
| … | |
… | |
| 659 | kde4-base_src_compile "$@" |
666 | kde4-base_src_compile "$@" |
| 660 | } |
667 | } |
| 661 | |
668 | |
| 662 | # @FUNCTION: kde4-meta_src_test |
669 | # @FUNCTION: kde4-meta_src_test |
| 663 | # @DESCRIPTION: |
670 | # @DESCRIPTION: |
| 664 | # 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 |
| 665 | # ebuilds. |
672 | # I_KNOW_WHAT_I_AM_DOING is set. Use this in split ebuilds. |
| 666 | kde4-meta_src_test() { |
673 | kde4-meta_src_test() { |
| 667 | debug-print-function $FUNCNAME "$@" |
674 | debug-print-function $FUNCNAME "$@" |
| 668 | |
675 | |
|
|
676 | if [[ $I_KNOW_WHAT_I_AM_DOING ]]; then |
| 669 | kde4-base_src_test |
677 | kde4-base_src_test |
|
|
678 | else |
|
|
679 | einfo "Tests disabled" |
|
|
680 | fi |
| 670 | } |
681 | } |
| 671 | |
682 | |
| 672 | # @FUNCTION: kde4-meta_src_install |
683 | # @FUNCTION: kde4-meta_src_install |
| 673 | # @DESCRIPTION: |
684 | # @DESCRIPTION: |
| 674 | # Function for installing KDE4 split applications. |
685 | # Function for installing KDE4 split applications. |
| … | |
… | |
| 693 | kde4-base_src_make_doc |
704 | kde4-base_src_make_doc |
| 694 | } |
705 | } |
| 695 | |
706 | |
| 696 | # @FUNCTION: kde4-meta_pkg_postinst |
707 | # @FUNCTION: kde4-meta_pkg_postinst |
| 697 | # @DESCRIPTION: |
708 | # @DESCRIPTION: |
| 698 | # Display information about application handbook and invoke kbuildsycoca4. |
709 | # Invoke kbuildsycoca4. |
| 699 | kde4-meta_pkg_postinst() { |
710 | kde4-meta_pkg_postinst() { |
| 700 | debug-print-function ${FUNCNAME} "$@" |
711 | 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 | |
712 | |
| 709 | kde4-base_pkg_postinst |
713 | kde4-base_pkg_postinst |
| 710 | } |
714 | } |
| 711 | |
715 | |
| 712 | # @FUNCTION: kde4-meta_pkg_postrm |
716 | # @FUNCTION: kde4-meta_pkg_postrm |