| 1 | # Copyright 1999-2010 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.33 2010/02/02 14:20:16 reavertm Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.34 2010/03/15 03:35:39 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. |
| … | |
… | |
| 571 | kdepim) |
571 | kdepim) |
| 572 | # Disable hardcoded checks |
572 | # Disable hardcoded checks |
| 573 | sed -r -e '/find_package\(KdepimLibs/s/REQUIRED//' \ |
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_&/}' \ |
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 /' \ |
575 | -e '/macro_log_feature\((Boost|QGPGME|Akonadi|ZLIB|STRIGI|SHAREDDESKTOPONTOLOGIES|Soprano|Nepomuk)_FOUND/s/ TRUE / FALSE /' \ |
|
|
576 | -e '/if[[:space:]]*([[:space:]]*BUILD_.*)/s/^/#OVERRIDE /' \ |
|
|
577 | -e '/if[[:space:]]*([[:space:]]*[[:alnum:]]*_FOUND[[:space:]]*)/s/^/#OVERRIDE /' \ |
| 576 | -i CMakeLists.txt || die "failed to disable hardcoded checks" |
578 | -i CMakeLists.txt || die "failed to disable hardcoded checks" |
|
|
579 | # Disable broken or redundant build logic |
|
|
580 | if ( has kontact ${IUSE//+} && use kontact ) || [[ ${PN} = kontact ]]; then |
|
|
581 | sed -e '/if[[:space:]]*([[:space:]]*BUILD_.*)/s/^/#OVERRIDE /' \ |
|
|
582 | -e '/if[[:space:]]*([[:space:]]*[[:alnum:]]*_FOUND[[:space:]]*)/s/^/#OVERRIDE /' \ |
|
|
583 | -i kontact/plugins/CMakeLists.txt || die 'failed to override build logic' |
|
|
584 | fi |
| 577 | if ! slot_is_at_least 4.5 ${SLOT}; then |
585 | if ! slot_is_at_least 4.5 ${SLOT}; then |
| 578 | case ${PN} in |
586 | case ${PN} in |
| 579 | kalarm|kmailcvt|kontact|korganizer|korn) |
587 | kalarm|kmailcvt|kontact|korganizer|korn) |
| 580 | sed -n -e '/qt4_generate_dbus_interface(.*org\.kde\.kmail\.\(kmail\|mailcomposer\)\.xml/p' \ |
588 | sed -n -e '/qt4_generate_dbus_interface(.*org\.kde\.kmail\.\(kmail\|mailcomposer\)\.xml/p' \ |
| 581 | -e '/add_custom_target(kmail_xml /,/)/p' \ |
589 | -e '/add_custom_target(kmail_xml /,/)/p' \ |