/[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.22 Revision 1.23
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.22 2009/06/04 09:29:54 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.23 2009/08/03 21:59:53 wired 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.
29 HOMEPAGE="http://www.koffice.org/" 29 HOMEPAGE="http://www.koffice.org/"
30 LICENSE="GPL-2" 30 LICENSE="GPL-2"
31 ;; 31 ;;
32esac 32esac
33 33
34# remove this codeblock when 4.2.3 is dropped
35if [[ ${PV} = "4.2.3" ]]; then
36 [[ ${PN} != khelpcenter ]] && has doc ${IUSE//+} \
37 RDEPEND="${RDEPEND} doc? ( >=kde-base/khelpcenter-${PV}:${SLOT}[kdeprefix=] )"
38else
39# Add khelpcenter dependency when installing handbooks 34# Add khelpcenter dependency when installing handbooks
40if [[ ${PN} != khelpcenter ]] && has handbook ${IUSE//+}; then 35if [[ ${PN} != khelpcenter ]] && has handbook ${IUSE//+}; then
41 RDEPEND="${RDEPEND}
42 handbook? ( >=kde-base/khelpcenter-${PV}:${SLOT}[kdeprefix=] ) 36 RDEPEND+=" handbook? ( >=kde-base/khelpcenter-${PV}:${SLOT}[kdeprefix=] )"
43 "
44fi 37fi
45fi 38
46# Add dependencies that all packages in a certain module share. 39# Add dependencies that all packages in a certain module share.
47case ${KMNAME} in 40case ${KMNAME} in
48 kdebase|kdebase-apps|kdebase-workspace|kdebase-runtime|kdegraphics) 41 kdebase|kdebase-apps|kdebase-workspace|kdebase-runtime|kdegraphics)
49 DEPEND="${DEPEND}
50 >=kde-base/qimageblitz-0.0.4 42 COMMONDEPEND+=" >=kde-base/qimageblitz-0.0.4"
51 "
52 RDEPEND="${RDEPEND}
53 >=kde-base/qimageblitz-0.0.4
54 "
55 ;; 43 ;;
56 kdenetwork) 44 kdenetwork)
57 DEPEND="${DEPEND}
58 >=kde-base/kdepimlibs-${PV}:${SLOT}[kdeprefix=] 45 COMMONDEPEND+=" >=kde-base/kdepimlibs-${PV}:${SLOT}[kdeprefix=]"
59 "
60 RDEPEND="${RDEPEND}
61 >=kde-base/kdepimlibs-${PV}:${SLOT}[kdeprefix=]
62 "
63 ;; 46 ;;
64 kdepim) 47 kdepim|kdepim-runtime)
65 DEPEND="${DEPEND} 48 COMMONDEPEND+="
66 dev-libs/boost
67 >=kde-base/kdepimlibs-${PV}:${SLOT}[kdeprefix=]
68 "
69 RDEPEND="${RDEPEND}
70 dev-libs/boost 49 dev-libs/boost
71 >=kde-base/kdepimlibs-${PV}:${SLOT}[kdeprefix=] 50 >=kde-base/kdepimlibs-${PV}:${SLOT}[kdeprefix=]
72 " 51 "
73 case ${PN} in 52 case ${PN} in
74 akregator|kaddressbook|kjots|kmail|knode|knotes|korganizer|ktimetracker) 53 akregator|kaddressbook|kjots|kmail|knode|knotes|korganizer|ktimetracker)
75 IUSE="+kontact" 54 IUSE+=" +kontact"
76 RDEPEND="${RDEPEND}
77 kontact? ( >=kde-base/kontactinterfaces-${PV}:${SLOT}[kdeprefix=] ) 55 RDEPEND+=" kontact? ( >=kde-base/kontactinterfaces-${PV}:${SLOT}[kdeprefix=] )"
78 "
79 ;; 56 ;;
80 esac 57 esac
81 ;; 58 ;;
82 kdegames) 59 kdegames)
83 if [[ ${PN} != libkdegames ]]; then 60 if [[ ${PN} != libkdegames ]]; then
84 DEPEND="${DEPEND}
85 >=kde-base/libkdegames-${PV}:${SLOT}[kdeprefix=] 61 COMMONDEPEND+=" >=kde-base/libkdegames-${PV}:${SLOT}[kdeprefix=] "
86 "
87 RDEPEND="${RDEPEND}
88 >=kde-base/libkdegames-${PV}:${SLOT}[kdeprefix=]
89 "
90 fi 62 fi
91 ;; 63 ;;
92 koffice) 64 koffice)
93 [[ ${PN} != koffice-data ]] && IUSE="debug" 65 [[ ${PN} != koffice-data ]] && IUSE+=" debug"
94 RDEPEND="${RDEPEND} 66 RDEPEND+="
95 !app-office/${PN}:0 67 !app-office/${PN}:0
96 !app-office/koffice:0 68 !app-office/koffice:0
97 !app-office/koffice-meta:0 69 !app-office/koffice-meta:0
98 " 70 "
99 if has openexr ${IUSE//+}; then 71 if has openexr ${IUSE//+}; then
100 COMMON_DEPEND="media-gfx/imagemagick[openexr?]" 72 COMMONDEPEND+=" media-gfx/imagemagick[openexr?]"
101 else 73 else
102 COMMON_DEPEND="media-gfx/imagemagick" 74 COMMONDEPEND+=" media-gfx/imagemagick"
103 fi 75 fi
104 76
105 COMMON_DEPEND="${COMMON_DEPEND} 77 COMMONDEPEND+="
106 dev-cpp/eigen:2 78 dev-cpp/eigen:2
107 media-libs/fontconfig 79 media-libs/fontconfig
108 media-libs/freetype:2 80 media-libs/freetype:2
109 " 81 "
110 DEPEND="${DEPEND} ${COMMON_DEPEND}"
111 RDEPEND="${RDEPEND} ${COMMON_DEPEND}"
112 unset COMMON_DEPEND
113 if [[ ${PN} != koffice-libs && ${PN} != koffice-data ]]; then 82 if [[ ${PN} != koffice-libs && ${PN} != koffice-data ]]; then
114 DEPEND="${DEPEND}
115 >=app-office/koffice-libs-${PV}:${SLOT} 83 COMMONDEPEND+=" >=app-office/koffice-libs-${PV}:${SLOT}"
116 "
117 RDEPEND="${RDEPEND}
118 >=app-office/koffice-libs-${PV}:${SLOT}
119 "
120 fi 84 fi
121 ;; 85 ;;
122esac 86esac
87
88DEPEND+=" ${COMMONDEPEND}"
89RDEPEND+=" ${COMMONDEPEND}"
90unset COMMONDEPEND
123 91
124debug-print "line ${LINENO} ${ECLASS}: DEPEND ${DEPEND} - after metapackage-specific dependencies" 92debug-print "line ${LINENO} ${ECLASS}: DEPEND ${DEPEND} - after metapackage-specific dependencies"
125debug-print "line ${LINENO} ${ECLASS}: RDEPEND ${RDEPEND} - after metapackage-specific dependencies" 93debug-print "line ${LINENO} ${ECLASS}: RDEPEND ${RDEPEND} - after metapackage-specific dependencies"
126 94
127# Useful to build kde4-meta style stuff from extragear/playground (plasmoids etc) 95# Useful to build kde4-meta style stuff from extragear/playground (plasmoids etc)
258 "${S}"/CMakeLists.txt || die "Sed to exclude bin/kde4 failed" 226 "${S}"/CMakeLists.txt || die "Sed to exclude bin/kde4 failed"
259 fi 227 fi
260 else 228 else
261 local abort tarball tarfile f extractlist moduleprefix postfix 229 local abort tarball tarfile f extractlist moduleprefix postfix
262 case ${PV} in 230 case ${PV} in
263 4.2.85|4.2.90) 231 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)
264 # block for normally packed upstream unstable snapshots 232 # block for normally packed upstream unstable snapshots
265 KMTARPARAMS="${KMTARPARAMS} --bzip2" # bz2 233 KMTARPARAMS+=" --bzip2" # bz2
266 postfix="bz2" 234 postfix="bz2"
267 ;; 235 ;;
268 4.2.9* | 4.2.8* | 4.2.7* | 4.2.6*) 236 4.2.9* | 4.2.8* | 4.2.7* | 4.2.6* | 4.3.9* | 4.3.8* | 4.3.7* | 4.3.6*)
269 KMTARPARAMS="${KMTARPARAMS} --lzma" # lzma 237 KMTARPARAMS+=" --lzma" # lzma
270 postfix="lzma" 238 postfix="lzma"
271 ;; 239 ;;
272 *) 240 *)
273 KMTARPARAMS="${KMTARPARAMS} --bzip2" # bz2 241 KMTARPARAMS+=" --bzip2" # bz2
274 postfix="bz2" 242 postfix="bz2"
275 ;; 243 ;;
276 esac 244 esac
277 case ${KMNAME} in 245 case ${KMNAME} in
278 kdebase-apps) 246 kdebase-apps)
279 # kdebase/apps -> kdebasa-apps 247 # kdebase/apps -> kdebase-apps
280 tarball="kdebase-${PV}.tar.${postfix}" 248 tarball="kdebase-${PV}.tar.${postfix}"
281 # Go one level deeper for kdebase-apps in tarballs 249 # Go one level deeper for kdebase-apps in tarballs
282 moduleprefix=apps/ 250 moduleprefix=apps/
283 KMTARPARAMS="${KMTARPARAMS} --transform=s|apps/||" 251 KMTARPARAMS+=" --transform=s|apps/||"
284 ;; 252 ;;
285 *) 253 *)
286 # Create tarball name from module name (this is the default) 254 # Create tarball name from module name (this is the default)
287 tarball="${KMNAME}-${PV}.tar.${postfix}" 255 tarball="${KMNAME}-${PV}.tar.${postfix}"
288 ;; 256 ;;
289 esac 257 esac
290 258
291 # Full patch to source tarball 259 # Full path to source tarball
292 tarfile="${DISTDIR}/${tarball}" 260 tarfile="${DISTDIR}/${tarball}"
293 261
294 # Detect real toplevel dir from tarball name - it will be used upon extraction 262 # Detect real toplevel dir from tarball name - it will be used upon extraction
295 # and in __list_needed_subdirectories 263 # and in __list_needed_subdirectories
296 topdir="${tarball%.tar.*}/" 264 topdir="${tarball%.tar.*}/"
300 kde4-meta_create_extractlists 268 kde4-meta_create_extractlists
301 269
302 for f in cmake/ CMakeLists.txt ConfigureChecks.cmake config.h.cmake \ 270 for f in cmake/ CMakeLists.txt ConfigureChecks.cmake config.h.cmake \
303 AUTHORS COPYING INSTALL README NEWS ChangeLog 271 AUTHORS COPYING INSTALL README NEWS ChangeLog
304 do 272 do
305 extractlist="${extractlist} ${topdir}${moduleprefix}${f}" 273 extractlist+=" ${topdir}${moduleprefix}${f}"
306 done 274 done
307 extractlist="${extractlist} $(__list_needed_subdirectories)" 275 extractlist+=" $(__list_needed_subdirectories)"
308 276
309 pushd "${WORKDIR}" > /dev/null 277 pushd "${WORKDIR}" > /dev/null
310 [[ -n ${KDE4_STRICTER} ]] && echo tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} >&2 278 [[ -n ${KDE4_STRICTER} ]] && echo tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} >&2
311 tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} 2> /dev/null 279 tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} 2> /dev/null
312 280
342# KMEXTRACTONLY and KMTARPARAMS. 310# KMEXTRACTONLY and KMTARPARAMS.
343kde4-meta_create_extractlists() { 311kde4-meta_create_extractlists() {
344 debug-print-function ${FUNCNAME} "$@" 312 debug-print-function ${FUNCNAME} "$@"
345 313
346 # TODO change to KMEXTRA for more strict check 314 # TODO change to KMEXTRA for more strict check
347 # remvove 4.2.3 check when dropped
348 if [[ ${PV} = "4.2.3" ]]; then
349 if has doc ${IUSE//+} && use doc && [[ -n ${KMMODULE} ]]; then
350 KMEXTRA_NONFATAL="${KMEXTRA_NONFATAL} doc/${KMMODULE##*/}"
351 fi
352 else
353 if has handbook ${IUSE//+} && use handbook && [[ -n ${KMMODULE} ]]; then 315 if has handbook ${IUSE//+} && use handbook && [[ -n ${KMMODULE} ]]; then
354 # We use the basename of $KMMODULE because $KMMODULE can contain 316 # We use the basename of $KMMODULE because $KMMODULE can contain
355 # the path to the module subdirectory. 317 # the path to the module subdirectory.
356 KMEXTRA_NONFATAL="${KMEXTRA_NONFATAL} doc/${KMMODULE##*/}" 318 KMEXTRA_NONFATAL+="
357 fi 319 doc/${KMMODULE##*/}"
358 fi 320 fi
359 321
360 # Add some CMake-files to KMEXTRACTONLY. 322 # Add some CMake-files to KMEXTRACTONLY.
361 # Note that this actually doesn't include KMEXTRA handling. 323 # Note that this actually doesn't include KMEXTRA handling.
362 # In those cases you should care to add the relevant files to KMEXTRACTONLY 324 # In those cases you should care to add the relevant files to KMEXTRACTONLY
363 case ${KMNAME} in 325 case ${KMNAME} in
364 kdebase) 326 kdebase)
365 KMEXTRACTONLY="${KMEXTRACTONLY} 327 KMEXTRACTONLY+="
366 apps/config-apps.h.cmake 328 apps/config-apps.h.cmake
367 apps/ConfigureChecks.cmake" 329 apps/ConfigureChecks.cmake"
368 ;; 330 ;;
369 kdebase-apps) 331 kdebase-apps)
370 KMEXTRACTONLY="${KMEXTRACTONLY} 332 KMEXTRACTONLY+="
371 config-apps.h.cmake 333 config-apps.h.cmake
372 ConfigureChecks.cmake" 334 ConfigureChecks.cmake"
373 ;; 335 ;;
374 kdebase-runtime) 336 kdebase-runtime)
375 KMEXTRACTONLY="${KMEXTRACTONLY} 337 KMEXTRACTONLY+="
376 config-runtime.h.cmake" 338 config-runtime.h.cmake"
377 ;; 339 ;;
378 kdebase-workspace) 340 kdebase-workspace)
379 KMEXTRACTONLY="${KMEXTRACTONLY} 341 KMEXTRACTONLY+="
380 config-unix.h.cmake 342 config-unix.h.cmake
381 ConfigureChecks.cmake 343 ConfigureChecks.cmake
382 config-workspace.h.cmake 344 config-workspace.h.cmake
383 config-X11.h.cmake 345 config-X11.h.cmake
384 startkde.cmake 346 startkde.cmake
385 KDE4WorkspaceConfig.cmake.in" 347 KDE4WorkspaceConfig.cmake.in"
386 ;; 348 ;;
387 kdegames) 349 kdegames)
388 if [[ ${PN} != libkdegames ]]; then 350 if [[ ${PN} != libkdegames ]]; then
389 KMEXTRACTONLY="${KMEXTRACTONLY} 351 KMEXTRACTONLY+="
390 libkdegames" 352 libkdegames/"
391 fi 353 fi
392 ;; 354 ;;
393 kdepim) 355 kdepim)
394 if [[ ${PN} != libkdepim ]]; then 356 if [[ ${PN} != libkdepim ]]; then
395 KMEXTRACTONLY="${KMEXTRACTONLY} 357 KMEXTRACTONLY+="
396 libkdepim" 358 libkdepim/"
397 fi 359 fi
398 case ${SLOT} in 360 case ${SLOT} in
399 4.3|live) 361 4.3|4.4|live)
400 KMEXTRACTONLY="${KMEXTRACTONLY} 362 KMEXTRACTONLY+="
401 kdepim-version.h 363 kdepim-version.h
402 config-enterprise.h.cmake" 364 config-enterprise.h.cmake"
403 ;; 365 ;;
404 esac 366 esac
405 KMEXTRACTONLY="${KMEXTRACTONLY} 367 KMEXTRACTONLY+="
406 kleopatra/ConfigureChecks.cmake" 368 kleopatra/ConfigureChecks.cmake"
407 if has kontact ${IUSE//+} && use kontact; then 369 if has kontact ${IUSE//+} && use kontact; then
370 KMEXTRA+="
408 KMEXTRA="${KMEXTRA} kontact/plugins/${PLUGINNAME:-${PN}}" 371 kontact/plugins/${PLUGINNAME:-${PN}}/"
409 KMEXTRACTONLY="${KMEXTRACTONLY} kontactinterfaces/" 372 KMEXTRACTONLY+="
373 kontactinterfaces/"
410 fi 374 fi
411 ;; 375 ;;
376 kdeutils)
377 case ${SLOT} in
378 4.3|4.4|live)
379 KMEXTRACTONLY+="
380 kdeutils-version.h"
381 ;;
382 esac
383 ;;
412 koffice) 384 koffice)
413 KMEXTRACTONLY="${KMEXTRACTONLY} 385 KMEXTRACTONLY+="
414 config-endian.h.cmake 386 config-endian.h.cmake
415 filters/config-filters.h.cmake 387 filters/config-filters.h.cmake
416 config-openctl.h.cmake
417 config-openexr.h.cmake 388 config-openexr.h.cmake
418 config-opengl.h.cmake 389 config-opengl.h.cmake
419 config-prefix.h.cmake" 390 config-prefix.h.cmake
391 "
392 case ${PV} in
393 2.0.*)
394 KMEXTRACTONLY+="
395 config-openctl.h.cmake"
396 ;;
397 esac
420 ;; 398 ;;
421 esac 399 esac
422 # Don't install cmake modules for split ebuilds, to avoid collisions. 400 # Don't install cmake modules for split ebuilds, to avoid collisions.
423 case ${KMNAME} in 401 case ${KMNAME} in
424 kdepim) 402 kdepim)
425 # No need for unpack since 4.2.86 403 # No need for unpack since 4.2.86
426 # Remove when 4.2 is wiped out from the tree 404 # Remove when 4.2 is wiped out from the tree
427 case ${PV} in 405 case ${PV} in
428 4.1*|4.2.0|4.2.1|4.2.2|4.2.3|4.2.4|4.2.85) 406 4.1*|4.2.0|4.2.1|4.2.2|4.2.3|4.2.4|4.2.85)
429 KMCOMPILEONLY="${KMCOMPILEONLY} 407 KMCOMPILEONLY+="
430 cmake/modules/" 408 cmake/modules/"
431 ;; 409 ;;
432 *) ;; 410 *) ;;
433 esac 411 esac
434 ;; 412 ;;
435 kdebase-runtime|kdebase-workspace|kdeedu|kdegames|kdegraphics) 413 kdebase-runtime|kdebase-workspace|kdeedu|kdegames|kdegraphics)
436 case ${PN} in 414 case ${PN} in
437 libkdegames|libkdeedu|libkworkspace) 415 libkdegames|libkdeedu|libkworkspace)
438 KMEXTRA="${KMEXTRA} 416 KMEXTRA+="
439 cmake/modules/" 417 cmake/modules/"
440 ;; 418 ;;
441 *) 419 *)
442 KMCOMPILEONLY="${KMCOMPILEONLY} 420 KMCOMPILEONLY+="
443 cmake/modules/" 421 cmake/modules/"
444 ;; 422 ;;
445 esac 423 esac
446 ;; 424 ;;
447 esac 425 esac
452__list_needed_subdirectories() { 430__list_needed_subdirectories() {
453 local i j kmextra kmextra_expanded kmmodule_expanded kmcompileonly_expanded extractlist 431 local i j kmextra kmextra_expanded kmmodule_expanded kmcompileonly_expanded extractlist
454 432
455 # We expand KMEXTRA by adding CMakeLists.txt files 433 # We expand KMEXTRA by adding CMakeLists.txt files
456 kmextra="${KMEXTRA}" 434 kmextra="${KMEXTRA}"
457 [[ ${1} != fatal ]] && kmextra="${kmextra} ${KMEXTRA_NONFATAL}" 435 [[ ${1} != fatal ]] && kmextra+=" ${KMEXTRA_NONFATAL}"
458 for i in ${kmextra}; do 436 for i in ${kmextra}; do
459 kmextra_expanded="${kmextra_expanded} ${i}" 437 kmextra_expanded+=" ${i}"
460 j=$(dirname ${i}) 438 j=$(dirname ${i})
461 while [[ ${j} != "." ]]; do 439 while [[ ${j} != "." ]]; do
462 kmextra_expanded="${kmextra_expanded} ${j}/CMakeLists.txt"; 440 kmextra_expanded+=" ${j}/CMakeLists.txt";
463 j=$(dirname ${j}) 441 j=$(dirname ${j})
464 done 442 done
465 done 443 done
466 444
467 # Expand KMMODULE 445 # Expand KMMODULE
468 if [[ -n ${KMMODULE} ]]; then 446 if [[ -n ${KMMODULE} ]]; then
469 kmmodule_expanded="${KMMODULE}" 447 kmmodule_expanded="${KMMODULE}"
470 j=$(dirname ${KMMODULE}) 448 j=$(dirname ${KMMODULE})
471 while [[ ${j} != "." ]]; do 449 while [[ ${j} != "." ]]; do
472 kmmodule_expanded="${kmmodule_expanded} ${j}/CMakeLists.txt"; 450 kmmodule_expanded+=" ${j}/CMakeLists.txt";
473 j=$(dirname ${j}) 451 j=$(dirname ${j})
474 done 452 done
475 fi 453 fi
476 454
477 # Expand KMCOMPILEONLY 455 # Expand KMCOMPILEONLY
478 for i in ${KMCOMPILEONLY}; do 456 for i in ${KMCOMPILEONLY}; do
479 kmcompileonly_expanded="${kmcompileonly_expanded} ${i}" 457 kmcompileonly_expanded+=" ${i}"
480 j=$(dirname ${i}) 458 j=$(dirname ${i})
481 while [[ ${j} != "." ]]; do 459 while [[ ${j} != "." ]]; do
482 kmcompileonly_expanded="${kmcompileonly_expanded} ${j}/CMakeLists.txt"; 460 kmcompileonly_expanded+=" ${j}/CMakeLists.txt";
483 j=$(dirname ${j}) 461 j=$(dirname ${j})
484 done 462 done
485 done 463 done
486 464
487 debug-print "line ${LINENO} ${ECLASS} ${FUNCNAME} - kmextra_expanded: ${kmextra_expanded}" 465 debug-print "line ${LINENO} ${ECLASS} ${FUNCNAME} - kmextra_expanded: ${kmextra_expanded}"
491 # Create final list of stuff to extract 469 # Create final list of stuff to extract
492 # We append topdir only when specified (usually for tarballs) 470 # We append topdir only when specified (usually for tarballs)
493 for i in ${kmmodule_expanded} ${kmextra_expanded} ${kmcompileonly_expanded} \ 471 for i in ${kmmodule_expanded} ${kmextra_expanded} ${kmcompileonly_expanded} \
494 ${KMEXTRACTONLY} 472 ${KMEXTRACTONLY}
495 do 473 do
496 extractlist="${extractlist} ${topdir}${moduleprefix}${i}" 474 extractlist+=" ${topdir}${moduleprefix}${i}"
497 done 475 done
498 476
499 echo ${extractlist} 477 echo ${extractlist}
500} 478}
501 479
605 fi 583 fi
606 # Strip EXPORT feature section from workspace for KDE4 versions > 4.1.82 584 # Strip EXPORT feature section from workspace for KDE4 versions > 4.1.82
607 if [[ ${PN} != libkworkspace ]]; then 585 if [[ ${PN} != libkworkspace ]]; then
608 sed -i \ 586 sed -i \
609 -e '/install(FILES ${CMAKE_CURRENT_BINARY_DIR}\/KDE4WorkspaceConfig.cmake/,/^[[:space:]]*FILE KDE4WorkspaceLibraryTargets.cmake )[[:space:]]*^/d' \ 587 -e '/install(FILES ${CMAKE_CURRENT_BINARY_DIR}\/KDE4WorkspaceConfig.cmake/,/^[[:space:]]*FILE KDE4WorkspaceLibraryTargets.cmake )[[:space:]]*^/d' \
610 CMakeLists.txt || die "${LINENO}: sed died in kdebase-workspace strip config install and fix EXPORT section" 588 CMakeLists.txt || die "${LINENO}: sed died in kdebase-workspace strip config install and fix EXPORT section"
611 fi 589 fi
612 ;; 590 ;;
613 kdebase-runtime) 591 kdebase-runtime)
614 # COLLISION PROTECT section 592 # COLLISION PROTECT section
615 # Only install the kde4 script as part of kde-base/kdebase-data 593 # Only install the kde4 script as part of kde-base/kdebase-data
639 # prevent collisions 617 # prevent collisions
640 if [[ ${PN} != koffice-data ]]; then 618 if [[ ${PN} != koffice-data ]]; then
641 sed -i -e '/install(.*FindKOfficeLibs.cmake/,/)/ d' \ 619 sed -i -e '/install(.*FindKOfficeLibs.cmake/,/)/ d' \
642 "${S}"/cmake/modules/CMakeLists.txt || \ 620 "${S}"/cmake/modules/CMakeLists.txt || \
643 die "${LINENO}: sed died in collision prevention section" 621 die "${LINENO}: sed died in collision prevention section"
622 case ${PV} in
623 2.0.*)
644 sed -i -n -e '1h;1!H;${g;s/install(.\+config-openexr.h.\+)//;p}' \ 624 sed -i -n -e '1h;1!H;${g;s/install(.\+config-openexr.h.\+)//;p}' \
645 "${S}"/CMakeLists.txt || \ 625 "${S}"/CMakeLists.txt || \
646 die "${LINENO}: sed died in collision prevention section" 626 die "${LINENO}: sed died in collision prevention section"
627 ;;
628 *)
629 sed -i -e '/install(.\+config-openexr\.h.\+)/d' \
630 "${S}"//CMakeLists.txt || \
631 die "${LINENO}: sed died in collision prevention section"
632 ;;
633 esac
647 fi 634 fi
648 esac 635 esac
649 636
650 popd > /dev/null 637 popd > /dev/null
651} 638}
678# General function for compiling split KDE4 applications. 665# General function for compiling split KDE4 applications.
679# Overrides kde4-base_src_compile. 666# Overrides kde4-base_src_compile.
680kde4-meta_src_compile() { 667kde4-meta_src_compile() {
681 debug-print-function ${FUNCNAME} "$@" 668 debug-print-function ${FUNCNAME} "$@"
682 669
683 kde4-base_src_compile 670 kde4-base_src_compile "$@"
684} 671}
685 672
686# @FUNCTION: kde4-meta_src_test 673# @FUNCTION: kde4-meta_src_test
687# @DESCRIPTION: 674# @DESCRIPTION:
688# Currently just calls its equivalent in kde4-base.eclass(5). Use this in split 675# Currently just calls its equivalent in kde4-base.eclass(5). Use this in split
703} 690}
704 691
705# @FUNCTION: kde4-meta_src_make_doc 692# @FUNCTION: kde4-meta_src_make_doc
706# @DESCRIPTION: 693# @DESCRIPTION:
707# This function searches in ${S}/${KMMODULE}, 694# This function searches in ${S}/${KMMODULE},
708# and tries to install "AUTHORS ChangeLog* README* NEWS todo" if these files exist. 695# and tries to install "AUTHORS ChangeLog* README* NEWS TODO" if these files exist.
709kde4-meta_src_make_doc() { 696kde4-meta_src_make_doc() {
710 debug-print-function ${FUNCNAME} "$@" 697 debug-print-function ${FUNCNAME} "$@"
711 698
712 local doc 699 local doc
713 for doc in AUTHORS ChangeLog* README* NEWS TODO; do 700 for doc in AUTHORS ChangeLog* README* NEWS TODO; do
724 debug-print-function ${FUNCNAME} "$@" 711 debug-print-function ${FUNCNAME} "$@"
725 712
726 if has handbook ${IUSE//+} && ! use handbook; then 713 if has handbook ${IUSE//+} && ! use handbook; then
727 echo 714 echo
728 einfo "Application handbook for ${PN} has not been installed." 715 einfo "Application handbook for ${PN} has not been installed."
729 einfo "To install handbook, reemerge =${CATEGORY}/${P} with 'handbook' USE flag." 716 einfo "To install handbook, reemerge =${CATEGORY}/${PF} with 'handbook' USE flag."
730 echo 717 echo
731 fi 718 fi
732 719
733 kde4-base_pkg_postinst 720 kde4-base_pkg_postinst
734} 721}

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

  ViewVC Help
Powered by ViewVC 1.1.20