/[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.57 Revision 1.62
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2012 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.57 2011/10/06 14:13:29 alexxy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.62 2012/04/04 15:10:20 johu 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.
208 ;; 208 ;;
209 esac 209 esac
210 else 210 else
211 local abort tarball tarfile f extractlist postfix 211 local abort tarball tarfile f extractlist postfix
212 212
213 if [[ ${PV} =~ 4.8.[12345] ]]; then
214 postfix="xz"
215 KMTARPARAMS+=" --xz"
216 else
217 postfix="bz2"
213 KMTARPARAMS+=" --bzip2" 218 KMTARPARAMS+=" --bzip2"
214 postfix="bz2" 219 fi
215 220
216 case ${KMNAME} in 221 case ${KMNAME} in
217 kdebase-apps) 222 kdebase-apps)
218 # kdebase/apps -> kdebase-apps 223 # kdebase/apps -> kdebase-apps
219 tarball="kdebase-${PV}.tar.${postfix}" 224 tarball="kdebase-${PV}.tar.${postfix}"
287kde4-meta_create_extractlists() { 292kde4-meta_create_extractlists() {
288 debug-print-function ${FUNCNAME} "$@" 293 debug-print-function ${FUNCNAME} "$@"
289 294
290 # Add default handbook locations 295 # Add default handbook locations
291 # FIXME - legacy code - remove when 4.4.5 is gone or preferrably port 4.4.5. 296 # FIXME - legacy code - remove when 4.4.5 is gone or preferrably port 4.4.5.
292 if [[ $(get_kde_version) < 4.5 ]] && has handbook ${IUSE//+} && use handbook && [[ -z ${KMNOMODULE} ]]; then 297 if [[ $(get_kde_version) < 4.5 ]] && use_if_iuse handbook && [[ -z ${KMNOMODULE} ]]; then
293 # We use the basename of $KMMODULE because $KMMODULE can contain 298 # We use the basename of $KMMODULE because $KMMODULE can contain
294 # the path to the module subdirectory. 299 # the path to the module subdirectory.
295 KMEXTRA_NONFATAL+=" 300 KMEXTRA_NONFATAL+="
296 doc/${KMMODULE##*/}" 301 doc/${KMMODULE##*/}"
297 fi 302 fi
344 kdepim-version.h.cmake" 349 kdepim-version.h.cmake"
345 else 350 else
346 KMEXTRACTONLY+=" 351 KMEXTRACTONLY+="
347 kdepim-version.h" 352 kdepim-version.h"
348 fi 353 fi
349 if has kontact ${IUSE//+} && use kontact; then 354 if use_if_iuse kontact; then
350 KMEXTRA+=" 355 KMEXTRA+="
351 kontact/plugins/${PLUGINNAME:-${PN}}/" 356 kontact/plugins/${PLUGINNAME:-${PN}}/"
352 fi 357 fi
353 ;; 358 ;;
354 kdeutils) 359 kdeutils)
554 if [[ ${PN} != kdebase-startkde && -f CMakeLists.txt ]]; then 559 if [[ ${PN} != kdebase-startkde && -f CMakeLists.txt ]]; then
555 # The startkde script moved to kdebase-workspace for KDE4 versions > 3.93.0. 560 # The startkde script moved to kdebase-workspace for KDE4 versions > 3.93.0.
556 sed -e '/startkde/s/^/#DONOTINSTALL /' \ 561 sed -e '/startkde/s/^/#DONOTINSTALL /' \
557 -i CMakeLists.txt || die "${LINENO}: sed died in the kdebase-startkde collision prevention section" 562 -i CMakeLists.txt || die "${LINENO}: sed died in the kdebase-startkde collision prevention section"
558 fi 563 fi
564 # Remove workspace target prefix in order to get direct linking to workspace libs
565 sed -e '/set(KDE4WORKSPACE_TARGET_PREFIX/s/^/#OVERRIDE /' \
566 -i CMakeLists.txt || die "${LINENO}: sed died in KDE4WORKSPACE_TARGET_PREFIX removal section"
559 # Strip EXPORT feature section from workspace for KDE4 versions > 4.1.82 567 # Strip EXPORT feature section from workspace for KDE4 versions > 4.1.82
560 if [[ ${PN} != libkworkspace ]]; then 568 if [[ ${PN} != libkworkspace ]]; then
561 sed -e '/install(FILES ${CMAKE_CURRENT_BINARY_DIR}\/KDE4WorkspaceConfig.cmake/,/^[[:space:]]*FILE KDE4WorkspaceLibraryTargets.cmake )[[:space:]]*^/d' \ 569 sed -e '/install(FILES ${CMAKE_CURRENT_BINARY_DIR}\/KDE4WorkspaceConfig.cmake/,/^[[:space:]]*FILE KDE4WorkspaceLibraryTargets.cmake )[[:space:]]*^/d' \
562 -i CMakeLists.txt || die "${LINENO}: sed died in kde-workspace strip config install and fix EXPORT section" 570 -i CMakeLists.txt || die "${LINENO}: sed died in kde-workspace strip config install and fix EXPORT section"
563 fi 571 fi
564 if [[ ${PN} != plasma-workspace ]]; then 572 if [[ ${PN} != plasma-workspace ]]; then
565 sed -e '/KActivities/s/REQUIRED//' \ 573 sed -e '/KActivities/s/REQUIRED//' \
566 -i CMakeLists.txt || die "${LINENO}: sed died in kde-workspace dep reduction section" 574 -i CMakeLists.txt || die "${LINENO}: sed died in kde-workspace dep reduction section"
575 fi
576 if [[ "${PN}" != "kwin" ]]; then
577 sed -i -e "/^ macro_log_feature(OPENGL_OR_ES_FOUND/s/TRUE/FALSE/" \
578 "${S}"/CMakeLists.txt || die "${LINENO}: sed died removing kde-workspace opengl dependency"
567 fi 579 fi
568 ;; 580 ;;
569 kdebase-runtime | kde-runtime) 581 kdebase-runtime | kde-runtime)
570 # COLLISION PROTECT section 582 # COLLISION PROTECT section
571 # Only install the kde4 script as part of kde-base/kdebase-data 583 # Only install the kde4 script as part of kde-base/kdebase-data
582 kdepim) 594 kdepim)
583 # Disable hardcoded checks 595 # Disable hardcoded checks
584 sed -r -e '/find_package\(KdepimLibs/s/REQUIRED//' \ 596 sed -r -e '/find_package\(KdepimLibs/s/REQUIRED//' \
585 -e '/find_package\((KdepimLibs|Boost|QGpgme|Akonadi|ZLIB|Strigi|SharedDesktopOntologies|Soprano|Nepomuk)/{/macro_optional_/!s/find/macro_optional_&/}' \ 597 -e '/find_package\((KdepimLibs|Boost|QGpgme|Akonadi|ZLIB|Strigi|SharedDesktopOntologies|Soprano|Nepomuk)/{/macro_optional_/!s/find/macro_optional_&/}' \
586 -e '/macro_log_feature\((Boost|QGPGME|Akonadi|ZLIB|STRIGI|SHAREDDESKTOPONTOLOGIES|Soprano|Nepomuk)_FOUND/s/ TRUE / FALSE /' \ 598 -e '/macro_log_feature\((Boost|QGPGME|Akonadi|ZLIB|STRIGI|SHAREDDESKTOPONTOLOGIES|Soprano|Nepomuk)_FOUND/s/ TRUE / FALSE /' \
587 -e '/if[[:space:]]*([[:space:]]*BUILD_.*)/s/^/#OVERRIDE /' \ 599 -e 's/if[[:space:]]*([[:space:]]*BUILD_.*)[[:space:]]*/if(1) # &/' \
588 -e '/if[[:space:]]*([[:space:]]*[[:alnum:]]*_FOUND[[:space:]]*)/s/^/#OVERRIDE /' \ 600 -e 's/if[[:space:]]*([[:space:]]*[[:alnum:]]*_FOUND[[:space:]]*)[[:space:]]*$/if(1) # &/' \
589 -i CMakeLists.txt || die "failed to disable hardcoded checks" 601 -i CMakeLists.txt || die "failed to disable hardcoded checks"
590 # Disable broken or redundant build logic 602 # Disable broken or redundant build logic
591 if ( has kontact ${IUSE//+} && use kontact ) || [[ ${PN} = kontact ]]; then 603 if use_if_iuse kontact || [[ ${PN} = kontact ]]; then
592 sed -e '/if[[:space:]]*([[:space:]]*BUILD_.*)/s/^/#OVERRIDE /' \ 604 sed -e 's/if[[:space:]]*([[:space:]]*BUILD_.*)[[:space:]]*$/if(1) # &/' \
593 -e '/if[[:space:]]*([[:space:]]*[[:alnum:]]*_FOUND[[:space:]]*)/s/^/#OVERRIDE /' \ 605 -e 's/if[[:space:]]*([[:space:]]*[[:alnum:]]*_FOUND[[:space:]]*)[[:space:]]*$/if(1) # &/' \
594 -i kontact/plugins/CMakeLists.txt || die 'failed to override build logic' 606 -i kontact/plugins/CMakeLists.txt || die 'failed to override build logic'
595 fi 607 fi
596 if [[ $(get_kde_version) < 4.5 ]]; then 608 if [[ $(get_kde_version) < 4.5 ]]; then
597 case ${PN} in 609 case ${PN} in
598 kalarm|kmailcvt|kontact|korganizer|korn) 610 kalarm|kmailcvt|kontact|korganizer|korn)

Legend:
Removed from v.1.57  
changed lines
  Added in v.1.62

  ViewVC Help
Powered by ViewVC 1.1.20