/[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.17 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.17 2009/04/13 00:02:45 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# 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 !kdeprefix? (
91 !app-office/${PN}:0 56 !app-office/${PN}:0
92 !app-office/koffice:0 57 !app-office/koffice:0
93 !app-office/koffice-meta:0 58 !app-office/koffice-meta:0
94 )
95 " 59 "
60 if has openexr ${IUSE//+}; then
61 COMMONDEPEND+=" media-gfx/imagemagick[openexr?]"
62 else
63 COMMONDEPEND+=" media-gfx/imagemagick"
64 fi
65
96 COMMON_DEPEND=" 66 COMMONDEPEND+="
97 dev-cpp/eigen:2 67 dev-cpp/eigen:2
98 media-gfx/imagemagick[openexr?]
99 media-libs/fontconfig 68 media-libs/fontconfig
100 media-libs/freetype:2 69 media-libs/freetype:2
101 " 70 "
102 DEPEND="${DEPEND} ${COMMON_DEPEND}"
103 RDEPEND="${RDEPEND} ${COMMON_DEPEND}"
104 unset COMMON_DEPEND
105 if [[ ${PN} != koffice-libs && ${PN} != koffice-data ]]; then 71 if [[ ${PN} != koffice-libs && ${PN} != koffice-data ]]; then
106 DEPEND="${DEPEND}
107 >=app-office/koffice-libs-${PV}:${SLOT} 72 COMMONDEPEND+=" >=app-office/koffice-libs-${PV}:${SLOT}"
108 "
109 RDEPEND="${RDEPEND}
110 >=app-office/koffice-libs-${PV}:${SLOT}
111 "
112 fi 73 fi
113 ;; 74 ;;
114esac 75esac
76
77DEPEND+=" ${COMMONDEPEND}"
78RDEPEND+=" ${COMMONDEPEND}"
79unset COMMONDEPEND
115 80
116debug-print "line ${LINENO} ${ECLASS}: DEPEND ${DEPEND} - after metapackage-specific dependencies" 81debug-print "line ${LINENO} ${ECLASS}: DEPEND ${DEPEND} - after metapackage-specific dependencies"
117debug-print "line ${LINENO} ${ECLASS}: RDEPEND ${RDEPEND} - after metapackage-specific dependencies" 82debug-print "line ${LINENO} ${ECLASS}: RDEPEND ${RDEPEND} - after metapackage-specific dependencies"
118 83
119# 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)
120case ${BUILD_TYPE} in 85case ${BUILD_TYPE} in
121 live) 86 live)
122 case ${KMNAME} in 87 case ${KMNAME} in
123 extragear*|playground*) 88 extragear*|playground*)
124 ESVN_REPO_URI="${ESVN_MIRROR}/trunk/${KMNAME}" 89 ESVN_REPO_URI="${ESVN_MIRROR}/trunk/${KMNAME}"
125 ESVN_PROJECT="${KMNAME}" 90 ESVN_PROJECT="${KMNAME}${ESVN_PROJECT_SUFFIX}"
126 ;; 91 ;;
127 esac 92 esac
128 ;; 93 ;;
129esac 94esac
130 95
155 120
156# @ECLASS-VARIABLE: KMEXTRA 121# @ECLASS-VARIABLE: KMEXTRA
157# @DESCRIPTION: 122# @DESCRIPTION:
158# All subdirectories listed here will be extracted, compiled & installed. 123# All subdirectories listed here will be extracted, compiled & installed.
159# $KMMODULE is always added to $KMEXTRA. 124# $KMMODULE is always added to $KMEXTRA.
160# If the htmlhandbook USE-flag is set, and if this directory exists, 125# If the handbook USE-flag is set, and if this directory exists,
161# 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
162# handled in the ebuild. 127# handled in the ebuild.
163# 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.
164 129
165# @ECLASS-VARIABLE: KMCOMPILEONLY 130# @ECLASS-VARIABLE: KMCOMPILEONLY
250 "${S}"/CMakeLists.txt || die "Sed to exclude bin/kde4 failed" 215 "${S}"/CMakeLists.txt || die "Sed to exclude bin/kde4 failed"
251 fi 216 fi
252 else 217 else
253 local abort tarball tarfile f extractlist moduleprefix postfix 218 local abort tarball tarfile f extractlist moduleprefix postfix
254 case ${PV} in 219 case ${PV} in
255 4.2.9* | 4.2.8* | 4.2.7* | 4.2.6*) 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)
221 # block for normally packed upstream unstable snapshots
222 KMTARPARAMS+=" --bzip2" # bz2
223 postfix="bz2"
224 ;;
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*)
256 KMTARPARAMS="${KMTARPARAMS} --lzma" # lzma 226 KMTARPARAMS+=" --lzma" # lzma
257 postfix="lzma" 227 postfix="lzma"
258 ;; 228 ;;
259 *) 229 *)
260 KMTARPARAMS="${KMTARPARAMS} --bzip2" # bz2 230 KMTARPARAMS+=" --bzip2" # bz2
261 postfix="bz2" 231 postfix="bz2"
262 ;; 232 ;;
263 esac 233 esac
264 case ${KMNAME} in 234 case ${KMNAME} in
265 kdebase-apps) 235 kdebase-apps)
266 # kdebase/apps -> kdebasa-apps 236 # kdebase/apps -> kdebase-apps
267 tarball="kdebase-${PV}.tar.${postfix}" 237 tarball="kdebase-${PV}.tar.${postfix}"
268 # Go one level deeper for kdebase-apps in tarballs 238 # Go one level deeper for kdebase-apps in tarballs
269 moduleprefix=apps/ 239 moduleprefix=apps/
270 KMTARPARAMS="${KMTARPARAMS} --transform=s|apps/||" 240 KMTARPARAMS+=" --transform=s|apps/||"
271 ;; 241 ;;
272 *) 242 *)
273 # Create tarball name from module name (this is the default) 243 # Create tarball name from module name (this is the default)
274 tarball="${KMNAME}-${PV}.tar.${postfix}" 244 tarball="${KMNAME}-${PV}.tar.${postfix}"
275 ;; 245 ;;
276 esac 246 esac
277 247
278 # Full patch to source tarball 248 # Full path to source tarball
279 tarfile="${DISTDIR}/${tarball}" 249 tarfile="${DISTDIR}/${tarball}"
280 250
281 # 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
282 # and in __list_needed_subdirectories 252 # and in __list_needed_subdirectories
283 topdir="${tarball%.tar.*}/" 253 topdir="${tarball%.tar.*}/"
287 kde4-meta_create_extractlists 257 kde4-meta_create_extractlists
288 258
289 for f in cmake/ CMakeLists.txt ConfigureChecks.cmake config.h.cmake \ 259 for f in cmake/ CMakeLists.txt ConfigureChecks.cmake config.h.cmake \
290 AUTHORS COPYING INSTALL README NEWS ChangeLog 260 AUTHORS COPYING INSTALL README NEWS ChangeLog
291 do 261 do
292 extractlist="${extractlist} ${topdir}${moduleprefix}${f}" 262 extractlist+=" ${topdir}${moduleprefix}${f}"
293 done 263 done
294 extractlist="${extractlist} $(__list_needed_subdirectories)" 264 extractlist+=" $(__list_needed_subdirectories)"
295 265
296 pushd "${WORKDIR}" > /dev/null 266 pushd "${WORKDIR}" > /dev/null
297 [[ -n ${KDE4_STRICTER} ]] && echo tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} >&2 267 [[ -n ${KDE4_STRICTER} ]] && echo tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} >&2
298 tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} 2> /dev/null 268 tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} 2> /dev/null
299 269
329# KMEXTRACTONLY and KMTARPARAMS. 299# KMEXTRACTONLY and KMTARPARAMS.
330kde4-meta_create_extractlists() { 300kde4-meta_create_extractlists() {
331 debug-print-function ${FUNCNAME} "$@" 301 debug-print-function ${FUNCNAME} "$@"
332 302
333 # TODO change to KMEXTRA for more strict check 303 # TODO change to KMEXTRA for more strict check
334 if has doc ${IUSE//+} && use doc && [[ -n ${KMMODULE} ]]; then 304 if has handbook ${IUSE//+} && use handbook && [[ -n ${KMMODULE} ]]; then
335 # We use the basename of $KMMODULE because $KMMODULE can contain 305 # We use the basename of $KMMODULE because $KMMODULE can contain
336 # the path to the module subdirectory. 306 # the path to the module subdirectory.
337 KMEXTRA_NONFATAL="${KMEXTRA_NONFATAL} doc/${KMMODULE##*/}" 307 KMEXTRA_NONFATAL+="
308 doc/${KMMODULE##*/}"
338 fi 309 fi
339 310
340 # Add some CMake-files to KMEXTRACTONLY. 311 # Add some CMake-files to KMEXTRACTONLY.
341 # Note that this actually doesn't include KMEXTRA handling. 312 # Note that this actually doesn't include KMEXTRA handling.
342 # 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
343 case ${KMNAME} in 314 case ${KMNAME} in
344 kdebase) 315 kdebase)
345 KMEXTRACTONLY="${KMEXTRACTONLY} 316 KMEXTRACTONLY+="
346 apps/config-apps.h.cmake 317 apps/config-apps.h.cmake
347 apps/ConfigureChecks.cmake" 318 apps/ConfigureChecks.cmake"
348 ;; 319 ;;
349 kdebase-apps) 320 kdebase-apps)
350 KMEXTRACTONLY="${KMEXTRACTONLY} 321 KMEXTRACTONLY+="
351 config-apps.h.cmake 322 config-apps.h.cmake
352 ConfigureChecks.cmake" 323 ConfigureChecks.cmake"
353 ;; 324 ;;
354 kdebase-runtime) 325 kdebase-runtime)
355 KMEXTRACTONLY="${KMEXTRACTONLY} 326 KMEXTRACTONLY+="
356 config-runtime.h.cmake" 327 config-runtime.h.cmake"
357 ;; 328 ;;
358 kdebase-workspace) 329 kdebase-workspace)
359 KMEXTRACTONLY="${KMEXTRACTONLY} 330 KMEXTRACTONLY+="
360 config-unix.h.cmake 331 config-unix.h.cmake
361 ConfigureChecks.cmake 332 ConfigureChecks.cmake
362 config-workspace.h.cmake 333 config-workspace.h.cmake
363 config-X11.h.cmake 334 config-X11.h.cmake
364 startkde.cmake 335 startkde.cmake
365 KDE4WorkspaceConfig.cmake.in" 336 KDE4WorkspaceConfig.cmake.in"
366 ;; 337 ;;
367 kdegames) 338 kdegames)
368 if [[ ${PN} != libkdegames ]]; then 339 if [[ ${PN} != libkdegames ]]; then
369 KMEXTRACTONLY="${KMEXTRACTONLY} 340 KMEXTRACTONLY+="
370 libkdegames" 341 libkdegames/"
371 fi 342 fi
372 ;; 343 ;;
373 kdepim) 344 kdepim)
374 if [[ ${PN} != libkdepim ]]; then 345 if [[ ${PN} != libkdepim ]]; then
375 KMEXTRACTONLY="${KMEXTRACTONLY} 346 KMEXTRACTONLY+="
376 libkdepim" 347 libkdepim/"
377 fi 348 fi
378 case ${SLOT} in 349 case ${SLOT} in
379 4.3|live) 350 4.3|4.4|live)
380 KMEXTRACTONLY="${KMEXTRACTONLY} 351 KMEXTRACTONLY+="
381 kdepim-version.h 352 kdepim-version.h
382 config-enterprise.h.cmake" 353 config-enterprise.h.cmake"
383 ;; 354 ;;
384 esac 355 esac
385 KMEXTRACTONLY="${KMEXTRACTONLY} 356 KMEXTRACTONLY+="
386 kleopatra/ConfigureChecks.cmake" 357 kleopatra/ConfigureChecks.cmake"
387 if has kontact ${IUSE//+} && use kontact; then 358 if has kontact ${IUSE//+} && use kontact; then
359 KMEXTRA+="
388 KMEXTRA="${KMEXTRA} kontact/plugins/${PLUGINNAME:-${PN}}" 360 kontact/plugins/${PLUGINNAME:-${PN}}/"
389 KMEXTRACTONLY="${KMEXTRACTONLY} kontactinterfaces/" 361 KMEXTRACTONLY+="
362 kontactinterfaces/"
390 fi 363 fi
391 ;; 364 ;;
365 kdeutils)
366 case ${SLOT} in
367 4.3|4.4|live)
368 KMEXTRACTONLY+="
369 kdeutils-version.h"
370 ;;
371 esac
372 ;;
392 koffice) 373 koffice)
393 KMEXTRACTONLY="${KMEXTRACTONLY} 374 KMEXTRACTONLY+="
394 config-endian.h.cmake 375 config-endian.h.cmake
395 filters/config-filters.h.cmake 376 filters/config-filters.h.cmake
396 config-openctl.h.cmake
397 config-openexr.h.cmake 377 config-openexr.h.cmake
398 config-opengl.h.cmake 378 config-opengl.h.cmake
399 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
400 ;; 387 ;;
401 esac 388 esac
402 # Don't install cmake modules for split ebuilds, to avoid collisions. 389 # Don't install cmake modules for split ebuilds, to avoid collisions.
403 case ${KMNAME} in 390 case ${KMNAME} in
391 kdepim)
392 # No need for unpack since 4.2.86
393 # Remove when 4.2 is wiped out from the tree
394 case ${PV} in
395 4.1*|4.2.0|4.2.1|4.2.2|4.2.3|4.2.4|4.2.85)
396 KMCOMPILEONLY+="
397 cmake/modules/"
398 ;;
399 *) ;;
400 esac
401 ;;
404 kdebase-runtime|kdebase-workspace|kdeedu|kdegames|kdegraphics|kdepim) 402 kdebase-runtime|kdebase-workspace|kdeedu|kdegames|kdegraphics)
405 case ${PN} in 403 case ${PN} in
406 libkdegames|libkdeedu|libkworkspace) 404 libkdegames|libkdeedu|libkworkspace)
407 KMEXTRA="${KMEXTRA} 405 KMEXTRA+="
408 cmake/modules/" 406 cmake/modules/"
409 ;; 407 ;;
410 *) 408 *)
411 KMCOMPILEONLY="${KMCOMPILEONLY} 409 KMCOMPILEONLY+="
412 cmake/modules/" 410 cmake/modules/"
413 ;; 411 ;;
414 esac 412 esac
415 ;; 413 ;;
416 esac 414 esac
421__list_needed_subdirectories() { 419__list_needed_subdirectories() {
422 local i j kmextra kmextra_expanded kmmodule_expanded kmcompileonly_expanded extractlist 420 local i j kmextra kmextra_expanded kmmodule_expanded kmcompileonly_expanded extractlist
423 421
424 # We expand KMEXTRA by adding CMakeLists.txt files 422 # We expand KMEXTRA by adding CMakeLists.txt files
425 kmextra="${KMEXTRA}" 423 kmextra="${KMEXTRA}"
426 [[ ${1} != fatal ]] && kmextra="${kmextra} ${KMEXTRA_NONFATAL}" 424 [[ ${1} != fatal ]] && kmextra+=" ${KMEXTRA_NONFATAL}"
427 for i in ${kmextra}; do 425 for i in ${kmextra}; do
428 kmextra_expanded="${kmextra_expanded} ${i}" 426 kmextra_expanded+=" ${i}"
429 j=$(dirname ${i}) 427 j=$(dirname ${i})
430 while [[ ${j} != "." ]]; do 428 while [[ ${j} != "." ]]; do
431 kmextra_expanded="${kmextra_expanded} ${j}/CMakeLists.txt"; 429 kmextra_expanded+=" ${j}/CMakeLists.txt";
432 j=$(dirname ${j}) 430 j=$(dirname ${j})
433 done 431 done
434 done 432 done
435 433
436 # Expand KMMODULE 434 # Expand KMMODULE
437 if [[ -n ${KMMODULE} ]]; then 435 if [[ -n ${KMMODULE} ]]; then
438 kmmodule_expanded="${KMMODULE}" 436 kmmodule_expanded="${KMMODULE}"
439 j=$(dirname ${KMMODULE}) 437 j=$(dirname ${KMMODULE})
440 while [[ ${j} != "." ]]; do 438 while [[ ${j} != "." ]]; do
441 kmmodule_expanded="${kmmodule_expanded} ${j}/CMakeLists.txt"; 439 kmmodule_expanded+=" ${j}/CMakeLists.txt";
442 j=$(dirname ${j}) 440 j=$(dirname ${j})
443 done 441 done
444 fi 442 fi
445 443
446 # Expand KMCOMPILEONLY 444 # Expand KMCOMPILEONLY
447 for i in ${KMCOMPILEONLY}; do 445 for i in ${KMCOMPILEONLY}; do
448 kmcompileonly_expanded="${kmcompileonly_expanded} ${i}" 446 kmcompileonly_expanded+=" ${i}"
449 j=$(dirname ${i}) 447 j=$(dirname ${i})
450 while [[ ${j} != "." ]]; do 448 while [[ ${j} != "." ]]; do
451 kmcompileonly_expanded="${kmcompileonly_expanded} ${j}/CMakeLists.txt"; 449 kmcompileonly_expanded+=" ${j}/CMakeLists.txt";
452 j=$(dirname ${j}) 450 j=$(dirname ${j})
453 done 451 done
454 done 452 done
455 453
456 debug-print "line ${LINENO} ${ECLASS} ${FUNCNAME} - kmextra_expanded: ${kmextra_expanded}" 454 debug-print "line ${LINENO} ${ECLASS} ${FUNCNAME} - kmextra_expanded: ${kmextra_expanded}"
460 # Create final list of stuff to extract 458 # Create final list of stuff to extract
461 # We append topdir only when specified (usually for tarballs) 459 # We append topdir only when specified (usually for tarballs)
462 for i in ${kmmodule_expanded} ${kmextra_expanded} ${kmcompileonly_expanded} \ 460 for i in ${kmmodule_expanded} ${kmextra_expanded} ${kmcompileonly_expanded} \
463 ${KMEXTRACTONLY} 461 ${KMEXTRACTONLY}
464 do 462 do
465 extractlist="${extractlist} ${topdir}${moduleprefix}${i}" 463 extractlist+=" ${topdir}${moduleprefix}${i}"
466 done 464 done
467 465
468 echo ${extractlist} 466 echo ${extractlist}
469} 467}
470 468
572 sed -i -e '/startkde/s/^/#DONOTINSTALL /' "${S}"/CMakeLists.txt || \ 570 sed -i -e '/startkde/s/^/#DONOTINSTALL /' "${S}"/CMakeLists.txt || \
573 die "${LINENO}: sed died in the kdebase-startkde collision prevention section" 571 die "${LINENO}: sed died in the kdebase-startkde collision prevention section"
574 fi 572 fi
575 # 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
576 if [[ ${PN} != libkworkspace ]]; then 574 if [[ ${PN} != libkworkspace ]]; then
575 sed -i \
577 sed -i -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' \
578 CMakeLists.txt || die "${LINENO}: sed died in kdebase-workspace strip EXPORT section" 577 CMakeLists.txt || die "${LINENO}: sed died in kdebase-workspace strip config install and fix EXPORT section"
579 fi 578 fi
580 ;; 579 ;;
581 kdebase-runtime) 580 kdebase-runtime)
582 # COLLISION PROTECT section 581 # COLLISION PROTECT section
583 # 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
596 esac 595 esac
597 ;; 596 ;;
598 kdewebdev) 597 kdewebdev)
599 # Disable hardcoded kdepimlibs check 598 # Disable hardcoded kdepimlibs check
600 sed -e 's/find_package(KdepimLibs REQUIRED)/macro_optional_find_package(KdepimLibs)/' \ 599 sed -e 's/find_package(KdepimLibs REQUIRED)/macro_optional_find_package(KdepimLibs)/' \
601 -e 's/find_package(LibXml2 REQUIRED)/macro_optional_find_package(LibXml2 REQUIRED)/' \ 600 -e 's/find_package(LibXml2 REQUIRED)/macro_optional_find_package(LibXml2)/' \
602 -e 's/find_package(LibXslt REQUIRED)/macro_optional_find_package(LibXslt REQUIRED)/' \ 601 -e 's/find_package(LibXslt REQUIRED)/macro_optional_find_package(LibXslt)/' \
603 -e 's/find_package(Boost REQUIRED)/macro_optional_find_package(Boost REQUIRED)/' \ 602 -e 's/find_package(Boost REQUIRED)/macro_optional_find_package(Boost)/' \
604 -i CMakeLists.txt || die "failed to disable hardcoded checks" 603 -i CMakeLists.txt || die "failed to disable hardcoded checks"
605 ;; 604 ;;
606 koffice) 605 koffice)
607 # prevent collisions 606 # prevent collisions
608 if [[ ${PN} != koffice-data ]]; then 607 if [[ ${PN} != koffice-data ]]; then
609 sed -i -e '/install(.*FindKOfficeLibs.cmake/,/)/ d' \ 608 sed -i -e '/install(.*FindKOfficeLibs.cmake/,/)/ d' \
610 "${S}"/cmake/modules/CMakeLists.txt || \ 609 "${S}"/cmake/modules/CMakeLists.txt || \
611 die "${LINENO}: sed died in collision prevention section" 610 die "${LINENO}: sed died in collision prevention section"
611 case ${PV} in
612 2.0.*)
612 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}' \
613 "${S}"/CMakeLists.txt || \ 614 "${S}"/CMakeLists.txt || \
614 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
615 fi 623 fi
616 esac 624 esac
617 625
618 popd > /dev/null 626 popd > /dev/null
619} 627}
646# General function for compiling split KDE4 applications. 654# General function for compiling split KDE4 applications.
647# Overrides kde4-base_src_compile. 655# Overrides kde4-base_src_compile.
648kde4-meta_src_compile() { 656kde4-meta_src_compile() {
649 debug-print-function ${FUNCNAME} "$@" 657 debug-print-function ${FUNCNAME} "$@"
650 658
651 kde4-base_src_compile 659 kde4-base_src_compile "$@"
652} 660}
653 661
654# @FUNCTION: kde4-meta_src_test 662# @FUNCTION: kde4-meta_src_test
655# @DESCRIPTION: 663# @DESCRIPTION:
656# 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
671} 679}
672 680
673# @FUNCTION: kde4-meta_src_make_doc 681# @FUNCTION: kde4-meta_src_make_doc
674# @DESCRIPTION: 682# @DESCRIPTION:
675# This function searches in ${S}/${KMMODULE}, 683# This function searches in ${S}/${KMMODULE},
676# 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.
677kde4-meta_src_make_doc() { 685kde4-meta_src_make_doc() {
678 debug-print-function ${FUNCNAME} "$@" 686 debug-print-function ${FUNCNAME} "$@"
679 687
680 local doc 688 local doc
681 for doc in AUTHORS ChangeLog* README* NEWS TODO; do 689 for doc in AUTHORS ChangeLog* README* NEWS TODO; do
689# @DESCRIPTION: 697# @DESCRIPTION:
690# Display information about application handbook and invoke kbuildsycoca4. 698# Display information about application handbook and invoke kbuildsycoca4.
691kde4-meta_pkg_postinst() { 699kde4-meta_pkg_postinst() {
692 debug-print-function ${FUNCNAME} "$@" 700 debug-print-function ${FUNCNAME} "$@"
693 701
694 if has doc ${IUSE//+} && ! use doc; then 702 if has handbook ${IUSE//+} && ! use handbook; then
695 echo 703 echo
696 einfo "Application handbook for ${PN} has not been installed." 704 einfo "Application handbook for ${PN} has not been installed."
697 einfo "To install handbook, reemerge =${CATEGORY}/${P} with 'doc' USE flag." 705 einfo "To install handbook, reemerge =${CATEGORY}/${PF} with 'handbook' USE flag."
698 echo 706 echo
699 fi 707 fi
700 708
701 kde4-base_pkg_postinst 709 kde4-base_pkg_postinst
702} 710}

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

  ViewVC Help
Powered by ViewVC 1.1.20