/[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.72 Revision 1.73
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.72 2013/08/15 15:29:58 kensington Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.73 2013/08/15 15:36:26 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.
274 config-apps.h.cmake 274 config-apps.h.cmake
275 ConfigureChecks.cmake" 275 ConfigureChecks.cmake"
276 ;; 276 ;;
277 kde-runtime) 277 kde-runtime)
278 KMEXTRACTONLY+=" 278 KMEXTRACTONLY+="
279 cmake/modules/
279 CTestConfig.cmake 280 CTestConfig.cmake
280 config-runtime.h.cmake" 281 config-runtime.h.cmake"
281 ;; 282 ;;
282 kde-workspace) 283 kde-workspace)
283 KMEXTRACTONLY+=" 284 KMEXTRACTONLY+="
285 cmake/modules/
284 config-unix.h.cmake 286 config-unix.h.cmake
285 ConfigureChecks.cmake 287 ConfigureChecks.cmake
286 config-workspace.h.cmake 288 config-workspace.h.cmake
287 config-X11.h.cmake 289 config-X11.h.cmake
288 startkde.cmake 290 startkde.cmake
303 KMEXTRA+=" 305 KMEXTRA+="
304 kontact/plugins/${PLUGINNAME:-${PN}}/" 306 kontact/plugins/${PLUGINNAME:-${PN}}/"
305 fi 307 fi
306 ;; 308 ;;
307 esac 309 esac
308 # Don't install cmake modules for split ebuilds, to avoid collisions.
309 # note: kdegraphics >= 4.6.2 does not even have code to do that, so we
310 # should not try in that case
311 # note2: kdeedu 4.6.4 does not have a cmake/modules/ subdir anymore :(
312 # it may be possible to formulate this shorter, but it should also
313 # still be understandable...
314 if [[ ${KMNAME} != kdegraphics || ( ( $(get_kde_version) != 4.6 || ${PV} < 4.6.2 ) && $(get_kde_version) < 4.7 ) ]] \
315 && ! [[ ${KMNAME} == kdeedu && ( ${PV} == 4.6.4 || ${PV} == 4.6.5 ) ]] \
316 && ! [[ ${KMNAME} == kdegames && ${PV} > 4.9.0 ]]; then
317 case ${KMNAME} in
318 kdebase-runtime|kde-runtime|kdebase-workspace|kde-workspace|kdeedu|kdegames|kdegraphics)
319 KMEXTRACTONLY+="
320 cmake/modules/"
321 ;;
322 esac
323 fi
324 310
325 debug-print "line ${LINENO} ${ECLASS} ${FUNCNAME}: KMEXTRACTONLY ${KMEXTRACTONLY}" 311 debug-print "line ${LINENO} ${ECLASS} ${FUNCNAME}: KMEXTRACTONLY ${KMEXTRACTONLY}"
326} 312}
327 313
328__list_needed_subdirectories() { 314__list_needed_subdirectories() {
497 # Strip EXPORT feature section from workspace for KDE4 versions > 4.1.82 483 # Strip EXPORT feature section from workspace for KDE4 versions > 4.1.82
498 if [[ ${PN} != libkworkspace ]]; then 484 if [[ ${PN} != libkworkspace ]]; then
499 sed -e '/install(FILES ${CMAKE_CURRENT_BINARY_DIR}\/KDE4WorkspaceConfig.cmake/,/^[[:space:]]*FILE KDE4WorkspaceLibraryTargets.cmake )[[:space:]]*^/d' \ 485 sed -e '/install(FILES ${CMAKE_CURRENT_BINARY_DIR}\/KDE4WorkspaceConfig.cmake/,/^[[:space:]]*FILE KDE4WorkspaceLibraryTargets.cmake )[[:space:]]*^/d' \
500 -i CMakeLists.txt || die "${LINENO}: sed died in kde-workspace strip config install and fix EXPORT section" 486 -i CMakeLists.txt || die "${LINENO}: sed died in kde-workspace strip config install and fix EXPORT section"
501 fi 487 fi
488 # <KDE/4.11
502 if [[ ${PN} != plasma-workspace ]]; then 489 if [[ ${PN} != plasma-workspace ]]; then
503 sed -e '/KActivities/s/REQUIRED//' \ 490 sed -e '/KActivities/s/REQUIRED//' \
504 -i CMakeLists.txt || die "${LINENO}: sed died in kde-workspace dep reduction section" 491 -i CMakeLists.txt || die "${LINENO}: sed died in kde-workspace dep reduction section"
505 fi 492 fi
493 # >=KDE/4.11
494 sed -e 's/TYPE REQUIRED/TYPE OPTIONAL/' -e 's/XCB REQUIRED/XCB/' -e 's/X11 REQUIRED/X11/' \
495 -e 's/message(FATAL_ERROR/message(/' -i CMakeLists.txt \
496 || die "${LINENO}: sed died in kde-workspace dep reduction section"
506 if [[ "${PN}" != "kwin" ]]; then 497 if [[ "${PN}" != "kwin" ]]; then
507 sed -i -e "/^ macro_log_feature(OPENGL_OR_ES_FOUND/s/TRUE/FALSE/" \ 498 sed -i -e "/^ macro_log_feature(OPENGL_OR_ES_FOUND/s/TRUE/FALSE/" \
508 "${S}"/CMakeLists.txt || die "${LINENO}: sed died removing kde-workspace opengl dependency" 499 "${S}"/CMakeLists.txt || die "${LINENO}: sed died removing kde-workspace opengl dependency"
509 fi 500 fi
510 ;; 501 ;;

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

  ViewVC Help
Powered by ViewVC 1.1.20