/[gentoo-x86]/eclass/kde4-base.eclass
Gentoo

Diff of /eclass/kde4-base.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.69 Revision 1.83
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2010 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-base.eclass,v 1.69 2010/09/09 17:02:30 reavertm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.83 2011/01/11 13:15:46 xarthisius Exp $
4 4
5# @ECLASS: kde4-base.eclass 5# @ECLASS: kde4-base.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# kde@gentoo.org 7# kde@gentoo.org
8# @BLURB: This eclass provides functions for kde 4.X ebuilds 8# @BLURB: This eclass provides functions for kde 4.X ebuilds
11# and KDE4 applications. 11# and KDE4 applications.
12# 12#
13# NOTE: KDE 4 ebuilds by default define EAPI="2", this can be redefined but 13# NOTE: KDE 4 ebuilds by default define EAPI="2", this can be redefined but
14# eclass will fail with version older than 2. 14# eclass will fail with version older than 2.
15 15
16# @ECLASS-VARIABLE: VIRTUALX_REQUIRED
17# @DESCRIPTION:
18# Do we need an X server? Valid values are "always", "optional", and "manual".
19# "tests" is a synonym for "optional". While virtualx.eclass supports in principle
20# also the use of an X server during other ebuild phases, we only use it in
21# src_test here. Most likely you'll want to set "optional", which introduces the
22# use-flag "test" (if not already present), adds dependencies conditional on that
23# use-flag, and automatically runs (only) the ebuild test phase with a virtual X server
24# present. This makes things a lot more comfortable than the bare virtualx eclass.
25
26# In case the variable is not set in the ebuild, let virtualx eclass not do anything
27: ${VIRTUALX_REQUIRED:=manual}
28
16inherit kde4-functions base eutils 29inherit kde4-functions base virtualx eutils
17 30
18get_build_type 31get_build_type
19if [[ ${BUILD_TYPE} = live ]]; then 32if [[ ${BUILD_TYPE} = live ]]; then
20 if [[ ${KDEBASE} = kdevelop ]]; then 33 if [[ ${KDEBASE} = kdevelop ]]; then
21 inherit git 34 inherit git
60case ${KDEBASE} in 73case ${KDEBASE} in
61 kde-base) 74 kde-base)
62 # Determine SLOT from PVs 75 # Determine SLOT from PVs
63 case ${PV} in 76 case ${PV} in
64 *.9999*) SLOT="${PV/.9999*/}" ;; # stable live 77 *.9999*) SLOT="${PV/.9999*/}" ;; # stable live
65 4.6* | 4.5.[6-9]*) SLOT="4.6" ;; 78 4.6* | 4.5.[6-9][0-9]*) SLOT="4.6" ;;
66 4.5* | 4.4.[6-9]*) SLOT="4.5" ;; 79 4.5* | 4.4.[6-9][0-9]*) SLOT="4.5" ;;
67 4.4* | 4.3.[6-9]*) SLOT="4.4" ;; 80 4.4* | 4.3.[6-9][0-9]*) SLOT="4.4" ;;
68 9999*) SLOT="live" ;; # regular live 81 9999*) SLOT="live" ;; # regular live
69 *) die "Unsupported ${PV}" ;; 82 *) die "Unsupported ${PV}" ;;
70 esac 83 esac
71 KDE_MINIMAL="${SLOT}" 84 KDE_MINIMAL="${SLOT}"
72 ;; 85 ;;
111EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare ${export_fns} pkg_postinst pkg_postrm 124EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare ${export_fns} pkg_postinst pkg_postrm
112 125
113unset buildsystem_eclass 126unset buildsystem_eclass
114unset export_fns 127unset export_fns
115 128
129# @ECLASS-VARIABLE: DECLARATIVE_REQUIRED
130# @DESCRIPTION:
131# Is qt-declarative required? Possible values are 'always', 'optional' and 'never'.
132# This variable must be set before inheriting any eclasses. Defaults to 'never'.
133DECLARATIVE_REQUIRED="${DECLARATIVE_REQUIRED:-never}"
134
135# @ECLASS-VARIABLE: QTHELP_REQUIRED
136# @DESCRIPTION:
137# Is qt-assistant required? Possible values are 'always', 'optional' and 'never'.
138# This variable must be set before inheriting any eclasses. Defaults to 'never'.
139QTHELP_REQUIRED="${QTHELP_REQUIRED:-never}"
140
116# @ECLASS-VARIABLE: OPENGL_REQUIRED 141# @ECLASS-VARIABLE: OPENGL_REQUIRED
117# @DESCRIPTION: 142# @DESCRIPTION:
118# Is qt-opengl required? Possible values are 'always', 'optional' and 'never'. 143# Is qt-opengl required? Possible values are 'always', 'optional' and 'never'.
119# This variable must be set before inheriting any eclasses. Defaults to 'never'. 144# This variable must be set before inheriting any eclasses. Defaults to 'never'.
120OPENGL_REQUIRED="${OPENGL_REQUIRED:-never}" 145OPENGL_REQUIRED="${OPENGL_REQUIRED:-never}"
139 164
140# @ECLASS-VARIABLE: KDE_REQUIRED 165# @ECLASS-VARIABLE: KDE_REQUIRED
141# @DESCRIPTION: 166# @DESCRIPTION:
142# Is kde required? Possible values are 'always', 'optional' and 'never'. 167# Is kde required? Possible values are 'always', 'optional' and 'never'.
143# This variable must be set before inheriting any eclasses. Defaults to 'always' 168# This variable must be set before inheriting any eclasses. Defaults to 'always'
144# If set to always or optional, KDE_MINIMAL may be overriden as well. 169# If set to 'always' or 'optional', KDE_MINIMAL may be overriden as well.
145# Note that for kde-base packages this variable is fixed to 'always'. 170# Note that for kde-base packages this variable is fixed to 'always'.
146KDE_REQUIRED="${KDE_REQUIRED:-always}" 171KDE_REQUIRED="${KDE_REQUIRED:-always}"
147 172
148# @ECLASS-VARIABLE: KDE_HANDBOOK 173# @ECLASS-VARIABLE: KDE_HANDBOOK
149# @DESCRIPTION: 174# @DESCRIPTION:
150# Set to enable handbook in application. It adds +handbook to IUSE, handbook dirs 175# Set to enable handbook in application. Possible values are 'always', 'optional'
176# (handbook USE flag) and 'never'.
177# This variable must be set before inheriting any eclasses. Defaults to 'never'.
178# It adds default handbook dirs for kde-base packages to KMEXTRA and in any case it
151# to KMEXTRA and ensures buildtime and runtime dependencies. 179# ensures buildtime and runtime dependencies.
152[[ -n ${KDE_HANDBOOK} ]] && IUSE+=" +handbook" 180KDE_HANDBOOK="${KDE_HANDBOOK:-never}"
153 181
154# Setup packages inheriting this eclass 182# Setup packages inheriting this eclass
155case ${KDEBASE} in 183case ${KDEBASE} in
156 kde-base) 184 kde-base)
157 HOMEPAGE="http://www.kde.org/" 185 HOMEPAGE="http://www.kde.org/"
187esac 215esac
188 216
189# @ECLASS-VARIABLE: QT_MINIMAL 217# @ECLASS-VARIABLE: QT_MINIMAL
190# @DESCRIPTION: 218# @DESCRIPTION:
191# Determine version of qt we enforce as minimal for the package. 4.4.0 4.5.1... 219# Determine version of qt we enforce as minimal for the package. 4.4.0 4.5.1...
192# 4.6.0 for 4.4 and 4.6.3 for 4.5 and later 220# 4.6.0 for 4.4, 4.6.3 for 4.5, and 4.7.0 for 4.6 and later
221if slot_is_at_least 4.6 "${KDE_MINIMAL}"; then
222 QT_MINIMAL="${QT_MINIMAL:-4.7.0}"
193if slot_is_at_least 4.5 "${KDE_MINIMAL}"; then 223elif slot_is_at_least 4.5 "${KDE_MINIMAL}"; then
194 QT_MINIMAL="${QT_MINIMAL:-4.6.3}" 224 QT_MINIMAL="${QT_MINIMAL:-4.6.3}"
195else 225else
196 QT_MINIMAL="${QT_MINIMAL:-4.6.0}" 226 QT_MINIMAL="${QT_MINIMAL:-4.6.0}"
197fi 227fi
228
229# Declarative dependencies
230qtdeclarativedepend="
231 >=x11-libs/qt-declarative-${QT_MINIMAL}:4
232"
233case ${DECLARATIVE_REQUIRED} in
234 always)
235 COMMONDEPEND+=" ${qtdeclarativedepend}"
236 ;;
237 optional)
238 IUSE+=" declarative"
239 COMMONDEPEND+=" declarative? ( ${qtdeclarativedepend} )"
240 ;;
241 *) ;;
242esac
243unset qtdeclarativedepend
244
245# QtHelp dependencies
246qthelpdepend="
247 >=x11-libs/qt-assistant-${QT_MINIMAL}:4
248"
249case ${QTHELP_REQUIRED} in
250 always)
251 COMMONDEPEND+=" ${qthelpdepend}"
252 ;;
253 optional)
254 IUSE+=" qthelp"
255 COMMONDEPEND+=" qthelp? ( ${qthelpdepend} )"
256 ;;
257esac
258unset qthelpdepend
198 259
199# OpenGL dependencies 260# OpenGL dependencies
200qtopengldepend=" 261qtopengldepend="
201 >=x11-libs/qt-opengl-${QT_MINIMAL}:4 262 >=x11-libs/qt-opengl-${QT_MINIMAL}:4
202" 263"
271unset cppuintdepend 332unset cppuintdepend
272 333
273# KDE dependencies 334# KDE dependencies
274# Qt accessibility classes are needed in various places, bug 325461 335# Qt accessibility classes are needed in various places, bug 325461
275kdecommondepend=" 336kdecommondepend="
337 dev-lang/perl
276 >=x11-libs/qt-core-${QT_MINIMAL}:4[qt3support,ssl] 338 >=x11-libs/qt-core-${QT_MINIMAL}:4[qt3support,ssl]
277 >=x11-libs/qt-gui-${QT_MINIMAL}:4[accessibility,dbus] 339 >=x11-libs/qt-gui-${QT_MINIMAL}:4[accessibility,dbus]
278 >=x11-libs/qt-qt3support-${QT_MINIMAL}:4[accessibility,kde] 340 >=x11-libs/qt-qt3support-${QT_MINIMAL}:4[accessibility,kde]
279 >=x11-libs/qt-script-${QT_MINIMAL}:4 341 >=x11-libs/qt-script-${QT_MINIMAL}:4
280 >=x11-libs/qt-sql-${QT_MINIMAL}:4[qt3support] 342 >=x11-libs/qt-sql-${QT_MINIMAL}:4[qt3support]
284 x11-libs/libXext 346 x11-libs/libXext
285 x11-libs/libXt 347 x11-libs/libXt
286 x11-libs/libXxf86vm 348 x11-libs/libXxf86vm
287 ) 349 )
288" 350"
289#perl is not needed on host (+ difficult crosscompilation)
290tc-is-cross-compiler || kdecommondepend+=" dev-lang/perl"
291 351
292if [[ ${PN} != kdelibs ]]; then 352if [[ ${PN} != kdelibs ]]; then
293 if [[ ${KDEBASE} = kde-base ]]; then
294 kdecommondepend+=" $(add_kdebase_dep kdelibs)" 353 kdecommondepend+=" $(add_kdebase_dep kdelibs)"
295 else
296 kdecommondepend+="
297 >=kde-base/kdelibs-${KDE_MINIMAL}
298 "
299 if [[ ${KDEBASE} = kdevelop ]]; then 354 if [[ ${KDEBASE} = kdevelop ]]; then
300 if [[ ${PN} != kdevplatform ]]; then 355 if [[ ${PN} != kdevplatform ]]; then
301 # @ECLASS-VARIABLE: KDEVPLATFORM_REQUIRED 356 # @ECLASS-VARIABLE: KDEVPLATFORM_REQUIRED
302 # @DESCRIPTION: 357 # @DESCRIPTION:
303 # Specifies whether kdevplatform is required. Possible values are 'always' (default) and 'never'. 358 # Specifies whether kdevplatform is required. Possible values are 'always' (default) and 'never'.
304 # Applies to KDEBASE=kdevelop only. 359 # Applies to KDEBASE=kdevelop only.
305 KDEVPLATFORM_REQUIRED="${KDEVPLATFORM_REQUIRED:-always}" 360 KDEVPLATFORM_REQUIRED="${KDEVPLATFORM_REQUIRED:-always}"
306 case ${KDEVPLATFORM_REQUIRED} in 361 case ${KDEVPLATFORM_REQUIRED} in
307 always) 362 always)
308 kdecommondepend+=" 363 kdecommondepend+="
309 >=dev-util/kdevplatform-${KDEVPLATFORM_VERSION} 364 >=dev-util/kdevplatform-${KDEVPLATFORM_VERSION}
310 " 365 "
311 ;; 366 ;;
312 *) ;; 367 *) ;;
313 esac 368 esac
314 fi
315 fi 369 fi
316 fi 370 fi
317fi 371fi
318kdedepend=" 372kdedepend="
319 dev-util/automoc 373 dev-util/automoc
320 dev-util/pkgconfig 374 dev-util/pkgconfig
321 !aqua? ( 375 !aqua? (
322 || ( >=x11-libs/libXtst-1.1.0 <x11-proto/xextproto-7.1.0 ) 376 >=x11-libs/libXtst-1.1.0
323 x11-proto/xf86vidmodeproto 377 x11-proto/xf86vidmodeproto
324 ) 378 )
325" 379"
326
327# Handbook handling - dependencies
328if [[ -n ${KDE_HANDBOOK} ]]; then
329 kdedepend+=" 380kderdepend=""
330 handbook? ( 381
331 app-text/docbook-xml-dtd:4.2
332 app-text/docbook-xsl-stylesheets
333 )
334 "
335 if [[ ${PN} != kdelibs ]]; then 382if [[ ${PN} != oxygen-icons ]]; then
336 if [[ ${KDEBASE} = kde-base ]]; then 383 kderdepend+=" $(add_kdebase_dep oxygen-icons)"
337 PDEPEND+=" handbook? ( $(add_kdebase_dep kdelibs 'handbook') )"
338 else
339 PDEPEND+=" handbook? ( >=kde-base/kdelibs-${KDE_MINIMAL}[handbook] )"
340 fi
341 elif [[ ${PN} != khelpcenter ]]; then
342 if [[ ${KDEBASE} = kde-base ]]; then
343 PDEPEND+=" handbook? ( $(add_kdebase_dep khelpcenter 'handbook') )"
344 else
345 PDEPEND+=" handbook? ( >=kde-base/khelpcenter-${KDE_MINIMAL}[handbook] )"
346 fi
347 fi
348fi 384fi
385
386kdehandbookdepend="
387 app-text/docbook-xml-dtd:4.2
388 app-text/docbook-xsl-stylesheets
389"
390kdehandbookrdepend="
391 $(add_kdebase_dep kdelibs 'handbook')
392"
393case ${KDE_HANDBOOK} in
394 always)
395 kdedepend+=" ${kdehandbookdepend}"
396 [[ ${PN} != kdelibs ]] && kderdepend+=" ${kdehandbookrdepend}"
397 ;;
398 optional)
399 IUSE+=" +handbook"
400 kdedepend+=" handbook? ( ${kdehandbookdepend} )"
401 [[ ${PN} != kdelibs ]] && kderdepend+=" handbook? ( ${kdehandbookrdepend} )"
402 ;;
403 *) ;;
404esac
405unset kdehandbookdepend kdehandbookrdepend
349 406
350case ${KDE_REQUIRED} in 407case ${KDE_REQUIRED} in
351 always) 408 always)
352 IUSE+=" aqua" 409 IUSE+=" aqua"
353 COMMONDEPEND+=" ${kdecommondepend}" 410 [[ -n ${kdecommondepend} ]] && COMMONDEPEND+=" ${kdecommondepend}"
354 DEPEND+=" ${kdedepend}" 411 [[ -n ${kdedepend} ]] && DEPEND+=" ${kdedepend}"
412 [[ -n ${kderdepend} ]] && RDEPEND+=" ${kderdepend}"
355 ;; 413 ;;
356 optional) 414 optional)
357 IUSE+=" aqua kde" 415 IUSE+=" aqua kde"
358 COMMONDEPEND+=" kde? ( ${kdecommondepend} )" 416 [[ -n ${kdecommondepend} ]] && COMMONDEPEND+=" kde? ( ${kdecommondepend} )"
359 DEPEND+=" kde? ( ${kdedepend} )" 417 [[ -n ${kdedepend} ]] && DEPEND+=" kde? ( ${kdedepend} )"
418 [[ -n ${kderdepend} ]] && RDEPEND+=" kde? ( ${kderdepend} )"
360 ;; 419 ;;
361 *) ;; 420 *) ;;
362esac 421esac
363 422
364unset kdecommondepend kdedepend 423unset kdecommondepend kdedepend kderdepend
365 424
366debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: COMMONDEPEND is ${COMMONDEPEND}" 425debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: COMMONDEPEND is ${COMMONDEPEND}"
367debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: DEPEND (only) is ${DEPEND}" 426debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: DEPEND (only) is ${DEPEND}"
368debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: RDEPEND (only) is ${RDEPEND}" 427debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: RDEPEND (only) is ${RDEPEND}"
369debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: PDEPEND is ${PDEPEND}"
370 428
371# Accumulate dependencies set by this eclass 429# Accumulate dependencies set by this eclass
372DEPEND+=" ${COMMONDEPEND}" 430DEPEND+=" ${COMMONDEPEND}"
373RDEPEND+=" ${COMMONDEPEND}" 431RDEPEND+=" ${COMMONDEPEND}"
374unset COMMONDEPEND 432unset COMMONDEPEND
456 if [[ -z ${KMNOMODULE} ]] && [[ -z ${KMMODULE} ]]; then 514 if [[ -z ${KMNOMODULE} ]] && [[ -z ${KMMODULE} ]]; then
457 KMMODULE="${PN}" 515 KMMODULE="${PN}"
458 fi 516 fi
459 case ${KDEBASE} in 517 case ${KDEBASE} in
460 kdevelop) 518 kdevelop)
461 EGIT_REPO_URI="git://gitorious.org/${KMNAME}/${KMMODULE}.git" 519 EGIT_REPO_URI="git://git.kde.org/${KMMODULE}"
462 ;; 520 ;;
463 esac 521 esac
464 fi 522 fi
465 ;; 523 ;;
466 *) 524 *)
477 fi 535 fi
478 _kmname_pv="${_kmname}-${PV}" 536 _kmname_pv="${_kmname}-${PV}"
479 case ${KDEBASE} in 537 case ${KDEBASE} in
480 kde-base) 538 kde-base)
481 case ${PV} in 539 case ${PV} in
482 4.[45].8[05] | 4.[45].9[02568]) 540 4.5.93)
483 # Normally packed unstable releases 541 # Only kdepim and kdepim-runtime 4.6beta here
484 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.bz2" ;; 542 SRC_URI="mirror://kde/unstable/kdepim/${PV}/${_kmname}-4.6beta3.tar.bz2"
485 4.[45].[6-9]*)
486 # Repacked tarballs: need to depend on xz-utils to ensure that they can be unpacked
487 SRC_URI="http://dev.gentooexperimental.org/~alexxy/kde/${PV}/src/${_kmname_pv}.tar.xz"
488 DEPEND+=" app-arch/xz-utils"
489 ;; 543 ;;
544 4.[456].8[05] | 4.[456].9[023568])
545 # Unstable KDE SC releases
546 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.bz2"
547 ;;
548 4.4.6 | 4.4.7 | 4.4.8 | 4.4.9)
549 # Only kdepim here
550 SRC_URI="mirror://kde/stable/kdepim-${PV}/src/${_kmname_pv}.tar.bz2"
551 ;;
552 *)
553 # Stable KDE SC releases
490 *) SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.bz2" ;; 554 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.bz2"
555 ;;
491 esac 556 esac
492 ;; 557 ;;
493 koffice) 558 koffice)
494 case ${PV} in 559 case ${PV} in
495 2.1.[6-9]*) SRC_URI="mirror://kde/unstable/${_kmname_pv}/${_kmname_pv}.tar.bz2" ;; 560 2.1.[6-9]*) SRC_URI="mirror://kde/unstable/${_kmname_pv}/${_kmname_pv}.tar.bz2" ;;
654 719
655 # Inject library dependencies 720 # Inject library dependencies
656 if [[ -n ${KMLOADLIBS} ]] ; then 721 if [[ -n ${KMLOADLIBS} ]] ; then
657 load_library_dependencies 722 load_library_dependencies
658 fi 723 fi
724
725 # Replace KDE4Workspace library targets
726 find "${S}" -name CMakeLists.txt \
727 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_TASKMANAGER_(LIBRARY|LIBS)\}/taskmanager/g' {} + \
728 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_KWORKSPACE_(LIBRARY|LIBS)\}/kworkspace/g' {} + \
729 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_SOLIDCONTROLIFACES_(LIBRARY|LIBS)\}/solidcontrolifaces/g' {} + \
730 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_SOLIDCONTROL_(LIBRARY|LIBS)\}/solidcontrol/g' {} + \
731 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_PROCESSUI_(LIBRARY|LIBS)\}/processui/g' {} + \
732 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_LSOFUI_(LIBRARY|LIBS)\}/lsofui/g' {} + \
733 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_PLASMACLOCK_(LIBRARY|LIBS)\}/plasmaclock/g' {} + \
734 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_NEPOMUKQUERYCLIENT_(LIBRARY|LIBS)\}/nepomukqueryclient/g' {} + \
735 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_NEPOMUKQUERY_(LIBRARY|LIBS)\}/nepomukquery/g' {} + \
736 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_KSCREENSAVER_(LIBRARY|LIBS)\}/kscreensaver/g' {} + \
737 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_WEATHERION_(LIBRARY|LIBS)\}/weather_ion/g' {} + \
738 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_KWINEFFECTS_(LIBRARY|LIBS)\}/kwineffects/g' {} + \
739 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_KDECORATIONS_(LIBRARY|LIBS)\}/kdecorations/g' {} + \
740 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_KSGRD_(LIBRARY|LIBS)\}/ksgrd/g' {} + \
741 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_KEPHAL_(LIBRARY|LIBS)\}/kephal/g' {} + \
742 || die 'failed to replace KDE4Workspace library targets'
743
744 # Hack for manuals relying on outdated DTD, only outside kde-base/koffice/...
745 if [[ -z ${KDEBASE} ]]; then
746 find "${S}" -name "*.docbook" \
747 -exec sed -i -r \
748 -e 's:-//KDE//DTD DocBook XML V4\.1(\..)?-Based Variant V1\.[01]//EN:-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN:g' {} + \
749 || die 'failed to fix DocBook variant version'
750 fi
659} 751}
660 752
661# @FUNCTION: kde4-base_src_configure 753# @FUNCTION: kde4-base_src_configure
662# @DESCRIPTION: 754# @DESCRIPTION:
663# Function for configuring the build of KDE4 applications. 755# Function for configuring the build of KDE4 applications.
746 # Override this value, set in kde4-base_src_configure() 838 # Override this value, set in kde4-base_src_configure()
747 mycmakeargs+=(-DKDE4_BUILD_TESTS=ON) 839 mycmakeargs+=(-DKDE4_BUILD_TESTS=ON)
748 cmake-utils_src_configure 840 cmake-utils_src_configure
749 kde4-base_src_compile 841 kde4-base_src_compile
750 842
843 if [[ ${VIRTUALX_REQUIRED} == always ]] ||
844 ( [[ ${VIRTUALX_REQUIRED} != manual ]] && use test ); then
845
846 if [[ ${maketype} ]]; then
847 # surprise- we are already INSIDE virtualmake!!!
848 ewarn "QA Notice: This version of kde4-base.eclass includes the virtualx functionality."
849 ewarn " You may NOT set maketype or call virtualmake from the ebuild. Applying workaround."
850 cmake-utils_src_test
851 else
852 export maketype="cmake-utils_src_test"
853 virtualmake
854 fi
855 else
751 cmake-utils_src_test 856 cmake-utils_src_test
857 fi
752} 858}
753 859
754# @FUNCTION: kde4-base_src_install 860# @FUNCTION: kde4-base_src_install
755# @DESCRIPTION: 861# @DESCRIPTION:
756# Function for installing KDE4 applications. 862# Function for installing KDE4 applications.

Legend:
Removed from v.1.69  
changed lines
  Added in v.1.83

  ViewVC Help
Powered by ViewVC 1.1.20