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

Contents of /eclass/kde4-base.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.37 - (show annotations) (download)
Sat May 9 13:23:15 2009 UTC (5 years, 6 months ago) by scarabeus
Branch: MAIN
Changes since 1.36: +42 -15 lines
Few minor updates to kde4 eclasses. Introduce kde4-stable-live support.

1 # Copyright 2007-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.32 2009/03/11 17:40:51 scarabeus Exp $
4
5 # @ECLASS: kde4-base.eclass
6 # @MAINTAINER:
7 # kde@gentoo.org
8 # @BLURB: This eclass provides functions for kde 4.X ebuilds
9 # @DESCRIPTION:
10 # The kde4-base.eclass provides support for building KDE4 based ebuilds
11 # and KDE4 applications.
12 #
13 # NOTE: KDE 4 ebuilds by default define EAPI="2", this can be redefined but
14 # eclass will fail with version older than 2.
15
16 inherit base cmake-utils eutils kde4-functions
17
18 get_build_type
19 if [[ ${BUILD_TYPE} = live ]]; then
20 inherit subversion
21 fi
22
23 EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare src_configure src_compile src_test src_install pkg_postinst pkg_postrm
24
25 # @ECLASS-VARIABLE: OPENGL_REQUIRED
26 # @DESCRIPTION:
27 # Is qt-opengl required? Possible values are 'always', 'optional' and 'never'.
28 # This variable must be set before inheriting any eclasses. Defaults to 'never'.
29 OPENGL_REQUIRED="${OPENGL_REQUIRED:-never}"
30
31 # @ECLASS-VARIABLE: WEBKIT_REQUIRED
32 # @DESCRIPTION:
33 # Is qt-webkit requred? Possible values are 'always', 'optional' and 'never'.
34 # This variable must be set before inheriting any eclasses. Defaults to 'never'.
35 WEBKIT_REQUIRED="${WEBKIT_REQUIRED:-never}"
36
37 # @ECLASS-VARIABLE: CPPUNIT_REQUIRED
38 # @DESCRIPTION:
39 # Is cppunit required for tests? Possible values are 'always', 'optional' and 'never'.
40 # This variable must be set before inheriting any eclasses. Defaults to 'never'.
41 CPPUNIT_REQUIRED="${CPPUNIT_REQUIRED:-never}"
42
43 # @ECLASS-VARIABLE: KDE_REQUIRED
44 # @DESCRIPTION:
45 # Is kde required? Possible values are 'always', 'optional' and 'never'.
46 # This variable must be set before inheriting any eclasses. Defaults to 'always'
47 # If set to always or optional, KDE_MINIMAL may be overriden as well.
48 # Note that for kde-base packages this variable is fixed to 'always'.
49 KDE_REQUIRED="${KDE_REQUIRED:-always}"
50
51 # Verify KDE_MINIMAL (display QA notice in pkg_setup, still we need to fix it here)
52 if [[ -n ${KDE_MINIMAL} ]]; then
53 for slot in ${KDE_SLOTS[@]} ${KDE_LIVE_SLOTS[@]}; do
54 [[ ${KDE_MINIMAL} = ${slot} ]] && KDE_MINIMAL_VALID=1 && break
55 done
56 unset slot
57 [[ -z ${KDE_MINIMAL_VALID} ]] && unset KDE_MINIMAL
58 else
59 KDE_MINIMAL_VALID=1
60 fi
61
62 # @ECLASS-VARIABLE: KDE_MINIMAL
63 # @DESCRIPTION:
64 # This wariable is used when KDE_REQUIRED is set, to specify required KDE minimal
65 # version for apps to work. Currently defaults to 4.2
66 # One may override this variable to raise version requirements.
67 # For possible values look at KDE_SLOTS and KDE_LIVE_SLOTS variables.
68 # Note that for kde-base packages is fixed to ${SLOT}.
69 KDE_MINIMAL="${KDE_MINIMAL:-4.2}"
70
71 # Fallback behaviour (for now)
72 # TODO Remove when tree is clean
73 if [[ -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
83 fi
84
85 # OpenGL dependencies
86 qtopengldepend="
87 x11-libs/qt-opengl:4
88 "
89 case ${OPENGL_REQUIRED} in
90 always)
91 COMMONDEPEND="${COMMONDEPEND} ${qtopengldepend}"
92 ;;
93 optional)
94 IUSE="${IUSE} opengl"
95 COMMONDEPEND="${COMMONDEPEND}
96 opengl? ( ${qtopengldepend} )
97 "
98 ;;
99 *) ;;
100 esac
101 unset qtopengldepend
102
103 # WebKit dependencies
104 qtwebkitdepend="
105 x11-libs/qt-webkit:4
106 "
107 case ${WEBKIT_REQUIRED} in
108 always)
109 COMMONDEPEND="${COMMONDEPEND} ${qtwebkitdepend}"
110 ;;
111 optional)
112 IUSE="${IUSE} webkit"
113 COMMONDEPEND="${COMMONDEPEND}
114 webkit? ( ${qtwebkitdepend} )
115 "
116 ;;
117 *) ;;
118 esac
119 unset qtwebkitdepend
120
121 # CppUnit dependencies
122 cppuintdepend="
123 dev-util/cppunit
124 "
125 case ${CPPUNIT_REQUIRED} in
126 always)
127 DEPEND="${DEPEND} ${cppuintdepend}"
128 ;;
129 optional)
130 IUSE="${IUSE} test"
131 DEPEND="${DEPEND}
132 test? ( ${cppuintdepend} )
133 "
134 ;;
135 *) ;;
136 esac
137 unset cppuintdepend
138
139 # DEPRECATED block
140 if [[ ${NEED_KDE} != "none" ]]; then
141 # localization deps
142 # DISABLED UNTIL PMS decide correct approach :(
143 if [[ -n ${KDE_LINGUAS} ]]; then
144 LNG_DEP=""
145 for _lng in ${KDE_LINGUAS}; do
146 # there must be or due to issue if lingua is not present in kde-l10n so
147 # it wont die but pick kde-l10n as-is.
148 LNG_DEP="${LNG_DEP}
149 || (
150 kde-base/kde-l10n[linguas_${_lng},kdeprefix=]
151 kde-base/kde-l10n[kdeprefix=]
152 )
153 "
154 done
155 fi
156 fi # NEED_KDE != NONE block
157
158 # Setup packages inheriting this eclass
159 case ${KDEBASE} in
160
161 kde-base)
162 if [[ $BUILD_TYPE = live ]]; then
163 # Disable tests for live ebuilds
164 RESTRICT="${RESTRICT} test"
165 # Live ebuilds in kde-base default to kdeprefix by default
166 IUSE="${IUSE} +kdeprefix"
167 else
168 # All other ebuild types default to -kdeprefix as before
169 IUSE="${IUSE} kdeprefix"
170 fi
171 # Determine SLOT from PVs
172 case ${PV} in
173 *.9999*) SLOT="${PV/.9999*/}" ;; # stable live
174 4.3* | 4.2.9* | 4.2.8* | 4.2.7* | 4.2.6*) SLOT="4.3" ;;
175 4.2* | 4.1.9* | 4.1.8* | 4.1.7* | 4.1.6*) SLOT="4.2" ;;
176 9999*) SLOT="live" ;; # regular live
177 *) die "Unsupported ${PV}" ;;
178 esac
179 _kdedir="${SLOT}"
180 _pv="-${PV}:${SLOT}"
181 _pvn="-${PV}"
182
183 # Block installation of other SLOTS unless kdeprefix
184 for slot in ${KDE_SLOTS[@]}; do
185 # Block non kdeprefix ${PN} on other slots
186 if [[ ${SLOT} != ${slot} ]]; then
187 RDEPEND="${RDEPEND}
188 !kdeprefix? ( !kde-base/${PN}:${slot}[-kdeprefix] )
189 "
190 fi
191 done
192 unset slot
193 ;;
194
195 koffice)
196 SLOT="2"
197 _pv="-${KDE_MINIMAL}"
198 _pvn="${_pv}"
199 ;;
200
201 *)
202 _pv="-${KDE_MINIMAL}"
203 _pvn="${_pv}"
204 ;;
205
206 esac
207
208 # KDE dependencies
209 kdecommondepend="
210 dev-lang/perl
211 x11-libs/libXext
212 x11-libs/libXt
213 x11-libs/libXxf86vm
214 x11-libs/qt-core:4[qt3support,ssl]
215 x11-libs/qt-gui:4[accessibility,dbus]
216 x11-libs/qt-qt3support:4[accessibility]
217 x11-libs/qt-script:4
218 x11-libs/qt-sql:4[qt3support]
219 x11-libs/qt-svg:4
220 x11-libs/qt-test:4
221 "
222 if [[ ${PN} != kdelibs ]]; then
223 if [[ ${KDEBASE} = kde-base ]]; then
224 kdecommondepend="${kdecommondepend}
225 kdeprefix? ( >=kde-base/kdelibs${_pv}[kdeprefix] )
226 !kdeprefix? ( >=kde-base/kdelibs${_pvn}[-kdeprefix] )
227 "
228 else
229 kdecommondepend="${kdecommondepend}
230 >=kde-base/kdelibs${_pv}
231 "
232 fi
233 fi
234 unset _pv _pvn
235 kdedepend="
236 dev-util/pkgconfig
237 >=sys-apps/sandbox-1.3.2
238 "
239 case ${KDE_REQUIRED} in
240 always)
241 COMMONDEPEND="${COMMONDEPEND} ${kdecommondepend}"
242 DEPEND="${DEPEND} ${kdedepend}"
243 ;;
244 optional)
245 IUSE="${IUSE} kde"
246 COMMONDEPEND="${COMMONDEPEND}
247 kde? ( ${kdecommondepend} )"
248 DEPEND="${DEPEND}
249 kde? ( ${kdedepend} )"
250 ;;
251 *) ;;
252 esac
253 unset kdecommondepend kdedepend
254
255 debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: COMMONDEPEND is ${COMMONDEPEND}"
256 debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: DEPEND (only) is ${DEPEND}"
257 debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: RDEPEND (only) is ${RDEPEND}"
258
259 # Accumulate dependencies set by this eclass
260 DEPEND="${DEPEND} ${COMMONDEPEND}"
261 RDEPEND="${RDEPEND} ${COMMONDEPEND}"
262
263 # Fetch section - If the ebuild's category is not 'kde-base' and if it is not a
264 # koffice ebuild, the URI should be set in the ebuild itself
265 case ${BUILD_TYPE} in
266 live)
267 # Determine branch URL based on live type
268 local branch_prefix
269 case ${PV} in
270 9999*)
271 # trunk
272 branch_prefix="trunk/KDE"
273 ;;
274 *)
275 # branch
276 branch_prefix="branches/KDE/${SLOT}"
277 # @ECLASS-VARIABLE: ESVN_PROJECT_SUFFIX
278 # @DESCRIPTION
279 # Suffix appended to ESVN_PROJECT depending on fetched branch.
280 # Defaults is empty (for -9999 = trunk), and "-${PV}" otherwise.
281 ESVN_PROJECT_SUFFIX="-${PV}"
282 ;;
283 esac
284 SRC_URI=""
285 # @ECLASS-VARIABLE: ESVN_MIRROR
286 # @DESCRIPTION:
287 # This variable allows easy overriding of default kde mirror service
288 # (anonsvn) with anything else you might want to use.
289 ESVN_MIRROR=${ESVN_MIRROR:=svn://anonsvn.kde.org/home/kde}
290 # Split ebuild, or extragear stuff
291 if [[ -n ${KMNAME} ]]; then
292 ESVN_PROJECT="${KMNAME}${ESVN_PROJECT_SUFFIX}"
293 if [[ -z ${KMNOMODULE} ]] && [[ -z ${KMMODULE} ]]; then
294 KMMODULE="${PN}"
295 fi
296 # Split kde-base/ ebuilds: (they reside in trunk/KDE)
297 case ${KMNAME} in
298 kdebase-*)
299 ESVN_REPO_URI="${ESVN_MIRROR}/${branch_prefix}/kdebase/${KMNAME#kdebase-}"
300 ;;
301 kdereview)
302 ESVN_REPO_URI="${ESVN_MIRROR}/trunk/${KMNAME}/${KMMODULE}"
303 ;;
304 kdesupport)
305 ESVN_REPO_URI="${ESVN_MIRROR}/trunk/${KMNAME}/${KMMODULE}"
306 ESVN_PROJECT="${PN}${ESVN_PROJECT_SUFFIX}"
307 ;;
308 kde*)
309 ESVN_REPO_URI="${ESVN_MIRROR}/${branch_prefix}/${KMNAME}"
310 ;;
311 extragear*|playground*)
312 # Unpack them in toplevel dir, so that they won't conflict with kde4-meta
313 # build packages from same svn location.
314 ESVN_REPO_URI="${ESVN_MIRROR}/trunk/${KMNAME}/${KMMODULE}"
315 ESVN_PROJECT="${PN}${ESVN_PROJECT_SUFFIX}"
316 ;;
317 koffice)
318 ESVN_REPO_URI="${ESVN_MIRROR}/trunk/${KMNAME}"
319 ;;
320 *)
321 ESVN_REPO_URI="${ESVN_MIRROR}/trunk/${KMNAME}/${KMMODULE}"
322 ;;
323 esac
324 else
325 # kdelibs, kdepimlibs
326 ESVN_REPO_URI="${ESVN_MIRROR}/${branch_prefix}/${PN}"
327 ESVN_PROJECT="${PN}${ESVN_PROJECT_SUFFIX}"
328 fi
329 # limit syncing to 1 hour.
330 ESVN_UP_FREQ=${ESVN_UP_FREQ:-1}
331 ;;
332 *)
333 if [[ -n ${KDEBASE} ]]; then
334 if [[ -n ${KMNAME} ]]; then
335 case ${KMNAME} in
336 kdebase-apps)
337 _kmname="kdebase" ;;
338 *)
339 _kmname="${KMNAME}" ;;
340 esac
341 else
342 _kmname=${PN}
343 fi
344 _kmname_pv="${_kmname}-${PV}"
345 if [[ $NEED_KDE != live ]]; then
346 case ${KDEBASE} in
347 kde-base)
348 case ${PV} in
349 4.2.85)
350 # block for normally packed unstable releases
351 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.bz2" ;;
352 4.2.9* | 4.2.8* | 4.2.7* | 4.2.6*)
353 SRC_URI="http://dev.gentooexperimental.org/~alexxy/kde/${PV}/${_kmname_pv}.tar.lzma" ;;
354 4.1.9* | 4.1.8* | 4.1.7* | 4.1.6* | 4.0.9* | 4.0.8*)
355 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.bz2" ;;
356 *) SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.bz2" ;;
357 esac
358 ;;
359 koffice)
360 SRC_URI="mirror://kde/unstable/${_kmname_pv}/src/${_kmname_pv}.tar.bz2"
361 ;;
362 esac
363 fi
364 unset _kmname _kmname_pv
365 fi
366 ;;
367 esac
368
369 debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: SRC_URI is ${SRC_URI}"
370
371 # @ECLASS-VARIABLE: PREFIX
372 # @DESCRIPTION:
373 # Set the installation PREFIX for non kde-base applications. It defaults to /usr.
374 # kde-base packages go into KDE4 installation directory (KDEDIR) by default.
375 # No matter the PREFIX, package will be built agains KDE installed in KDEDIR.
376
377 # @FUNCTION: kde4-base_pkg_setup
378 # @DESCRIPTION:
379 # Do the basic kdeprefix KDEDIR settings and determine with which kde should
380 # optional applications link
381 kde4-base_pkg_setup() {
382 debug-print-function ${FUNCNAME} "$@"
383
384 # QA ebuilds
385 case ${NEED_KDE} in
386 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}\")." ;;
387 *) [[ -n ${NEED_KDE} ]] && ewarn "QA Notice: using deprecated NEED_KDE variable, use KDE_MINIMAL instead (default is KDE_MINIMAL=\"${KDE_MINIMAL}\")." ;;
388 esac
389 [[ -z ${KDE_MINIMAL_VALID} ]] && ewarn "QA Notice: ignoring invalid KDE_MINIMAL (defaulting to ${KDE_MINIMAL})."
390
391 # Don't set KDEHOME during compilation, it will cause access violations
392 unset KDEHOME
393
394 if [[ ${KDEBASE} = kde-base ]]; then
395 if use kdeprefix; then
396 KDEDIR="/usr/kde/${_kdedir}"
397 else
398 KDEDIR="/usr"
399 fi
400 PREFIX="${PREFIX:-${KDEDIR}}"
401 else
402 # Determine KDEDIR by loooking for the closest match with KDE_MINIMAL
403 KDEDIR=
404 local kde_minimal_met
405 for slot in ${KDE_SLOTS[@]} ${KDE_LIVE_SLOTS[@]}; do
406 [[ -z ${kde_minimal_met} ]] && [[ ${slot} = ${KDE_MINIMAL} ]] && kde_minimal_met=1
407 if [[ -n ${kde_minimal_met} ]] && has_version "kde-base/kdelibs:${slot}"; then
408 if has_version "kde-base/kdelibs:${slot}[kdeprefix]"; then
409 KDEDIR="/usr/kde/${slot}"
410 else
411 KDEDIR="/usr"
412 fi
413 break;
414 fi
415 done
416 unset slot
417 [[ -z KDEDIR ]] && die "Failed to determine KDEDIR!"
418 PREFIX="${PREFIX:-/usr}"
419 fi
420
421 # Not needed anymore
422 unset _kdedir
423 }
424
425 # @FUNCTION: kde4-base_src_unpack
426 # @DESCRIPTION:
427 # This function unpacks the source tarballs for KDE4 applications.
428 kde4-base_src_unpack() {
429 debug-print-function ${FUNCNAME} "$@"
430
431 if [[ ${BUILD_TYPE} = live ]]; then
432 migrate_store_dir
433 subversion_src_unpack
434 else
435 base_src_unpack
436 fi
437 }
438
439 # @FUNCTION: kde4-base_src_compile
440 # @DESCRIPTION:
441 # General pre-configure and pre-compile function for KDE4 applications.
442 # It also handles translations if KDE_LINGUAS is defined. See KDE_LINGUAS and
443 # enable_selected_linguas() in kde4-functions.eclass(5) for further details.
444 kde4-base_src_prepare() {
445 debug-print-function ${FUNCNAME} "$@"
446
447 # Only enable selected languages, used for KDE extragear apps.
448 if [[ -n ${KDE_LINGUAS} ]]; then
449 enable_selected_linguas
450 fi
451
452 base_src_prepare
453 [[ ${BUILD_TYPE} = live ]] && subversion_src_prepare
454
455 # Save library dependencies
456 if [[ -n ${KMSAVELIBS} ]] ; then
457 save_library_dependencies
458 fi
459
460 # Inject library dependencies
461 if [[ -n ${KMLOADLIBS} ]] ; then
462 load_library_dependencies
463 fi
464 }
465
466 # @FUNCTION: kde4-base_src_configure
467 # @DESCRIPTION:
468 # Function for configuring the build of KDE4 applications.
469 kde4-base_src_configure() {
470 debug-print-function ${FUNCNAME} "$@"
471
472 # Handle common release builds
473 if ! has debug ${IUSE//+} || ! use debug; then
474 append-cppflags -DQT_NO_DEBUG
475 fi
476
477 # Build tests in src_test only, where we override this value
478 local cmakeargs="-DKDE4_BUILD_TESTS=OFF"
479
480 # Set distribution name
481 [[ ${PN} = kdelibs ]] && cmakeargs="${cmakeargs} -DKDE_DISTRIBUTION_TEXT=Gentoo"
482
483 # Here we set the install prefix
484 cmakeargs="${cmakeargs} -DCMAKE_INSTALL_PREFIX=${PREFIX}"
485
486 # Set environment
487 QTEST_COLORED=1
488 QT_PLUGIN_PATH="${KDEDIR}/$(get_libdir)/kde4/plugins/"
489
490 # Point pkg-config path to KDE *.pc files
491 export PKG_CONFIG_PATH="${KDEDIR}/$(get_libdir)/pkgconfig${PKG_CONFIG_PATH:+:${PKG_CONFIG_PATH}}"
492
493 # Shadow existing /usr installations
494 unset KDEDIRS
495
496 if [[ ${KDEDIR} != /usr ]]; then
497 # Override some environment variables - only when kdeprefix is different,
498 # to not break ccache/distcc
499 PATH="${KDEDIR}/bin:${PATH}"
500 LDPATH="${KDEDIR}/$(get_libdir):${LDPATH}"
501
502 # Append full RPATH
503 cmakeargs="${cmakeargs} -DCMAKE_SKIP_RPATH=OFF"
504 fi
505
506 if has kdeprefix ${IUSE//+} && use kdeprefix; then
507 # Set cmake prefixes to allow buildsystem to localize valid KDE installation
508 # when more are present
509 cmakeargs="${cmakeargs} -DCMAKE_SYSTEM_PREFIX_PATH=${KDEDIR}"
510 else
511 # If prefix is /usr, sysconf needs to be /etc, not /usr/etc
512 cmakeargs="${cmakeargs} -DSYSCONF_INSTALL_DIR=/etc"
513 fi
514
515 mycmakeargs="${cmakeargs} ${mycmakeargs}"
516
517 cmake-utils_src_configure
518 }
519
520 # @FUNCTION: kde4-base_src_compile
521 # @DESCRIPTION:
522 # General function for compiling KDE4 applications.
523 kde4-base_src_compile() {
524 debug-print-function ${FUNCNAME} "$@"
525
526 cmake-utils_src_compile
527 }
528
529 # @FUNCTION: kde4-base_src_test
530 # @DESCRIPTION:
531 # Function for testing KDE4 applications.
532 kde4-base_src_test() {
533 debug-print-function ${FUNCNAME} "$@"
534
535 # Override this value, set in kde4-base_src_configure()
536 mycmakeargs="${mycmakeargs} -DKDE4_BUILD_TESTS=ON"
537 cmake-utils_src_configure
538 kde4-base_src_compile
539
540 cmake-utils_src_test
541 }
542
543 # @FUNCTION: kde4-base_src_install
544 # @DESCRIPTION:
545 # Function for installing KDE4 applications.
546 kde4-base_src_install() {
547 debug-print-function ${FUNCNAME} "$@"
548
549 if [[ -n ${KMSAVELIBS} ]] ; then
550 install_library_dependencies
551 fi
552
553 kde4-base_src_make_doc
554 cmake-utils_src_install
555 }
556
557 # @FUNCTION: kde4-base_src_make_doc
558 # @DESCRIPTION:
559 # Function for installing the documentation of KDE4 applications.
560 kde4-base_src_make_doc() {
561 debug-print-function ${FUNCNAME} "$@"
562
563 local doc
564 for doc in AUTHORS ChangeLog* README* NEWS TODO; do
565 [[ -s ${doc} ]] && dodoc ${doc}
566 done
567
568 if [[ -z ${KMNAME} ]]; then
569 for doc in {apps,runtime,workspace,.}/*/{AUTHORS,README*}; do
570 if [[ -s ${doc} ]]; then
571 local doc_complete=${doc}
572 doc="${doc#*/}"
573 newdoc "$doc_complete" "${doc%/*}.${doc##*/}"
574 fi
575 done
576 fi
577
578 if [[ -n ${KDEBASE} ]] && [[ -d "${D}/usr/share/doc/${PF}" ]]; then
579 # work around bug #97196
580 dodir /usr/share/doc/KDE4 && \
581 mv "${D}/usr/share/doc/${PF}" "${D}"/usr/share/doc/KDE4/ || \
582 die "Failed to move docs to KDE4/."
583 fi
584 }
585
586 # @FUNCTION: kde4-base_pkg_postinst
587 # @DESCRIPTION:
588 # Function to rebuild the KDE System Configuration Cache after an application has been installed.
589 kde4-base_pkg_postinst() {
590 debug-print-function ${FUNCNAME} "$@"
591
592 buildsycoca
593
594 if [[ ${BUILD_TYPE} = live ]] && [[ -z ${I_KNOW_WHAT_I_AM_DOING} ]]; then
595 echo
596 einfo "WARNING! This is an experimental live ebuild of ${KMNAME:-${PN}}"
597 einfo "Use it at your own risk."
598 einfo "Do _NOT_ file bugs at bugs.gentoo.org because of this ebuild!"
599 echo
600 fi
601 }
602
603 # @FUNCTION: kde4-base_pkg_postrm
604 # @DESCRIPTION:
605 # Function to rebuild the KDE System Configuration Cache after an application has been removed.
606 kde4-base_pkg_postrm() {
607 debug-print-function ${FUNCNAME} "$@"
608
609 buildsycoca
610 }

  ViewVC Help
Powered by ViewVC 1.1.20