/[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.21 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.21 2009/05/29 10:29:10 dagger 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# Add khelpcenter dependency when installing 23# Add khelpcenter dependency when installing handbooks
35if [[ ${PN} != khelpcenter ]] && has doc ${IUSE//+} && use doc; then 24if [[ ${PN} != khelpcenter ]] && has handbook ${IUSE//+}; then
36 RDEPEND="${RDEPEND}
37 >=kde-base/khelpcenter-${PV}:${SLOT}[kdeprefix=] 25 RDEPEND+=" handbook? ( >=kde-base/khelpcenter-${PV}:${SLOT}[kdeprefix=] )"
38 "
39fi 26fi
40 27
41# Add dependencies that all packages in a certain module share. 28# Add dependencies that all packages in a certain module share.
42case ${KMNAME} in 29case ${KMNAME} in
43 kdebase|kdebase-apps|kdebase-workspace|kdebase-runtime|kdegraphic) 30 kdebase|kdebase-apps|kdebase-workspace|kdebase-runtime|kdegraphics)
44 DEPEND="${DEPEND}
45 >=kde-base/qimageblitz-0.0.4 31 COMMONDEPEND+=" >=kde-base/qimageblitz-0.0.4"
46 "
47 RDEPEND="${RDEPEND}
48 >=kde-base/qimageblitz-0.0.4
49 "
50 ;; 32 ;;
51 kdenetwork) 33 kdenetwork)
52 DEPEND="${DEPEND}
53 >=kde-base/kdepimlibs-${PV}:${SLOT}[kdeprefix=] 34 COMMONDEPEND+=" >=kde-base/kdepimlibs-${PV}:${SLOT}[kdeprefix=]"
54 "
55 RDEPEND="${RDEPEND}
56 >=kde-base/kdepimlibs-${PV}:${SLOT}[kdeprefix=]
57 "
58 ;; 35 ;;
59 kdepim) 36 kdepim|kdepim-runtime)
60 DEPEND="${DEPEND} 37 COMMONDEPEND+="
61 dev-libs/boost
62 >=kde-base/kdepimlibs-${PV}:${SLOT}[kdeprefix=]
63 "
64 RDEPEND="${RDEPEND}
65 dev-libs/boost 38 dev-libs/boost
66 >=kde-base/kdepimlibs-${PV}:${SLOT}[kdeprefix=] 39 >=kde-base/kdepimlibs-${PV}:${SLOT}[kdeprefix=]
67 " 40 "
68 case ${PN} in 41 case ${PN} in
69 akregator|kaddressbook|kjots|kmail|kmobiletools|knode|knotes|korganizer|ktimetracker) 42 akregator|kaddressbook|kjots|kmail|knode|knotes|korganizer|ktimetracker)
70 IUSE="+kontact" 43 IUSE+=" +kontact"
71 RDEPEND="${RDEPEND}
72 kontact? ( >=kde-base/kontactinterfaces-${PV}:${SLOT}[kdeprefix=] ) 44 RDEPEND+=" kontact? ( >=kde-base/kontactinterfaces-${PV}:${SLOT}[kdeprefix=] )"
73 "
74 ;; 45 ;;
75 esac 46 esac
76 ;; 47 ;;
77 kdegames) 48 kdegames)
78 if [[ ${PN} != libkdegames ]]; then 49 if [[ ${PN} != libkdegames ]]; then
79 DEPEND="${DEPEND}
80 >=kde-base/libkdegames-${PV}:${SLOT}[kdeprefix=] 50 COMMONDEPEND+=" >=kde-base/libkdegames-${PV}:${SLOT}[kdeprefix=] "
81 "
82 RDEPEND="${RDEPEND}
83 >=kde-base/libkdegames-${PV}:${SLOT}[kdeprefix=]
84 "
85 fi 51 fi
86 ;; 52 ;;
87 koffice) 53 koffice)
88 [[ ${PN} != koffice-data ]] && IUSE="debug" 54 [[ ${PN} != koffice-data ]] && IUSE+=" debug"
89 RDEPEND="${RDEPEND} 55 RDEPEND+="
90 !app-office/${PN}:0 56 !app-office/${PN}:0
91 !app-office/koffice:0 57 !app-office/koffice:0
92 !app-office/koffice-meta:0 58 !app-office/koffice-meta:0
93 " 59 "
94 if has openexr ${IUSE//+}; then 60 if has openexr ${IUSE//+}; then
95 COMMON_DEPEND="media-gfx/imagemagick[openexr?]" 61 COMMONDEPEND+=" media-gfx/imagemagick[openexr?]"
96 else 62 else
97 COMMON_DEPEND="media-gfx/imagemagick" 63 COMMONDEPEND+=" media-gfx/imagemagick"
98 fi 64 fi
99 65
100 COMMON_DEPEND="${COMMON_DEPEND} 66 COMMONDEPEND+="
101 dev-cpp/eigen:2 67 dev-cpp/eigen:2
102 media-libs/fontconfig 68 media-libs/fontconfig
103 media-libs/freetype:2 69 media-libs/freetype:2
104 " 70 "
105 DEPEND="${DEPEND} ${COMMON_DEPEND}"
106 RDEPEND="${RDEPEND} ${COMMON_DEPEND}"
107 unset COMMON_DEPEND
108 if [[ ${PN} != koffice-libs && ${PN} != koffice-data ]]; then 71 if [[ ${PN} != koffice-libs && ${PN} != koffice-data ]]; then
109 DEPEND="${DEPEND}
110 >=app-office/koffice-libs-${PV}:${SLOT} 72 COMMONDEPEND+=" >=app-office/koffice-libs-${PV}:${SLOT}"
111 "
112 RDEPEND="${RDEPEND}
113 >=app-office/koffice-libs-${PV}:${SLOT}
114 "
115 fi 73 fi
116 ;; 74 ;;
117esac 75esac
76
77DEPEND+=" ${COMMONDEPEND}"
78RDEPEND+=" ${COMMONDEPEND}"
79unset COMMONDEPEND
118 80
119debug-print "line ${LINENO} ${ECLASS}: DEPEND ${DEPEND} - after metapackage-specific dependencies" 81debug-print "line ${LINENO} ${ECLASS}: DEPEND ${DEPEND} - after metapackage-specific dependencies"
120debug-print "line ${LINENO} ${ECLASS}: RDEPEND ${RDEPEND} - after metapackage-specific dependencies" 82debug-print "line ${LINENO} ${ECLASS}: RDEPEND ${RDEPEND} - after metapackage-specific dependencies"
121 83
122# 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)
158 120
159# @ECLASS-VARIABLE: KMEXTRA 121# @ECLASS-VARIABLE: KMEXTRA
160# @DESCRIPTION: 122# @DESCRIPTION:
161# All subdirectories listed here will be extracted, compiled & installed. 123# All subdirectories listed here will be extracted, compiled & installed.
162# $KMMODULE is always added to $KMEXTRA. 124# $KMMODULE is always added to $KMEXTRA.
163# If the doc USE-flag is set, and if this directory exists, 125# If the handbook USE-flag is set, and if this directory exists,
164# then "doc/$KMMODULE" is added to $KMEXTRA. In other cases, this should be 126# then "doc/$KMMODULE" is added to $KMEXTRA. In other cases, this should be
165# handled in the ebuild. 127# handled in the ebuild.
166# If the documentation is in a different subdirectory, you should add it to KMEXTRA. 128# If the documentation is in a different subdirectory, you should add it to KMEXTRA.
167 129
168# @ECLASS-VARIABLE: KMCOMPILEONLY 130# @ECLASS-VARIABLE: KMCOMPILEONLY
253 "${S}"/CMakeLists.txt || die "Sed to exclude bin/kde4 failed" 215 "${S}"/CMakeLists.txt || die "Sed to exclude bin/kde4 failed"
254 fi 216 fi
255 else 217 else
256 local abort tarball tarfile f extractlist moduleprefix postfix 218 local abort tarball tarfile f extractlist moduleprefix postfix
257 case ${PV} in 219 case ${PV} in
258 4.2.85) 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)
259 # block for normally packed upstream unstable snapshots 221 # block for normally packed upstream unstable snapshots
260 KMTARPARAMS="${KMTARPARAMS} --bzip2" # bz2 222 KMTARPARAMS+=" --bzip2" # bz2
261 postfix="bz2" 223 postfix="bz2"
262 ;; 224 ;;
263 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*)
264 KMTARPARAMS="${KMTARPARAMS} --lzma" # lzma 226 KMTARPARAMS+=" --lzma" # lzma
265 postfix="lzma" 227 postfix="lzma"
266 ;; 228 ;;
267 *) 229 *)
268 KMTARPARAMS="${KMTARPARAMS} --bzip2" # bz2 230 KMTARPARAMS+=" --bzip2" # bz2
269 postfix="bz2" 231 postfix="bz2"
270 ;; 232 ;;
271 esac 233 esac
272 case ${KMNAME} in 234 case ${KMNAME} in
273 kdebase-apps) 235 kdebase-apps)
274 # kdebase/apps -> kdebasa-apps 236 # kdebase/apps -> kdebase-apps
275 tarball="kdebase-${PV}.tar.${postfix}" 237 tarball="kdebase-${PV}.tar.${postfix}"
276 # Go one level deeper for kdebase-apps in tarballs 238 # Go one level deeper for kdebase-apps in tarballs
277 moduleprefix=apps/ 239 moduleprefix=apps/
278 KMTARPARAMS="${KMTARPARAMS} --transform=s|apps/||" 240 KMTARPARAMS+=" --transform=s|apps/||"
279 ;; 241 ;;
280 *) 242 *)
281 # Create tarball name from module name (this is the default) 243 # Create tarball name from module name (this is the default)
282 tarball="${KMNAME}-${PV}.tar.${postfix}" 244 tarball="${KMNAME}-${PV}.tar.${postfix}"
283 ;; 245 ;;
284 esac 246 esac
285 247
286 # Full patch to source tarball 248 # Full path to source tarball
287 tarfile="${DISTDIR}/${tarball}" 249 tarfile="${DISTDIR}/${tarball}"
288 250
289 # 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
290 # and in __list_needed_subdirectories 252 # and in __list_needed_subdirectories
291 topdir="${tarball%.tar.*}/" 253 topdir="${tarball%.tar.*}/"
295 kde4-meta_create_extractlists 257 kde4-meta_create_extractlists
296 258
297 for f in cmake/ CMakeLists.txt ConfigureChecks.cmake config.h.cmake \ 259 for f in cmake/ CMakeLists.txt ConfigureChecks.cmake config.h.cmake \
298 AUTHORS COPYING INSTALL README NEWS ChangeLog 260 AUTHORS COPYING INSTALL README NEWS ChangeLog
299 do 261 do
300 extractlist="${extractlist} ${topdir}${moduleprefix}${f}" 262 extractlist+=" ${topdir}${moduleprefix}${f}"
301 done 263 done
302 extractlist="${extractlist} $(__list_needed_subdirectories)" 264 extractlist+=" $(__list_needed_subdirectories)"
303 265
304 pushd "${WORKDIR}" > /dev/null 266 pushd "${WORKDIR}" > /dev/null
305 [[ -n ${KDE4_STRICTER} ]] && echo tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} >&2 267 [[ -n ${KDE4_STRICTER} ]] && echo tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} >&2
306 tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} 2> /dev/null 268 tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} 2> /dev/null
307 269
337# KMEXTRACTONLY and KMTARPARAMS. 299# KMEXTRACTONLY and KMTARPARAMS.
338kde4-meta_create_extractlists() { 300kde4-meta_create_extractlists() {
339 debug-print-function ${FUNCNAME} "$@" 301 debug-print-function ${FUNCNAME} "$@"
340 302
341 # TODO change to KMEXTRA for more strict check 303 # TODO change to KMEXTRA for more strict check
342 if has doc ${IUSE//+} && use doc && [[ -n ${KMMODULE} ]]; then 304 if has handbook ${IUSE//+} && use handbook && [[ -n ${KMMODULE} ]]; then
343 # We use the basename of $KMMODULE because $KMMODULE can contain 305 # We use the basename of $KMMODULE because $KMMODULE can contain
344 # the path to the module subdirectory. 306 # the path to the module subdirectory.
345 KMEXTRA_NONFATAL="${KMEXTRA_NONFATAL} doc/${KMMODULE##*/}" 307 KMEXTRA_NONFATAL+="
308 doc/${KMMODULE##*/}"
346 fi 309 fi
347 310
348 # Add some CMake-files to KMEXTRACTONLY. 311 # Add some CMake-files to KMEXTRACTONLY.
349 # Note that this actually doesn't include KMEXTRA handling. 312 # Note that this actually doesn't include KMEXTRA handling.
350 # 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
351 case ${KMNAME} in 314 case ${KMNAME} in
352 kdebase) 315 kdebase)
353 KMEXTRACTONLY="${KMEXTRACTONLY} 316 KMEXTRACTONLY+="
354 apps/config-apps.h.cmake 317 apps/config-apps.h.cmake
355 apps/ConfigureChecks.cmake" 318 apps/ConfigureChecks.cmake"
356 ;; 319 ;;
357 kdebase-apps) 320 kdebase-apps)
358 KMEXTRACTONLY="${KMEXTRACTONLY} 321 KMEXTRACTONLY+="
359 config-apps.h.cmake 322 config-apps.h.cmake
360 ConfigureChecks.cmake" 323 ConfigureChecks.cmake"
361 ;; 324 ;;
362 kdebase-runtime) 325 kdebase-runtime)
363 KMEXTRACTONLY="${KMEXTRACTONLY} 326 KMEXTRACTONLY+="
364 config-runtime.h.cmake" 327 config-runtime.h.cmake"
365 ;; 328 ;;
366 kdebase-workspace) 329 kdebase-workspace)
367 KMEXTRACTONLY="${KMEXTRACTONLY} 330 KMEXTRACTONLY+="
368 config-unix.h.cmake 331 config-unix.h.cmake
369 ConfigureChecks.cmake 332 ConfigureChecks.cmake
370 config-workspace.h.cmake 333 config-workspace.h.cmake
371 config-X11.h.cmake 334 config-X11.h.cmake
372 startkde.cmake 335 startkde.cmake
373 KDE4WorkspaceConfig.cmake.in" 336 KDE4WorkspaceConfig.cmake.in"
374 ;; 337 ;;
375 kdegames) 338 kdegames)
376 if [[ ${PN} != libkdegames ]]; then 339 if [[ ${PN} != libkdegames ]]; then
377 KMEXTRACTONLY="${KMEXTRACTONLY} 340 KMEXTRACTONLY+="
378 libkdegames" 341 libkdegames/"
379 fi 342 fi
380 ;; 343 ;;
381 kdepim) 344 kdepim)
382 if [[ ${PN} != libkdepim ]]; then 345 if [[ ${PN} != libkdepim ]]; then
383 KMEXTRACTONLY="${KMEXTRACTONLY} 346 KMEXTRACTONLY+="
384 libkdepim" 347 libkdepim/"
385 fi 348 fi
386 case ${SLOT} in 349 case ${SLOT} in
387 4.3|live) 350 4.3|4.4|live)
388 KMEXTRACTONLY="${KMEXTRACTONLY} 351 KMEXTRACTONLY+="
389 kdepim-version.h 352 kdepim-version.h
390 config-enterprise.h.cmake" 353 config-enterprise.h.cmake"
391 ;; 354 ;;
392 esac 355 esac
393 KMEXTRACTONLY="${KMEXTRACTONLY} 356 KMEXTRACTONLY+="
394 kleopatra/ConfigureChecks.cmake" 357 kleopatra/ConfigureChecks.cmake"
395 if has kontact ${IUSE//+} && use kontact; then 358 if has kontact ${IUSE//+} && use kontact; then
359 KMEXTRA+="
396 KMEXTRA="${KMEXTRA} kontact/plugins/${PLUGINNAME:-${PN}}" 360 kontact/plugins/${PLUGINNAME:-${PN}}/"
397 KMEXTRACTONLY="${KMEXTRACTONLY} kontactinterfaces/" 361 KMEXTRACTONLY+="
362 kontactinterfaces/"
398 fi 363 fi
399 ;; 364 ;;
365 kdeutils)
366 case ${SLOT} in
367 4.3|4.4|live)
368 KMEXTRACTONLY+="
369 kdeutils-version.h"
370 ;;
371 esac
372 ;;
400 koffice) 373 koffice)
401 KMEXTRACTONLY="${KMEXTRACTONLY} 374 KMEXTRACTONLY+="
402 config-endian.h.cmake 375 config-endian.h.cmake
403 filters/config-filters.h.cmake 376 filters/config-filters.h.cmake
404 config-openctl.h.cmake
405 config-openexr.h.cmake 377 config-openexr.h.cmake
406 config-opengl.h.cmake 378 config-opengl.h.cmake
407 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
408 ;; 387 ;;
409 esac 388 esac
410 # Don't install cmake modules for split ebuilds, to avoid collisions. 389 # Don't install cmake modules for split ebuilds, to avoid collisions.
411 case ${KMNAME} in 390 case ${KMNAME} in
412 kdepim) 391 kdepim)
413 # No need for unpack since 4.2.86 392 # No need for unpack since 4.2.86
414 # Remove when 4.2 is wiped out from the tree 393 # Remove when 4.2 is wiped out from the tree
415 case ${PV} in 394 case ${PV} in
416 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)
417 KMCOMPILEONLY="${KMCOMPILEONLY} 396 KMCOMPILEONLY+="
418 cmake/modules/" 397 cmake/modules/"
419 ;; 398 ;;
420 *) ;; 399 *) ;;
421 esac 400 esac
422 ;; 401 ;;
423 kdebase-runtime|kdebase-workspace|kdeedu|kdegames|kdegraphics) 402 kdebase-runtime|kdebase-workspace|kdeedu|kdegames|kdegraphics)
424 case ${PN} in 403 case ${PN} in
425 libkdegames|libkdeedu|libkworkspace) 404 libkdegames|libkdeedu|libkworkspace)
426 KMEXTRA="${KMEXTRA} 405 KMEXTRA+="
427 cmake/modules/" 406 cmake/modules/"
428 ;; 407 ;;
429 *) 408 *)
430 KMCOMPILEONLY="${KMCOMPILEONLY} 409 KMCOMPILEONLY+="
431 cmake/modules/" 410 cmake/modules/"
432 ;; 411 ;;
433 esac 412 esac
434 ;; 413 ;;
435 esac 414 esac
440__list_needed_subdirectories() { 419__list_needed_subdirectories() {
441 local i j kmextra kmextra_expanded kmmodule_expanded kmcompileonly_expanded extractlist 420 local i j kmextra kmextra_expanded kmmodule_expanded kmcompileonly_expanded extractlist
442 421
443 # We expand KMEXTRA by adding CMakeLists.txt files 422 # We expand KMEXTRA by adding CMakeLists.txt files
444 kmextra="${KMEXTRA}" 423 kmextra="${KMEXTRA}"
445 [[ ${1} != fatal ]] && kmextra="${kmextra} ${KMEXTRA_NONFATAL}" 424 [[ ${1} != fatal ]] && kmextra+=" ${KMEXTRA_NONFATAL}"
446 for i in ${kmextra}; do 425 for i in ${kmextra}; do
447 kmextra_expanded="${kmextra_expanded} ${i}" 426 kmextra_expanded+=" ${i}"
448 j=$(dirname ${i}) 427 j=$(dirname ${i})
449 while [[ ${j} != "." ]]; do 428 while [[ ${j} != "." ]]; do
450 kmextra_expanded="${kmextra_expanded} ${j}/CMakeLists.txt"; 429 kmextra_expanded+=" ${j}/CMakeLists.txt";
451 j=$(dirname ${j}) 430 j=$(dirname ${j})
452 done 431 done
453 done 432 done
454 433
455 # Expand KMMODULE 434 # Expand KMMODULE
456 if [[ -n ${KMMODULE} ]]; then 435 if [[ -n ${KMMODULE} ]]; then
457 kmmodule_expanded="${KMMODULE}" 436 kmmodule_expanded="${KMMODULE}"
458 j=$(dirname ${KMMODULE}) 437 j=$(dirname ${KMMODULE})
459 while [[ ${j} != "." ]]; do 438 while [[ ${j} != "." ]]; do
460 kmmodule_expanded="${kmmodule_expanded} ${j}/CMakeLists.txt"; 439 kmmodule_expanded+=" ${j}/CMakeLists.txt";
461 j=$(dirname ${j}) 440 j=$(dirname ${j})
462 done 441 done
463 fi 442 fi
464 443
465 # Expand KMCOMPILEONLY 444 # Expand KMCOMPILEONLY
466 for i in ${KMCOMPILEONLY}; do 445 for i in ${KMCOMPILEONLY}; do
467 kmcompileonly_expanded="${kmcompileonly_expanded} ${i}" 446 kmcompileonly_expanded+=" ${i}"
468 j=$(dirname ${i}) 447 j=$(dirname ${i})
469 while [[ ${j} != "." ]]; do 448 while [[ ${j} != "." ]]; do
470 kmcompileonly_expanded="${kmcompileonly_expanded} ${j}/CMakeLists.txt"; 449 kmcompileonly_expanded+=" ${j}/CMakeLists.txt";
471 j=$(dirname ${j}) 450 j=$(dirname ${j})
472 done 451 done
473 done 452 done
474 453
475 debug-print "line ${LINENO} ${ECLASS} ${FUNCNAME} - kmextra_expanded: ${kmextra_expanded}" 454 debug-print "line ${LINENO} ${ECLASS} ${FUNCNAME} - kmextra_expanded: ${kmextra_expanded}"
479 # Create final list of stuff to extract 458 # Create final list of stuff to extract
480 # We append topdir only when specified (usually for tarballs) 459 # We append topdir only when specified (usually for tarballs)
481 for i in ${kmmodule_expanded} ${kmextra_expanded} ${kmcompileonly_expanded} \ 460 for i in ${kmmodule_expanded} ${kmextra_expanded} ${kmcompileonly_expanded} \
482 ${KMEXTRACTONLY} 461 ${KMEXTRACTONLY}
483 do 462 do
484 extractlist="${extractlist} ${topdir}${moduleprefix}${i}" 463 extractlist+=" ${topdir}${moduleprefix}${i}"
485 done 464 done
486 465
487 echo ${extractlist} 466 echo ${extractlist}
488} 467}
489 468
593 fi 572 fi
594 # 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
595 if [[ ${PN} != libkworkspace ]]; then 574 if [[ ${PN} != libkworkspace ]]; then
596 sed -i \ 575 sed -i \
597 -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' \
598 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"
599 fi 578 fi
600 ;; 579 ;;
601 kdebase-runtime) 580 kdebase-runtime)
602 # COLLISION PROTECT section 581 # COLLISION PROTECT section
603 # 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
627 # prevent collisions 606 # prevent collisions
628 if [[ ${PN} != koffice-data ]]; then 607 if [[ ${PN} != koffice-data ]]; then
629 sed -i -e '/install(.*FindKOfficeLibs.cmake/,/)/ d' \ 608 sed -i -e '/install(.*FindKOfficeLibs.cmake/,/)/ d' \
630 "${S}"/cmake/modules/CMakeLists.txt || \ 609 "${S}"/cmake/modules/CMakeLists.txt || \
631 die "${LINENO}: sed died in collision prevention section" 610 die "${LINENO}: sed died in collision prevention section"
611 case ${PV} in
612 2.0.*)
632 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}' \
633 "${S}"/CMakeLists.txt || \ 614 "${S}"/CMakeLists.txt || \
634 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
635 fi 623 fi
636 esac 624 esac
637 625
638 popd > /dev/null 626 popd > /dev/null
639} 627}
666# General function for compiling split KDE4 applications. 654# General function for compiling split KDE4 applications.
667# Overrides kde4-base_src_compile. 655# Overrides kde4-base_src_compile.
668kde4-meta_src_compile() { 656kde4-meta_src_compile() {
669 debug-print-function ${FUNCNAME} "$@" 657 debug-print-function ${FUNCNAME} "$@"
670 658
671 kde4-base_src_compile 659 kde4-base_src_compile "$@"
672} 660}
673 661
674# @FUNCTION: kde4-meta_src_test 662# @FUNCTION: kde4-meta_src_test
675# @DESCRIPTION: 663# @DESCRIPTION:
676# 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
691} 679}
692 680
693# @FUNCTION: kde4-meta_src_make_doc 681# @FUNCTION: kde4-meta_src_make_doc
694# @DESCRIPTION: 682# @DESCRIPTION:
695# This function searches in ${S}/${KMMODULE}, 683# This function searches in ${S}/${KMMODULE},
696# 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.
697kde4-meta_src_make_doc() { 685kde4-meta_src_make_doc() {
698 debug-print-function ${FUNCNAME} "$@" 686 debug-print-function ${FUNCNAME} "$@"
699 687
700 local doc 688 local doc
701 for doc in AUTHORS ChangeLog* README* NEWS TODO; do 689 for doc in AUTHORS ChangeLog* README* NEWS TODO; do
709# @DESCRIPTION: 697# @DESCRIPTION:
710# Display information about application handbook and invoke kbuildsycoca4. 698# Display information about application handbook and invoke kbuildsycoca4.
711kde4-meta_pkg_postinst() { 699kde4-meta_pkg_postinst() {
712 debug-print-function ${FUNCNAME} "$@" 700 debug-print-function ${FUNCNAME} "$@"
713 701
714 if has doc ${IUSE//+} && ! use doc; then 702 if has handbook ${IUSE//+} && ! use handbook; then
715 echo 703 echo
716 einfo "Application handbook for ${PN} has not been installed." 704 einfo "Application handbook for ${PN} has not been installed."
717 einfo "To install handbook, reemerge =${CATEGORY}/${P} with 'doc' USE flag." 705 einfo "To install handbook, reemerge =${CATEGORY}/${PF} with 'handbook' USE flag."
718 echo 706 echo
719 fi 707 fi
720 708
721 kde4-base_pkg_postinst 709 kde4-base_pkg_postinst
722} 710}

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

  ViewVC Help
Powered by ViewVC 1.1.20