/[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.42 Revision 1.53
1# Copyright 2007-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-base.eclass,v 1.42 2009/08/03 21:59:53 wired Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.53 2009/11/25 19:51:11 tampakrap 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
16inherit base cmake-utils eutils kde4-functions 16# @ECLASS-VARIABLE: CMAKE_REQUIRED
17# @DESCRIPTION:
18# Specify if cmake buildsystem is being used. Possible values are 'always' and 'never'.
19# Please note that if it's set to 'never' you need to explicitly override following phases:
20# src_configure, src_compile, src_test and src_install.
21# Defaults to 'always'.
22CMAKE_REQUIRED="${CMAKE_REQUIRED:-${CMAKE_REQUIRED:-always}}"
23if [[ ${CMAKE_REQUIRED} = false || ${CMAKE_REQUIRED} = never ]]; then
24 buildsystem_eclass=""
25 export_fns=""
26else
27 buildsystem_eclass="cmake-utils"
28 export_fns="src_configure src_compile src_test src_install"
29fi
30
31inherit kde4-functions
17 32
18get_build_type 33get_build_type
19if [[ ${BUILD_TYPE} = live ]]; then 34if [[ ${BUILD_TYPE} = live ]]; then
20 inherit subversion 35 subversion_eclass="subversion"
21fi 36fi
22 37
38inherit base ${buildsystem_eclass} eutils ${subversion_eclass}
39
23EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare src_configure src_compile src_test src_install pkg_postinst pkg_postrm 40EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare ${export_fns} pkg_postinst pkg_postrm
41
42unset buildsystem_eclass
43unset export_fns
44unset subversion_eclass
45
46case ${KDEBASE} in
47 kde-base)
48 HOMEPAGE="http://www.kde.org/"
49 LICENSE="GPL-2"
50 ;;
51 koffice)
52 HOMEPAGE="http://www.koffice.org/"
53 LICENSE="GPL-2"
54 ;;
55esac
24 56
25# @ECLASS-VARIABLE: OPENGL_REQUIRED 57# @ECLASS-VARIABLE: OPENGL_REQUIRED
26# @DESCRIPTION: 58# @DESCRIPTION:
27# Is qt-opengl required? Possible values are 'always', 'optional' and 'never'. 59# Is qt-opengl required? Possible values are 'always', 'optional' and 'never'.
28# This variable must be set before inheriting any eclasses. Defaults to 'never'. 60# This variable must be set before inheriting any eclasses. Defaults to 'never'.
60fi 92fi
61 93
62# @ECLASS-VARIABLE: KDE_MINIMAL 94# @ECLASS-VARIABLE: KDE_MINIMAL
63# @DESCRIPTION: 95# @DESCRIPTION:
64# This variable is used when KDE_REQUIRED is set, to specify required KDE minimal 96# This variable is used when KDE_REQUIRED is set, to specify required KDE minimal
65# version for apps to work. Currently defaults to 4.2 97# version for apps to work. Currently defaults to 4.3
66# One may override this variable to raise version requirements. 98# One may override this variable to raise version requirements.
67# For possible values look at KDE_SLOTS and KDE_LIVE_SLOTS variables. 99# For possible values look at KDE_SLOTS and KDE_LIVE_SLOTS variables.
68# Note that it is fixed to ${SLOT} for kde-base packages. 100# Note that it is fixed to ${SLOT} for kde-base packages.
69KDE_MINIMAL="${KDE_MINIMAL:-4.2}" 101KDE_MINIMAL="${KDE_MINIMAL:-4.3}"
70
71# Fallback behaviour (for now)
72# TODO Remove when tree is clean
73if [[ -n ${NEED_KDE} ]]; then
74 case ${NEED_KDE} in
75 none)
76 KDE_REQUIRED="never"
77 ;;
78 *)
79 KDE_REQUIRED="always"
80 KDE_MINIMAL="${NEED_KDE}"
81 ;;
82 esac
83fi
84
85# @ECLASS-VARIABLE: QT_DEPEND
86# @DESCRIPTION:
87# Determine version of qt we enforce as minimal for the package. 4.4.0 4.5.1..
88# Currently defaults to 4.5.1
89QT_DEPEND="${QT_DEPEND:-4.5.1}"
90
91# OpenGL dependencies
92qtopengldepend="
93 >=x11-libs/qt-opengl-${QT_DEPEND}:4
94"
95case ${OPENGL_REQUIRED} in
96 always)
97 COMMONDEPEND+=" ${qtopengldepend}"
98 ;;
99 optional)
100 IUSE+=" opengl"
101 COMMONDEPEND+=" opengl? ( ${qtopengldepend} )"
102 ;;
103 *) ;;
104esac
105unset qtopengldepend
106
107# WebKit dependencies
108qtwebkitdepend="
109 >=x11-libs/qt-webkit-${QT_DEPEND}:4
110"
111case ${WEBKIT_REQUIRED} in
112 always)
113 COMMONDEPEND+=" ${qtwebkitdepend}"
114 ;;
115 optional)
116 IUSE+=" webkit"
117 COMMONDEPEND+=" webkit? ( ${qtwebkitdepend} )"
118 ;;
119 *) ;;
120esac
121unset qtwebkitdepend
122
123# CppUnit dependencies
124cppuintdepend="
125 dev-util/cppunit
126"
127case ${CPPUNIT_REQUIRED} in
128 always)
129 DEPEND+=" ${cppuintdepend}"
130 ;;
131 optional)
132 IUSE+=" test"
133 DEPEND+=" test? ( ${cppuintdepend} )"
134 ;;
135 *) ;;
136esac
137unset cppuintdepend
138 102
139# Setup packages inheriting this eclass 103# Setup packages inheriting this eclass
140case ${KDEBASE} in 104case ${KDEBASE} in
141 kde-base) 105 kde-base)
142 if [[ $BUILD_TYPE = live ]]; then 106 if [[ $BUILD_TYPE = live ]]; then
149 IUSE+=" kdeprefix" 113 IUSE+=" kdeprefix"
150 fi 114 fi
151 # Determine SLOT from PVs 115 # Determine SLOT from PVs
152 case ${PV} in 116 case ${PV} in
153 *.9999*) SLOT="${PV/.9999*/}" ;; # stable live 117 *.9999*) SLOT="${PV/.9999*/}" ;; # stable live
154 4.4* | 4.3.9* | 4.3.8* | 4.3.7* | 4.3.6*) SLOT="4.4" ;; 118 4.4* | 4.3.[6-9]*) SLOT="4.4" ;;
155 4.3* | 4.2.9* | 4.2.8* | 4.2.7* | 4.2.6*) SLOT="4.3" ;; 119 4.3*) SLOT="4.3" ;;
156 4.2* | 4.1.9* | 4.1.8* | 4.1.7* | 4.1.6*) SLOT="4.2" ;; 120 4.2*) SLOT="4.2" ;;
157 9999*) SLOT="live" ;; # regular live 121 9999*) SLOT="live" ;; # regular live
158 *) die "Unsupported ${PV}" ;; 122 *) die "Unsupported ${PV}" ;;
159 esac 123 esac
124 # This code is to prevent portage from searching GENTOO_MIRRORS for
125 # packages that will never be mirrored. (As they only will ever be in
126 # the overlay).
127 case ${PV} in
128 *9999* | 4.?.[6-9]?)
129 RESTRICT+=" mirror"
130 ;;
131 esac
132 KDE_MINIMAL="${SLOT}"
160 _kdedir="${SLOT}" 133 _kdedir="${SLOT}"
161 _pv="-${PV}:${SLOT}"
162 _pvn="-${PV}"
163 134
164 # Block installation of other SLOTS unless kdeprefix 135 # Block installation of other SLOTS unless kdeprefix
165 for slot in ${KDE_SLOTS[@]} ${KDE_LIVE_SLOTS[@]}; do 136 RDEPEND+=" $(block_other_slots)"
166 # Block non kdeprefix ${PN} on other slots
167 if [[ ${SLOT} != ${slot} ]]; then
168 RDEPEND+=" !kdeprefix? ( !kde-base/${PN}:${slot}[-kdeprefix] )"
169 fi
170 done
171 unset slot
172 ;; 137 ;;
173 koffice) 138 koffice)
174 SLOT="2" 139 SLOT="2"
175 _pv="-${KDE_MINIMAL}"
176 _pvn="${_pv}"
177 ;; 140 ;;
178 *)
179 _pv="-${KDE_MINIMAL}"
180 _pvn="${_pv}"
181 ;;
182
183esac 141esac
142
143# @ECLASS-VARIABLE: QT_MINIMAL
144# @DESCRIPTION:
145# Determine version of qt we enforce as minimal for the package. 4.4.0 4.5.1..
146# Currently defaults to 4.5.1 for KDE 4.3 and earlier
147# or 4.6.0_beta for KDE 4.4 and later
148if slot_is_at_least 4.4 "${KDE_MINIMAL}"; then
149 QT_MINIMAL="${QT_MINIMAL:-4.6.0_beta}"
150fi
151
152QT_MINIMAL="${QT_MINIMAL:-4.5.1}"
153
154# OpenGL dependencies
155qtopengldepend="
156 >=x11-libs/qt-opengl-${QT_MINIMAL}:4
157"
158case ${OPENGL_REQUIRED} in
159 always)
160 COMMONDEPEND+=" ${qtopengldepend}"
161 ;;
162 optional)
163 IUSE+=" opengl"
164 COMMONDEPEND+=" opengl? ( ${qtopengldepend} )"
165 ;;
166 *) ;;
167esac
168unset qtopengldepend
169
170# WebKit dependencies
171case ${KDE_REQUIRED} in
172 always)
173 qtwebkitusedeps="[kde]"
174 ;;
175 optional)
176 qtwebkitusedeps="[kde?]"
177 ;;
178 *) ;;
179esac
180qtwebkitdepend="
181 >=x11-libs/qt-webkit-${QT_MINIMAL}:4${qtwebkitusedeps}
182"
183unset qtwebkitusedeps
184case ${WEBKIT_REQUIRED} in
185 always)
186 COMMONDEPEND+=" ${qtwebkitdepend}"
187 ;;
188 optional)
189 IUSE+=" webkit"
190 COMMONDEPEND+=" webkit? ( ${qtwebkitdepend} )"
191 ;;
192 *) ;;
193esac
194unset qtwebkitdepend
195
196# CppUnit dependencies
197cppuintdepend="
198 dev-util/cppunit
199"
200case ${CPPUNIT_REQUIRED} in
201 always)
202 DEPEND+=" ${cppuintdepend}"
203 ;;
204 optional)
205 IUSE+=" test"
206 DEPEND+=" test? ( ${cppuintdepend} )"
207 ;;
208 *) ;;
209esac
210unset cppuintdepend
184 211
185# KDE dependencies 212# KDE dependencies
186kdecommondepend=" 213kdecommondepend="
187 dev-lang/perl 214 dev-lang/perl
188 >=x11-libs/qt-core-${QT_DEPEND}:4[qt3support,ssl] 215 >=x11-libs/qt-core-${QT_MINIMAL}:4[qt3support,ssl]
189 >=x11-libs/qt-gui-${QT_DEPEND}:4[accessibility,dbus] 216 >=x11-libs/qt-gui-${QT_MINIMAL}:4[accessibility,dbus]
190 >=x11-libs/qt-qt3support-${QT_DEPEND}:4[accessibility] 217 >=x11-libs/qt-qt3support-${QT_MINIMAL}:4[accessibility,kde]
191 >=x11-libs/qt-script-${QT_DEPEND}:4 218 >=x11-libs/qt-script-${QT_MINIMAL}:4
192 >=x11-libs/qt-sql-${QT_DEPEND}:4[qt3support] 219 >=x11-libs/qt-sql-${QT_MINIMAL}:4[qt3support]
193 >=x11-libs/qt-svg-${QT_DEPEND}:4 220 >=x11-libs/qt-svg-${QT_MINIMAL}:4
194 >=x11-libs/qt-test-${QT_DEPEND}:4 221 >=x11-libs/qt-test-${QT_MINIMAL}:4
195 !aqua? ( 222 !aqua? (
196 x11-libs/libXext 223 x11-libs/libXext
197 x11-libs/libXt 224 x11-libs/libXt
198 x11-libs/libXxf86vm 225 x11-libs/libXxf86vm
199 ) 226 )
200" 227"
201if [[ ${PN} != kdelibs ]]; then 228if [[ ${PN} != kdelibs ]]; then
202 if [[ ${KDEBASE} = kde-base ]]; then 229 if [[ ${KDEBASE} = kde-base ]]; then
203 kdecommondepend+=" 230 kdecommondepend+=" $(add_kdebase_dep kdelibs)"
204 kdeprefix? ( >=kde-base/kdelibs${_pv}[kdeprefix] ) 231 # libknotificationitem only when SLOT is 4.3
205 !kdeprefix? ( >=kde-base/kdelibs${_pvn}[-kdeprefix] ) 232 [[ ${PN} != libknotificationitem ]] && [[ ${SLOT} = 4.3 ]] && \
206 " 233 kdecommondepend+=" $(add_kdebase_dep libknotificationitem)"
207 else 234 else
208 kdecommondepend+=" 235 kdecommondepend+="
209 >=kde-base/kdelibs${_pv} 236 >=kde-base/kdelibs-${KDE_MINIMAL}
210 " 237 "
211 fi 238 fi
212fi 239fi
213unset _pv _pvn
214kdedepend=" 240kdedepend="
215 dev-util/pkgconfig 241 dev-util/pkgconfig
216" 242"
217case ${KDE_REQUIRED} in 243case ${KDE_REQUIRED} in
218 always) 244 always)
325 esac 351 esac
326 else 352 else
327 _kmname=${PN} 353 _kmname=${PN}
328 fi 354 fi
329 _kmname_pv="${_kmname}-${PV}" 355 _kmname_pv="${_kmname}-${PV}"
330 if [[ $NEED_KDE != live ]]; then
331 case ${KDEBASE} in 356 case ${KDEBASE} in
332 kde-base) 357 kde-base)
333 case ${PV} in 358 case ${PV} in
334 4.3.85 | 4.3.90 | 4.3.95 | 4.3.96) 359 4.3.85 | 4.3.9[0568])
335 # block for normally packed unstable releases
336 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.bz2" ;;
337 4.3.9* | 4.3.8* | 4.3.7* | 4.3.6*)
338 SRC_URI="http://dev.gentooexperimental.org/~alexxy/kde/${PV}/${_kmname_pv}.tar.lzma" ;;
339 4.2.85 | 4.2.90 | 4.2.95 | 4.2.96 | 4.2.98)
340 # block for normally packed unstable releases 360 # block for normally packed unstable releases
341 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.bz2" ;; 361 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.bz2" ;;
342 4.2.9* | 4.2.8* | 4.2.7* | 4.2.6*) 362 4.3.[6-9]*)
343 SRC_URI="http://dev.gentooexperimental.org/~alexxy/kde/${PV}/${_kmname_pv}.tar.lzma" ;; 363 SRC_URI="http://dev.gentooexperimental.org/~alexxy/kde/${PV}/${_kmname_pv}.tar.lzma" ;;
344 4.1.9* | 4.1.8* | 4.1.7* | 4.1.6* | 4.0.9* | 4.0.8*)
345 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.bz2" ;;
346 *) SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.bz2" ;; 364 *) SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.bz2" ;;
347 esac 365 esac
348 ;; 366 ;;
349 koffice) 367 koffice)
350 case ${PV} in 368 case ${PV} in
351 1.9*)
352 SRC_URI="mirror://kde/unstable/${_kmname_pv}/src/${_kmname_pv}.tar.bz2" 369 2.0.[6-9]*) SRC_URI="mirror://kde/unstable/${_kmname_pv}/src/${_kmname_pv}.tar.bz2" ;;
353 ;;
354 *) SRC_URI="mirror://kde/stable/${_kmname_pv}/src/${_kmname_pv}.tar.bz2" ;; 370 *) SRC_URI="mirror://kde/stable/${_kmname_pv}/${_kmname_pv}.tar.bz2" ;;
355 esac 371 esac
356 ;;
357 esac 372 esac
358 fi
359 unset _kmname _kmname_pv 373 unset _kmname _kmname_pv
360 fi 374 fi
361 ;; 375 ;;
362esac 376esac
363 377
374# Do the basic kdeprefix KDEDIR settings and determine with which kde should 388# Do the basic kdeprefix KDEDIR settings and determine with which kde should
375# optional applications link 389# optional applications link
376kde4-base_pkg_setup() { 390kde4-base_pkg_setup() {
377 debug-print-function ${FUNCNAME} "$@" 391 debug-print-function ${FUNCNAME} "$@"
378 392
393 # Prefix compat:
394 use prefix || EROOT=${ROOT}
395 # Append missing trailing slash character
396 [[ ${EROOT} = */ ]] || EROOT+="/"
397
379 # QA ebuilds 398 # QA ebuilds
380 case ${NEED_KDE} in
381 none) ewarn "QA Notice: using deprecated NEED_KDE variable, use KDE_REQUIRED=\"never\" or KDE_REQUIRED=\"optional\" instead. You may want to override KDE_MINIMAL as well (default is KDE_MINIMAL=\"${KDE_MINIMAL}\")." ;;
382 *) [[ -n ${NEED_KDE} ]] && ewarn "QA Notice: using deprecated NEED_KDE variable, use KDE_MINIMAL instead (default is KDE_MINIMAL=\"${KDE_MINIMAL}\")." ;;
383 esac
384 [[ -z ${KDE_MINIMAL_VALID} ]] && ewarn "QA Notice: ignoring invalid KDE_MINIMAL (defaulting to ${KDE_MINIMAL})." 399 [[ -z ${KDE_MINIMAL_VALID} ]] && ewarn "QA Notice: ignoring invalid KDE_MINIMAL (defaulting to ${KDE_MINIMAL})."
385 400
386 # Don't set KDEHOME during compilation, it will cause access violations 401 # Don't set KDEHOME during compilation, it will cause access violations
387 unset KDEHOME 402 unset KDEHOME
388 403
422 # Point pkg-config path to KDE *.pc files 437 # Point pkg-config path to KDE *.pc files
423 export PKG_CONFIG_PATH="${KDEDIR}/$(get_libdir)/pkgconfig${PKG_CONFIG_PATH:+:${PKG_CONFIG_PATH}}" 438 export PKG_CONFIG_PATH="${KDEDIR}/$(get_libdir)/pkgconfig${PKG_CONFIG_PATH:+:${PKG_CONFIG_PATH}}"
424 # Point to correct QT plugins path 439 # Point to correct QT plugins path
425 QT_PLUGIN_PATH="${KDEDIR}/$(get_libdir)/kde4/plugins/" 440 QT_PLUGIN_PATH="${KDEDIR}/$(get_libdir)/kde4/plugins/"
426 441
442 # Fix XDG collision with sandbox
443 export XDG_CONFIG_HOME="${T}"
427 # Not needed anymore 444 # Not needed anymore
428 unset _kdedir 445 unset _kdedir
429} 446}
430 447
431# @FUNCTION: kde4-base_src_unpack 448# @FUNCTION: kde4-base_src_unpack
440 else 457 else
441 base_src_unpack 458 base_src_unpack
442 fi 459 fi
443} 460}
444 461
445# @FUNCTION: kde4-base_src_compile 462# @FUNCTION: kde4-base_src_prepare
446# @DESCRIPTION: 463# @DESCRIPTION:
447# General pre-configure and pre-compile function for KDE4 applications. 464# General pre-configure and pre-compile function for KDE4 applications.
448# It also handles translations if KDE_LINGUAS is defined. See KDE_LINGUAS and 465# It also handles translations if KDE_LINGUAS is defined. See KDE_LINGUAS and
449# enable_selected_linguas() and enable_selected_doc_linguas() 466# enable_selected_linguas() and enable_selected_doc_linguas()
450# in kde4-functions.eclass(5) for further details. 467# in kde4-functions.eclass(5) for further details.
455 if [[ -n ${KDE_LINGUAS} ]]; then 472 if [[ -n ${KDE_LINGUAS} ]]; then
456 enable_selected_linguas 473 enable_selected_linguas
457 fi 474 fi
458 475
459 # Enable/disable handbooks for kde4-base packages 476 # Enable/disable handbooks for kde4-base packages
460 # kde-l10n inherits kde-base but is metpackage, so no check for doc 477 # kde-l10n inherits kde4-base but is metpackage, so no check for doc
478 # kdelibs inherits kde4-base but handle installing the handbook itself
461 if ! has kde4-meta ${INHERITED}; then 479 if ! has kde4-meta ${INHERITED}; then
462 has handbook ${IUSE//+} && [[ ${PN} != kde-l10n ]] && enable_selected_doc_linguas 480 has handbook ${IUSE//+} && [[ ${PN} != kde-l10n ]] && [[ ${PN} != kdelibs ]] && enable_selected_doc_linguas
463 fi 481 fi
464 482
465 [[ ${BUILD_TYPE} = live ]] && subversion_src_prepare 483 [[ ${BUILD_TYPE} = live ]] && subversion_src_prepare
466 base_src_prepare 484 base_src_prepare
467 485
505 QTEST_COLORED=1 523 QTEST_COLORED=1
506 524
507 # Shadow existing /usr installations 525 # Shadow existing /usr installations
508 unset KDEDIRS 526 unset KDEDIRS
509 527
528 # Handle kdeprefix-ed KDE
510 if [[ ${KDEDIR} != "${EROOT}usr" ]]; then 529 if [[ ${KDEDIR} != "${EROOT}usr" ]]; then
511 # Override some environment variables - only when kdeprefix is different, 530 # Override some environment variables - only when kdeprefix is different,
512 # to not break ccache/distcc 531 # to not break ccache/distcc
513 PATH="${KDEDIR}/bin:${PATH}" 532 PATH="${KDEDIR}/bin:${PATH}"
514 LDPATH="${KDEDIR}/$(get_libdir):${LDPATH}" 533 LDPATH="${KDEDIR}/$(get_libdir):${LDPATH}"
515 534
516 # Append full RPATH 535 # Append full RPATH
517 cmakeargs+=" -DCMAKE_SKIP_RPATH=OFF" 536 cmakeargs+=" -DCMAKE_SKIP_RPATH=OFF"
518 fi
519 537
520 if has kdeprefix ${IUSE//+} && use kdeprefix; then
521 # Set cmake prefixes to allow buildsystem to localize valid KDE installation 538 # Set cmake prefixes to allow buildsystem to locate valid KDE installation
522 # when more are present 539 # when more are present
523 cmakeargs+=" -DCMAKE_SYSTEM_PREFIX_PATH=${KDEDIR}" 540 cmakeargs+=" -DCMAKE_SYSTEM_PREFIX_PATH=${KDEDIR}"
524 else 541 fi
542
543 # Handle kdeprefix in application itself
544 if ! has kdeprefix ${IUSE//+} || ! use kdeprefix; then
525 # If prefix is /usr, sysconf needs to be /etc, not /usr/etc 545 # If prefix is /usr, sysconf needs to be /etc, not /usr/etc
526 cmakeargs+=" -DSYSCONF_INSTALL_DIR=${EROOT}etc" 546 cmakeargs+=" -DSYSCONF_INSTALL_DIR=${EROOT}etc"
527 fi 547 fi
528 548
529 mycmakeargs="${cmakeargs} ${mycmakeargs}" 549 mycmakeargs="${cmakeargs} ${mycmakeargs}"
590 fi 610 fi
591 611
592 if [[ -n ${KDEBASE} ]] && [[ -d "${D}${EROOT}usr/share/doc/${PF}" ]]; then 612 if [[ -n ${KDEBASE} ]] && [[ -d "${D}${EROOT}usr/share/doc/${PF}" ]]; then
593 # work around bug #97196 613 # work around bug #97196
594 dodir /usr/share/doc/KDE4 && \ 614 dodir /usr/share/doc/KDE4 && \
595 mv "${D}${EROOT}usr/share/doc/${PF}" "${D}${EROOT}usr/share/doc/KDE4/" || \ 615 cp -r "${D}${EROOT}usr/share/doc/${PF}" "${D}${EROOT}usr/share/doc/KDE4/" || \
596 die "Failed to move docs to KDE4/." 616 die "Failed to move docs to KDE4/."
617 rm -rf "${D}${EROOT}usr/share/doc/${PF}"
597 fi 618 fi
598} 619}
599 620
600# @FUNCTION: kde4-base_pkg_postinst 621# @FUNCTION: kde4-base_pkg_postinst
601# @DESCRIPTION: 622# @DESCRIPTION:

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.53

  ViewVC Help
Powered by ViewVC 1.1.20