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

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

  ViewVC Help
Powered by ViewVC 1.1.20