/[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.61 Revision 1.76
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.61 2010/05/15 15:19:04 reavertm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.76 2010/10/27 21:24:22 dilfridge 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
48fi 48fi
49 49
50# @ECLASS-VARIABLE: KDE_MINIMAL 50# @ECLASS-VARIABLE: KDE_MINIMAL
51# @DESCRIPTION: 51# @DESCRIPTION:
52# This variable is used when KDE_REQUIRED is set, to specify required KDE minimal 52# This variable is used when KDE_REQUIRED is set, to specify required KDE minimal
53# version for apps to work. Currently defaults to 4.3 53# version for apps to work. Currently defaults to 4.4
54# One may override this variable to raise version requirements. 54# One may override this variable to raise version requirements.
55# For possible values look at KDE_SLOTS and KDE_LIVE_SLOTS variables. 55# For possible values look at KDE_SLOTS and KDE_LIVE_SLOTS variables.
56# Note that it is fixed to ${SLOT} for kde-base packages. 56# Note that it is fixed to ${SLOT} for kde-base packages.
57KDE_MINIMAL="${KDE_MINIMAL:-4.3}" 57KDE_MINIMAL="${KDE_MINIMAL:-4.4}"
58 58
59# Set slot for packages in kde-base, koffice and kdevelop 59# Set slot for packages in kde-base, koffice and kdevelop
60case ${KDEBASE} in 60case ${KDEBASE} in
61 kde-base) 61 kde-base)
62 # Determine SLOT from PVs 62 # Determine SLOT from PVs
63 case ${PV} in 63 case ${PV} in
64 *.9999*) SLOT="${PV/.9999*/}" ;; # stable live 64 *.9999*) SLOT="${PV/.9999*/}" ;; # stable live
65 4.6* | 4.5.[6-9][0-9]*) SLOT="4.6" ;;
65 4.5* | 4.4.[6-9]*) SLOT="4.5" ;; 66 4.5* | 4.4.[6-9][0-9]*) SLOT="4.5" ;;
66 4.4* | 4.3.[6-9]*) SLOT="4.4" ;; 67 4.4* | 4.3.[6-9][0-9]*) SLOT="4.4" ;;
67 4.3*) SLOT="4.3" ;;
68 9999*) SLOT="live" ;; # regular live 68 9999*) SLOT="live" ;; # regular live
69 *) die "Unsupported ${PV}" ;; 69 *) die "Unsupported ${PV}" ;;
70 esac 70 esac
71 KDE_MINIMAL="${SLOT}" 71 KDE_MINIMAL="${SLOT}"
72 ;; 72 ;;
73 koffice) 73 koffice)
74 SLOT="2" 74 SLOT="2"
75 ;; 75 ;;
76 kdevelop) 76 kdevelop)
77 if [[ ${BUILD_TYPE} = live ]]; then 77 if [[ ${BUILD_TYPE} = live ]]; then
78 KDEVELOP_VERSION="9999" 78 # @ECLASS-VARIABLE: KDEVELOP_VERSION
79 KDEVPLATFORM_VERSION="9999" 79 # @DESCRIPTION:
80 # Specifies KDevelop version. Default is 4.0.0 for tagged packages and 9999 for live packages.
81 # Applies to KDEBASE=kdevelop only.
82 KDEVELOP_VERSION="${KDEVELOP_VERSION:-9999}"
83 # @ECLASS-VARIABLE: KDEVPLATFORM_VERSION
84 # @DESCRIPTION:
85 # Specifies KDevplatform version. Default is 1.0.0 for tagged packages and 9999 for live packages.
86 # Applies to KDEBASE=kdevelop only.
87 KDEVPLATFORM_VERSION="${KDEVPLATFORM_VERSION:-9999}"
80 else 88 else
81 case ${PN} in 89 case ${PN} in
82 kdevelop|quanta) 90 kdevelop|quanta)
83 KDEVELOP_VERSION=${PV} 91 KDEVELOP_VERSION=${PV}
84 KDEVPLATFORM_VERSION="$(($(get_major_version)-3)).$(get_after_major_version)" 92 KDEVPLATFORM_VERSION="$(($(get_major_version)-3)).$(get_after_major_version)"
85 ;; 93 ;;
86 *) 94 kdevplatform)
87 KDEVELOP_VERSION="$(($(get_major_version)+3)).$(get_after_major_version)" 95 KDEVELOP_VERSION="$(($(get_major_version)+3)).$(get_after_major_version)"
88 KDEVPLATFORM_VERSION=${PV} 96 KDEVPLATFORM_VERSION=${PV}
97 ;;
98 *)
99 KDEVELOP_VERSION="${KDEVELOP_VERSION:-4.0.0}"
100 KDEVPLATFORM_VERSION="${KDEVPLATFORM_VERSION:-1.0.0}"
89 esac 101 esac
90 fi 102 fi
91 SLOT="4" 103 SLOT="4"
92 ;; 104 ;;
93esac 105esac
94 106
95slot_is_at_least 4.5 ${KDE_MINIMAL} && CMAKE_MIN_VERSION="2.6.4" 107slot_is_at_least 4.5 ${KDE_MINIMAL} && CMAKE_MIN_VERSION="2.8.1"
96 108
97inherit ${buildsystem_eclass} 109inherit ${buildsystem_eclass}
98 110
99EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare ${export_fns} pkg_postinst pkg_postrm 111EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare ${export_fns} pkg_postinst pkg_postrm
100 112
101unset buildsystem_eclass 113unset buildsystem_eclass
102unset export_fns 114unset export_fns
103 115
116# @ECLASS-VARIABLE: OPENGL_REQUIRED
117# @DESCRIPTION:
118# Is qt-opengl required? Possible values are 'always', 'optional' and 'never'.
119# This variable must be set before inheriting any eclasses. Defaults to 'never'.
120OPENGL_REQUIRED="${OPENGL_REQUIRED:-never}"
121
122# @ECLASS-VARIABLE: MULTIMEDIA_REQUIRED
123# @DESCRIPTION:
124# Is qt-multimedia required? Possible values are 'always', 'optional' and 'never'.
125# This variable must be set before inheriting any eclasses. Defaults to 'never'.
126MULTIMEDIA_REQUIRED="${MULTIMEDIA_REQUIRED:-never}"
127
128# @ECLASS-VARIABLE: WEBKIT_REQUIRED
129# @DESCRIPTION:
130# Is qt-webkit requred? Possible values are 'always', 'optional' and 'never'.
131# This variable must be set before inheriting any eclasses. Defaults to 'never'.
132WEBKIT_REQUIRED="${WEBKIT_REQUIRED:-never}"
133
134# @ECLASS-VARIABLE: CPPUNIT_REQUIRED
135# @DESCRIPTION:
136# Is cppunit required for tests? Possible values are 'always', 'optional' and 'never'.
137# This variable must be set before inheriting any eclasses. Defaults to 'never'.
138CPPUNIT_REQUIRED="${CPPUNIT_REQUIRED:-never}"
139
140# @ECLASS-VARIABLE: KDE_REQUIRED
141# @DESCRIPTION:
142# Is kde required? Possible values are 'always', 'optional' and 'never'.
143# 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.
145# Note that for kde-base packages this variable is fixed to 'always'.
146KDE_REQUIRED="${KDE_REQUIRED:-always}"
147
148# @ECLASS-VARIABLE: KDE_HANDBOOK
149# @DESCRIPTION:
150# Set to enable handbook in application. Possible values are 'always', 'optional'
151# (handbook USE flag) and 'never'.
152# This variable must be set before inheriting any eclasses. Defaults to 'never'.
153# It adds default handbook dirs for kde-base packages to KMEXTRA and in any case it
154# ensures buildtime and runtime dependencies.
155KDE_HANDBOOK="${KDE_HANDBOOK:-never}"
156
157# Setup packages inheriting this eclass
104case ${KDEBASE} in 158case ${KDEBASE} in
105 kde-base) 159 kde-base)
106 HOMEPAGE="http://www.kde.org/" 160 HOMEPAGE="http://www.kde.org/"
107 LICENSE="GPL-2" 161 LICENSE="GPL-2"
108 ;;
109 koffice)
110 HOMEPAGE="http://www.koffice.org/"
111 LICENSE="GPL-2"
112 ;;
113 kdevelop)
114 HOMEPAGE="http://www.kdevelop.org/"
115 LICENSE="GPL-2"
116 ;;
117esac
118
119# @ECLASS-VARIABLE: OPENGL_REQUIRED
120# @DESCRIPTION:
121# Is qt-opengl required? Possible values are 'always', 'optional' and 'never'.
122# This variable must be set before inheriting any eclasses. Defaults to 'never'.
123OPENGL_REQUIRED="${OPENGL_REQUIRED:-never}"
124
125# @ECLASS-VARIABLE: MULTIMEDIA_REQUIRED
126# @DESCRIPTION:
127# Is qt-multimedia required? Possible values are 'always', 'optional' and 'never'.
128# This variable must be set before inheriting any eclasses. Defaults to 'never'.
129MULTIMEDIA_REQUIRED="${MULTIMEDIA_REQUIRED:-never}"
130
131# @ECLASS-VARIABLE: WEBKIT_REQUIRED
132# @DESCRIPTION:
133# Is qt-webkit requred? Possible values are 'always', 'optional' and 'never'.
134# This variable must be set before inheriting any eclasses. Defaults to 'never'.
135WEBKIT_REQUIRED="${WEBKIT_REQUIRED:-never}"
136
137# @ECLASS-VARIABLE: CPPUNIT_REQUIRED
138# @DESCRIPTION:
139# Is cppunit required for tests? Possible values are 'always', 'optional' and 'never'.
140# This variable must be set before inheriting any eclasses. Defaults to 'never'.
141CPPUNIT_REQUIRED="${CPPUNIT_REQUIRED:-never}"
142
143# @ECLASS-VARIABLE: KDE_REQUIRED
144# @DESCRIPTION:
145# Is kde required? Possible values are 'always', 'optional' and 'never'.
146# This variable must be set before inheriting any eclasses. Defaults to 'always'
147# If set to always or optional, KDE_MINIMAL may be overriden as well.
148# Note that for kde-base packages this variable is fixed to 'always'.
149KDE_REQUIRED="${KDE_REQUIRED:-always}"
150
151# Setup packages inheriting this eclass
152case ${KDEBASE} in
153 kde-base)
154 if [[ $BUILD_TYPE = live ]]; then 162 if [[ $BUILD_TYPE = live ]]; then
155 # Disable tests for live ebuilds 163 # Disable tests for live ebuilds
156 RESTRICT+=" test" 164 RESTRICT+=" test"
157 # Live ebuilds in kde-base default to kdeprefix by default 165 # Live ebuilds in kde-base default to kdeprefix by default
158 IUSE+=" +kdeprefix" 166 IUSE+=" +kdeprefix"
169 ;; 177 ;;
170 esac 178 esac
171 # Block installation of other SLOTS unless kdeprefix 179 # Block installation of other SLOTS unless kdeprefix
172 RDEPEND+=" $(block_other_slots)" 180 RDEPEND+=" $(block_other_slots)"
173 ;; 181 ;;
182 koffice)
183 HOMEPAGE="http://www.koffice.org/"
184 LICENSE="GPL-2"
185 ;;
186 kdevelop)
187 HOMEPAGE="http://www.kdevelop.org/"
188 LICENSE="GPL-2"
189 ;;
174esac 190esac
175 191
176# @ECLASS-VARIABLE: QT_MINIMAL 192# @ECLASS-VARIABLE: QT_MINIMAL
177# @DESCRIPTION: 193# @DESCRIPTION:
178# Determine version of qt we enforce as minimal for the package. 4.4.0 4.5.1.. 194# Determine version of qt we enforce as minimal for the package. 4.4.0 4.5.1...
179# Currently defaults to 4.5.1 for KDE 4.3 and earlier 195# 4.6.0 for 4.4 and 4.6.3 for 4.5 and later
180# or 4.6.0 for KDE 4.4 and later
181if slot_is_at_least 4.4 "${KDE_MINIMAL}"; then 196if slot_is_at_least 4.5 "${KDE_MINIMAL}"; then
197 QT_MINIMAL="${QT_MINIMAL:-4.6.3}"
198else
182 QT_MINIMAL="${QT_MINIMAL:-4.6.0}" 199 QT_MINIMAL="${QT_MINIMAL:-4.6.0}"
183fi 200fi
184
185QT_MINIMAL="${QT_MINIMAL:-4.5.1}"
186 201
187# OpenGL dependencies 202# OpenGL dependencies
188qtopengldepend=" 203qtopengldepend="
189 >=x11-libs/qt-opengl-${QT_MINIMAL}:4 204 >=x11-libs/qt-opengl-${QT_MINIMAL}:4
190" 205"
257 *) ;; 272 *) ;;
258esac 273esac
259unset cppuintdepend 274unset cppuintdepend
260 275
261# KDE dependencies 276# KDE dependencies
277# Qt accessibility classes are needed in various places, bug 325461
262kdecommondepend=" 278kdecommondepend="
279 dev-lang/perl
263 >=x11-libs/qt-core-${QT_MINIMAL}:4[qt3support,ssl] 280 >=x11-libs/qt-core-${QT_MINIMAL}:4[qt3support,ssl]
264 >=x11-libs/qt-gui-${QT_MINIMAL}:4[dbus] 281 >=x11-libs/qt-gui-${QT_MINIMAL}:4[accessibility,dbus]
265 >=x11-libs/qt-qt3support-${QT_MINIMAL}:4[kde] 282 >=x11-libs/qt-qt3support-${QT_MINIMAL}:4[accessibility,kde]
266 >=x11-libs/qt-script-${QT_MINIMAL}:4 283 >=x11-libs/qt-script-${QT_MINIMAL}:4
267 >=x11-libs/qt-sql-${QT_MINIMAL}:4[qt3support] 284 >=x11-libs/qt-sql-${QT_MINIMAL}:4[qt3support]
268 >=x11-libs/qt-svg-${QT_MINIMAL}:4 285 >=x11-libs/qt-svg-${QT_MINIMAL}:4
269 >=x11-libs/qt-test-${QT_MINIMAL}:4 286 >=x11-libs/qt-test-${QT_MINIMAL}:4
270 !aqua? ( 287 !aqua? (
271 x11-libs/libXext 288 x11-libs/libXext
272 x11-libs/libXt 289 x11-libs/libXt
273 x11-libs/libXxf86vm 290 x11-libs/libXxf86vm
274 ) 291 )
275" 292"
276#perl is not needed on host (+ difficult crosscompilation)
277tc-is-cross-compiler || kdecommondepend="$kdecommondepend dev-lang/perl"
278 293
279if [[ ${PN} != kdelibs ]]; then 294if [[ ${PN} != kdelibs ]]; then
280 if [[ ${KDEBASE} = kde-base ]]; then
281 kdecommondepend+=" $(add_kdebase_dep kdelibs)" 295 kdecommondepend+=" $(add_kdebase_dep kdelibs)"
282 # libknotificationitem only when SLOT is 4.3
283 [[ ${PN} != libknotificationitem ]] && [[ ${SLOT} = 4.3 ]] && \
284 kdecommondepend+=" $(add_kdebase_dep libknotificationitem)"
285 else
286 kdecommondepend+="
287 >=kde-base/kdelibs-${KDE_MINIMAL}
288 "
289 if [[ ${KDEBASE} = kdevelop ]]; then 296 if [[ ${KDEBASE} = kdevelop ]]; then
290 if [[ ${PN} != kdevplatform ]]; then 297 if [[ ${PN} != kdevplatform ]]; then
298 # @ECLASS-VARIABLE: KDEVPLATFORM_REQUIRED
299 # @DESCRIPTION:
300 # Specifies whether kdevplatform is required. Possible values are 'always' (default) and 'never'.
301 # Applies to KDEBASE=kdevelop only.
302 KDEVPLATFORM_REQUIRED="${KDEVPLATFORM_REQUIRED:-always}"
303 case ${KDEVPLATFORM_REQUIRED} in
304 always)
291 kdecommondepend+=" 305 kdecommondepend+="
292 >=dev-util/kdevplatform-${KDEVPLATFORM_VERSION} 306 >=dev-util/kdevplatform-${KDEVPLATFORM_VERSION}
293 " 307 "
294 fi 308 ;;
309 *) ;;
310 esac
295 fi 311 fi
296 fi 312 fi
297fi 313fi
298kdedepend=" 314kdedepend="
299 dev-util/automoc 315 dev-util/automoc
301 !aqua? ( 317 !aqua? (
302 || ( >=x11-libs/libXtst-1.1.0 <x11-proto/xextproto-7.1.0 ) 318 || ( >=x11-libs/libXtst-1.1.0 <x11-proto/xextproto-7.1.0 )
303 x11-proto/xf86vidmodeproto 319 x11-proto/xf86vidmodeproto
304 ) 320 )
305" 321"
322kderdepend=""
323
324kdehandbookdepend="
325 app-text/docbook-xml-dtd:4.2
326 app-text/docbook-xsl-stylesheets
327"
328kdehandbookrdepend="
329 $(add_kdebase_dep kdelibs 'handbook')
330"
331case ${KDE_HANDBOOK} in
332 always)
333 kdedepend+=" ${kdehandbookdepend}"
334 [[ ${PN} != kdelibs ]] && kderdepend+=" ${kdehandbookrdepend}"
335 ;;
336 optional)
337 IUSE+=" +handbook"
338 kdedepend+=" handbook? ( ${kdehandbookdepend} )"
339 [[ ${PN} != kdelibs ]] && kderdepend+=" handbook? ( ${kdehandbookrdepend} )"
340 ;;
341 *) ;;
342esac
343unset kdehandbookdepend kdehandbookrdepend
344
306case ${KDE_REQUIRED} in 345case ${KDE_REQUIRED} in
307 always) 346 always)
308 IUSE+=" aqua" 347 IUSE+=" aqua"
309 COMMONDEPEND+=" ${kdecommondepend}" 348 [[ -n ${kdecommondepend} ]] && COMMONDEPEND+=" ${kdecommondepend}"
310 DEPEND+=" ${kdedepend}" 349 [[ -n ${kdedepend} ]] && DEPEND+=" ${kdedepend}"
350 [[ -n ${kderdepend} ]] && RDEPEND+=" ${kderdepend}"
311 ;; 351 ;;
312 optional) 352 optional)
313 IUSE+=" aqua kde" 353 IUSE+=" aqua kde"
314 COMMONDEPEND+=" kde? ( ${kdecommondepend} )" 354 [[ -n ${kdecommondepend} ]] && COMMONDEPEND+=" kde? ( ${kdecommondepend} )"
315 DEPEND+=" kde? ( ${kdedepend} )" 355 [[ -n ${kdedepend} ]] && DEPEND+=" kde? ( ${kdedepend} )"
356 [[ -n ${kderdepend} ]] && RDEPEND+=" kde? ( ${kderdepend} )"
316 ;; 357 ;;
317 *) ;; 358 *) ;;
318esac 359esac
319 360
320unset kdecommondepend kdedepend 361unset kdecommondepend kdedepend kderdepend
321 362
322debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: COMMONDEPEND is ${COMMONDEPEND}" 363debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: COMMONDEPEND is ${COMMONDEPEND}"
323debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: DEPEND (only) is ${DEPEND}" 364debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: DEPEND (only) is ${DEPEND}"
324debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: RDEPEND (only) is ${RDEPEND}" 365debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: RDEPEND (only) is ${RDEPEND}"
325 366
432 fi 473 fi
433 _kmname_pv="${_kmname}-${PV}" 474 _kmname_pv="${_kmname}-${PV}"
434 case ${KDEBASE} in 475 case ${KDEBASE} in
435 kde-base) 476 kde-base)
436 case ${PV} in 477 case ${PV} in
437 4.[34].8[05] | 4.[34].9[0568]) 478 4.[456].8[05] | 4.[456].9[023568])
438 # block for normally packed unstable releases 479 # Unstable KDE SC releases
439 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.bz2" ;; 480 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.bz2"
440 4.[34].[6-9]*)
441 # Repacked tarballs: need to depend on xz-utils to ensure that they can be unpacked
442 SRC_URI="http://dev.gentooexperimental.org/~alexxy/kde/${PV}/src/${_kmname_pv}.tar.xz"
443 DEPEND+=" app-arch/xz-utils"
444 ;; 481 ;;
482 4.4.6 | 4.4.7)
483 # Only kdepim here
484 SRC_URI="mirror://kde/stable/kdepim-${PV}/src/${_kmname_pv}.tar.bz2"
485 ;;
486 *)
487 # Stable KDE SC releases
445 *) SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.bz2" ;; 488 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.bz2"
489 ;;
446 esac 490 esac
447 ;; 491 ;;
448 koffice) 492 koffice)
449 case ${PV} in 493 case ${PV} in
450 2.1.[6-9]*) SRC_URI="mirror://kde/unstable/${_kmname_pv}/${_kmname_pv}.tar.bz2" ;; 494 2.1.[6-9]*) SRC_URI="mirror://kde/unstable/${_kmname_pv}/${_kmname_pv}.tar.bz2" ;;
599 fi 643 fi
600 fi 644 fi
601 645
602 # Apply patches 646 # Apply patches
603 base_src_prepare 647 base_src_prepare
604 epatch_user
605 648
606 # Save library dependencies 649 # Save library dependencies
607 if [[ -n ${KMSAVELIBS} ]] ; then 650 if [[ -n ${KMSAVELIBS} ]] ; then
608 save_library_dependencies 651 save_library_dependencies
609 fi 652 fi
610 653
611 # Inject library dependencies 654 # Inject library dependencies
612 if [[ -n ${KMLOADLIBS} ]] ; then 655 if [[ -n ${KMLOADLIBS} ]] ; then
613 load_library_dependencies 656 load_library_dependencies
614 fi 657 fi
658
659 # Hack for manuals relying on outdated DTD
660 find "${S}" -name "*.docbook" \
661 -exec sed -i -r \
662 -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' {} + \
663 || die 'failed to fix DocBook variant version'
615} 664}
616 665
617# @FUNCTION: kde4-base_src_configure 666# @FUNCTION: kde4-base_src_configure
618# @DESCRIPTION: 667# @DESCRIPTION:
619# Function for configuring the build of KDE4 applications. 668# Function for configuring the build of KDE4 applications.
723 fi 772 fi
724 773
725 # Install common documentation of KDE4 applications 774 # Install common documentation of KDE4 applications
726 local doc 775 local doc
727 if ! has kde4-meta ${INHERITED}; then 776 if ! has kde4-meta ${INHERITED}; then
728 for doc in AUTHORS ChangeLog* README* NEWS TODO HACKING; do 777 for doc in "${S}"/{AUTHORS,CHANGELOG,ChangeLog*,README*,NEWS,TODO,HACKING}; do
729 [[ -s "${S}/${doc}" ]] && dodoc "${doc}" 778 [[ -f "${doc}" ]] && [[ -s "${doc}" ]] && dodoc "${doc}"
730 done 779 done
731 # kdelibs, kdepimlibs
732 if [[ -z ${KMNAME} ]]; then
733 for doc in "${S}"/*/{AUTHORS,ChangeLog*,README*,NEWS,TODO,HACKING}; do 780 for doc in "${S}"/*/{AUTHORS,CHANGELOG,ChangeLog*,README*,NEWS,TODO,HACKING}; do
734 if [[ -s "${S}/${doc}" ]]; then 781 [[ -f "${doc}" ]] && [[ -s "${doc}" ]] && newdoc "${doc}" "$(basename $(dirname ${doc})).$(basename ${doc})"
735 local doc_complete=${doc}
736 doc="${doc#*/}"
737 newdoc "$doc_complete" "${doc%/*}.${doc##*/}"
738 fi
739 done 782 done
740 fi
741 fi 783 fi
742 784
743 cmake-utils_src_install 785 cmake-utils_src_install
744} 786}
745 787

Legend:
Removed from v.1.61  
changed lines
  Added in v.1.76

  ViewVC Help
Powered by ViewVC 1.1.20