/[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.50 Revision 1.51
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2011 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.50 2011/03/11 19:50:52 dilfridge Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.51 2011/04/06 14:22:14 scarabeus 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.
10# This eclass provides all necessary functions for writing split KDE ebuilds. 10# This eclass provides all necessary functions for writing split KDE ebuilds.
11# 11#
12# You must define KMNAME to use this eclass, and do so before inheriting it. All other variables are optional. 12# You must define KMNAME to use this eclass, and do so before inheriting it. All other variables are optional.
13# Do not include the same item in more than one of KMMODULE, KMMEXTRA, KMCOMPILEONLY, KMEXTRACTONLY. 13# Do not include the same item in more than one of KMMODULE, KMMEXTRA, KMCOMPILEONLY, KMEXTRACTONLY.
14 14
15[[ -z ${KMNAME} ]] && die "kde4-meta.eclass inherited but KMNAME not defined - broken ebuild"
16
15inherit kde4-base toolchain-funcs versionator 17inherit kde4-base toolchain-funcs versionator
16 18
17case ${EAPI:-0} in 19case ${EAPI:-0} in
18 3) 20 3)
19 KDEMETA_EXPF="pkg_setup src_unpack src_prepare src_configure src_compile src_test src_install pkg_postinst pkg_postrm" 21 KDEMETA_EXPF="pkg_setup src_unpack src_prepare src_configure src_compile src_test src_install pkg_preinst pkg_postinst pkg_postrm"
20 ;; 22 ;;
21 *) 23 *)
22 KDEMETA_EXPF="pkg_pretend pkg_setup src_unpack src_prepare src_configure src_compile src_test src_install pkg_postinst pkg_postrm" 24 KDEMETA_EXPF="pkg_pretend pkg_setup src_unpack src_prepare src_configure src_compile src_test src_install pkg_preinst pkg_postinst pkg_postrm"
23 ;; 25 ;;
24esac 26esac
25EXPORT_FUNCTIONS ${KDEMETA_EXPF} 27EXPORT_FUNCTIONS ${KDEMETA_EXPF}
26
27[[ -z ${KMNAME} ]] && die "kde4-meta.eclass inherited but KMNAME not defined - broken ebuild"
28 28
29# Add dependencies that all packages in a certain module share. 29# Add dependencies that all packages in a certain module share.
30case ${KMNAME} in 30case ${KMNAME} in
31 kdebase|kdebase-apps|kdebase-workspace|kdebase-runtime|kdegraphics) 31 kdebase|kdebase-apps|kdebase-workspace|kdebase-runtime|kdegraphics)
32 COMMONDEPEND+=" >=media-libs/qimageblitz-0.0.4" 32 COMMONDEPEND+=" >=media-libs/qimageblitz-0.0.4"
76debug-print "line ${LINENO} ${ECLASS}: RDEPEND ${RDEPEND} - after metapackage-specific dependencies" 76debug-print "line ${LINENO} ${ECLASS}: RDEPEND ${RDEPEND} - after metapackage-specific dependencies"
77 77
78# Useful to build kde4-meta style stuff from extragear/playground (plasmoids etc) 78# Useful to build kde4-meta style stuff from extragear/playground (plasmoids etc)
79case ${BUILD_TYPE} in 79case ${BUILD_TYPE} in
80 live) 80 live)
81 if [[ ${KDE_SCM} == svn ]]; then
81 case ${KMNAME} in 82 case ${KMNAME} in
82 extragear*|playground*) 83 extragear*|playground*)
83 ESVN_REPO_URI="${ESVN_MIRROR}/trunk/${KMNAME}" 84 ESVN_REPO_URI="${ESVN_MIRROR}/trunk/${KMNAME}"
84 ESVN_PROJECT="${KMNAME}${ESVN_PROJECT_SUFFIX}" 85 ESVN_PROJECT="${KMNAME}${ESVN_PROJECT_SUFFIX}"
85 ;; 86 ;;
86 esac 87 esac
88 fi
87 ;; 89 ;;
88esac 90esac
89 91
90# @ECLASS-VARIABLE: KMNAME 92# @ECLASS-VARIABLE: KMNAME
91# @DESCRIPTION: 93# @DESCRIPTION:
140# Currently only checks the gcc version. 142# Currently only checks the gcc version.
141kde4-meta_pkg_pretend() { 143kde4-meta_pkg_pretend() {
142 debug-print-function ${FUNCNAME} "$@" 144 debug-print-function ${FUNCNAME} "$@"
143 145
144 slot_is_at_least 4.6 ${SLOT} && ( [[ $(gcc-major-version) -lt 4 ]] || \ 146 slot_is_at_least 4.6 ${SLOT} && ( [[ $(gcc-major-version) -lt 4 ]] || \
145 ( [[ $(gcc-major-version) -eq 4 ]] && [[ $(gcc-minor-version) -le 3 ]] ) ) \ 147 ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 3 ]] ) ) \
146 && die "Sorry, but gcc-4.3 and earlier wont work for KDE SC 4.6 (see bug 354837)." 148 && die "Sorry, but gcc-4.3 and earlier wont work for KDE SC 4.6 (see bug 354837)."
147} 149}
148 150
149# @FUNCTION: kde4-meta_pkg_setup 151# @FUNCTION: kde4-meta_pkg_setup
150# @DESCRIPTION: 152# @DESCRIPTION:
158 kde4-base_pkg_setup 160 kde4-base_pkg_setup
159} 161}
160 162
161# @FUNCTION: kde4-meta_src_unpack 163# @FUNCTION: kde4-meta_src_unpack
162# @DESCRIPTION: 164# @DESCRIPTION:
163# This function unpacks the source for split ebuilds. See also 165# This function unpacks the source for split ebuilds.
164# kde4-meta-src_extract. 166# Further more is processed in kde4-meta_src_extract
165kde4-meta_src_unpack() { 167kde4-meta_src_unpack() {
166 debug-print-function ${FUNCNAME} "$@" 168 debug-print-function ${FUNCNAME} "$@"
167 169
168 if [[ ${BUILD_TYPE} = live ]]; then 170 if [[ ${BUILD_TYPE} = live ]]; then
171 case "${KDE_SCM}" in
172 svn)
169 migrate_store_dir 173 migrate_store_dir
170 S="${WORKDIR}/${P}" 174 S="${WORKDIR}/${P}"
171 mkdir -p "${S}" 175 mkdir -p "${S}"
172 ESVN_RESTRICT="export" subversion_src_unpack 176 ESVN_RESTRICT="export" subversion_src_unpack
173 subversion_wc_info 177 subversion_wc_info
174 subversion_bootstrap 178 subversion_bootstrap
179 ;;
180 git)
181 git_src_unpack
182 ;;
183 esac
184 fi
175 kde4-meta_src_extract 185 kde4-meta_src_extract
176 else
177 kde4-meta_src_extract
178 fi
179} 186}
180
181# FIXME: the difference between kde4-meta_src_extract and kde4-meta_src_unpack?
182 187
183# @FUNCTION: kde4-meta_src_extract 188# @FUNCTION: kde4-meta_src_extract
184# @DESCRIPTION: 189# @DESCRIPTION:
185# A function to unpack the source for a split KDE ebuild. 190# A function to extract the source for a split KDE ebuild.
186# Also see KMMODULE, KMNOMODULE, KMEXTRA, KMCOMPILEONLY, KMEXTRACTONLY and 191# Also see KMMODULE, KMNOMODULE, KMEXTRA, KMCOMPILEONLY, KMEXTRACTONLY and
187# KMTARPARAMS. 192# KMTARPARAMS.
188kde4-meta_src_extract() { 193kde4-meta_src_extract() {
189 debug-print-function ${FUNCNAME} "$@" 194 debug-print-function ${FUNCNAME} "$@"
190 195
191 if [[ ${BUILD_TYPE} = live ]]; then 196 if [[ ${BUILD_TYPE} = live ]]; then
192 local rsync_options subdir kmnamedir targetdir
193 # Export working copy to ${S} 197 # Export working copy to ${S}
194 einfo "Exporting parts of working copy to ${S}" 198 einfo "Exporting parts of working copy to ${S}"
195 kde4-meta_create_extractlists 199 kde4-meta_create_extractlists
196 200
201 case ${KDE_SCM} in
202 svn)
203 local rsync_options subdir kmnamedir targetdir wc_path escm
204
197 rsync_options="--group --links --owner --perms --quiet --exclude=.svn/" 205 rsync_options="--group --links --owner --perms --quiet --exclude=.svn/ --exclude=.git/"
206 wc_path="${ESVN_WC_PATH}"
207 escm="{ESVN}"
198 208
199 # Copy ${KMNAME} non-recursively (toplevel files) 209 # Copy ${KMNAME} non-recursively (toplevel files)
200 rsync ${rsync_options} "${ESVN_WC_PATH}"/${kmnamedir}* "${S}" \ 210 rsync ${rsync_options} "${wc_path}"/${kmnamedir}* "${S}" \
201 || die "${ESVN}: can't export toplevel files to '${S}'." 211 || die "${escm}: can't export toplevel files to '${S}'."
202 # Copy cmake directory 212 # Copy cmake directory
203 if [[ -d "${ESVN_WC_PATH}/${kmnamedir}cmake" ]]; then 213 if [[ -d "${wc_path}/${kmnamedir}cmake" ]]; then
204 rsync --recursive ${rsync_options} "${ESVN_WC_PATH}/${kmnamedir}cmake" "${S}" \ 214 rsync --recursive ${rsync_options} "${wc_path}/${kmnamedir}cmake" "${S}" \
205 || die "${ESVN}: can't export cmake files to '${S}'." 215 || die "${escm}: can't export cmake files to '${S}'."
206 fi 216 fi
207 # Copy all subdirectories 217 # Copy all subdirectories
208 for subdir in $(__list_needed_subdirectories); do 218 for subdir in $(__list_needed_subdirectories); do
209 targetdir="" 219 targetdir=""
210 if [[ $subdir = doc/* && ! -e "$ESVN_WC_PATH/$kmnamedir$subdir" ]]; then 220 if [[ $subdir = doc/* && ! -e "$wc_path/$kmnamedir$subdir" ]]; then
211 continue 221 continue
212 fi 222 fi
213 223
214 [[ ${subdir%/} = */* ]] && targetdir=${subdir%/} && targetdir=${targetdir%/*} && mkdir -p "${S}/${targetdir}" 224 [[ ${subdir%/} = */* ]] && targetdir=${subdir%/} && targetdir=${targetdir%/*} && mkdir -p "${S}/${targetdir}"
215 rsync --recursive ${rsync_options} "${ESVN_WC_PATH}/${kmnamedir}${subdir%/}" "${S}/${targetdir}" \ 225 rsync --recursive ${rsync_options} "${wc_path}/${kmnamedir}${subdir%/}" "${S}/${targetdir}" \
216 || die "${ESVN}: can't export subdirectory '${subdir}' to '${S}/${targetdir}'." 226 || die "${escm}: can't export subdirectory '${subdir}' to '${S}/${targetdir}'."
217 done 227 done
218 228 ;;
219 if [[ ${KMNAME} = kdebase-runtime && ${PN} != kdebase-data ]]; then 229 esac
220 sed -i -e '/^install(PROGRAMS[[:space:]]*[^[:space:]]*\/kde4[[:space:]]/s/^/#DONOTINSTALL /' \
221 "${S}"/CMakeLists.txt || die "Sed to exclude bin/kde4 failed"
222 fi
223 else 230 else
224 local abort tarball tarfile f extractlist moduleprefix postfix 231 local abort tarball tarfile f extractlist moduleprefix postfix
225 case ${PV} in 232
226 4.[45].8[05] | 4.[45].9[023568])
227 # Block for normally packed upstream unstable snapshots
228 KMTARPARAMS+=" --bzip2" # bz2 233 KMTARPARAMS+=" --bzip2"
229 postfix="bz2" 234 postfix="bz2"
230 ;; 235
231 *)
232 KMTARPARAMS+=" --bzip2" # bz2
233 postfix="bz2"
234 ;;
235 esac
236 case ${KMNAME} in 236 case ${KMNAME} in
237 kdebase-apps) 237 kdebase-apps)
238 # kdebase/apps -> kdebase-apps 238 # kdebase/apps -> kdebase-apps
239 tarball="kdebase-${PV}.tar.${postfix}" 239 tarball="kdebase-${PV}.tar.${postfix}"
240 case ${PV} in 240 if ! slot_is_at_least 4.6 ${SLOT} || [[ ${PV} == "4.6.0" ]]; then
241 4.6.1)
242 ;;
243 *)
244 # Go one level deeper for kdebase-apps in tarballs
245 moduleprefix=apps/ 241 moduleprefix=apps/
246 KMTARPARAMS+=" --transform=s|apps/||" 242 KMTARPARAMS+=" --transform=s|apps/||"
247 ;;
248 esac
249 ;;
250 kdepim)
251 if [[ ${PV} == 4.5.93 ]] ; then
252 tarball="kdepim-4.6beta3.tar.${postfix}"
253 else
254 tarball="${KMNAME}-${PV}.tar.${postfix}"
255 fi 243 fi
256 ;; 244 ;;
257 *) 245 *)
258 # Create tarball name from module name (this is the default) 246 # Create tarball name from module name (this is the default)
259 tarball="${KMNAME}-${PV}.tar.${postfix}" 247 tarball="${KMNAME}-${PV}.tar.${postfix}"
277 extractlist+=" ${topdir}${moduleprefix}${f}" 265 extractlist+=" ${topdir}${moduleprefix}${f}"
278 done 266 done
279 extractlist+=" $(__list_needed_subdirectories)" 267 extractlist+=" $(__list_needed_subdirectories)"
280 268
281 pushd "${WORKDIR}" > /dev/null 269 pushd "${WORKDIR}" > /dev/null
270
271 # @ECLASS-VARIABLE: KDE4_STRICTER
272 # @DESCRIPTION:
273 # Print out all issues found executing tar / kmextract files
274 # Set on if you want to find issues in kde-base ebuild unpack sequences
282 [[ -n ${KDE4_STRICTER} ]] && echo tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} 275 [[ -n ${KDE4_STRICTER} ]] && echo 'tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist}'
283 if [[ ${I_KNOW_WHAT_I_AM_DOING} ]]; then 276 if [[ ${I_KNOW_WHAT_I_AM_DOING} ]]; then
284 # to make the devs happy - bug 338397 277 # to make the devs happy - bug 338397
285 tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} || ewarn "tar extract command failed at least partially - continuing anyway" 278 tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} || ewarn "tar extract command failed at least partially - continuing anyway"
286 else 279 else
287 tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} 2> /dev/null || echo "tar extract command failed at least partially - continuing anyway" 280 tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} 2> /dev/null || echo "tar extract command failed at least partially - continuing anyway"
297 # We need to clear it here to make verification below work 290 # We need to clear it here to make verification below work
298 unset moduleprefix 291 unset moduleprefix
299 292
300 if [[ -n ${KDE4_STRICTER} ]]; then 293 if [[ -n ${KDE4_STRICTER} ]]; then
301 for f in $(__list_needed_subdirectories fatal); do 294 for f in $(__list_needed_subdirectories fatal); do
302 if [[ ! -e "${S}/${f#*/}" ]]; then 295 if [[ ! -e ${S}/${f#*/} ]]; then
303 eerror "'${f#*/}' is missing" 296 eerror "'${f#*/}' is missing"
304 abort=true 297 abort=true
305 fi 298 fi
306 done 299 done
307 [[ -n ${abort} ]] && die "There were missing files." 300 [[ -n ${abort} ]] && die "There were missing files."
328 KMEXTRA_NONFATAL+=" 321 KMEXTRA_NONFATAL+="
329 doc/${KMMODULE##*/}" 322 doc/${KMMODULE##*/}"
330 fi 323 fi
331 324
332 # Add default handbook locations 325 # Add default handbook locations
333 if [[ -z ${KMNOMODULE} ]] && { [[ ${KDE_HANDBOOK} = always ]] || { [[ ${KDE_HANDBOOK} = optional ]] && use handbook; }; }; then 326 if [[ -z ${KMNOMODULE} ]] && ( [[ ${KDE_HANDBOOK} == always ]] || ( [[ ${KDE_HANDBOOK} == optional ]] && use handbook ) ); then
334 KMEXTRA_NONFATAL+=" doc/${KMMODULE##*/}" 327 KMEXTRA_NONFATAL+=" doc/${KMMODULE##*/}"
335 fi 328 fi
336 329
337 # Add some CMake-files to KMEXTRACTONLY. 330 # Add some CMake-files to KMEXTRACTONLY.
338 # Note that this actually doesn't include KMEXTRA handling. 331 # Note that this actually doesn't include KMEXTRA handling.
339 # In those cases you should care to add the relevant files to KMEXTRACTONLY 332 # In those cases you should care to add the relevant files to KMEXTRACTONLY
340 case ${KMNAME} in 333 case ${KMNAME} in
341 kdebase) 334 kdebase)
342 case ${PV} in 335 if ! slot_is_at_least 4.6 ${SLOT} || [[ ${PV} == "4.6.0" ]]; then
343 4.6.1)
344 KMEXTRACTONLY+=" 336 KMEXTRACTONLY+="
345 config-apps.h.cmake
346 ConfigureChecks.cmake"
347 ;;
348 *)
349 KMEXTRACTONLY+="
350 apps/config-apps.h.cmake 337 apps/config-apps.h.cmake
351 apps/ConfigureChecks.cmake" 338 apps/ConfigureChecks.cmake"
352 ;; 339 else
353 esac 340 KMEXTRACTONLY+="
341 config-apps.h.cmake
342 ConfigureChecks.cmake"
343 fi
354 ;; 344 ;;
355 kdebase-apps) 345 kdebase-apps)
356 KMEXTRACTONLY+=" 346 KMEXTRACTONLY+="
357 config-apps.h.cmake 347 config-apps.h.cmake
358 ConfigureChecks.cmake" 348 ConfigureChecks.cmake"
405 koffice) 395 koffice)
406 KMEXTRACTONLY+=" 396 KMEXTRACTONLY+="
407 filters/config-filters.h.cmake 397 filters/config-filters.h.cmake
408 " 398 "
409 case ${PV} in 399 case ${PV} in
410 2.0.*)
411 KMEXTRACTONLY+="
412 config-openctl.h.cmake
413 config-endian.h.cmake
414 config-openexr.h.cmake
415 config-opengl.h.cmake
416 config-prefix.h.cmake"
417 ;;
418 2.[12].*) 400 2.[12].*)
419 KMEXTRACTONLY+=" 401 KMEXTRACTONLY+="
420 config-endian.h.cmake 402 config-endian.h.cmake
421 config-openexr.h.cmake 403 config-openexr.h.cmake
422 config-opengl.h.cmake 404 config-opengl.h.cmake
424 ;; 406 ;;
425 esac 407 esac
426 ;; 408 ;;
427 esac 409 esac
428 # Don't install cmake modules for split ebuilds, to avoid collisions. 410 # Don't install cmake modules for split ebuilds, to avoid collisions.
411 # note: kdegraphics >= 4.6.2 does not even have code to do that, so we
412 # should not try in that case
413 if [[ ${KMNAME} != kdegraphics ]] || { [[ ${SLOT} != 4.6 || ${PV} < 4.6.2 ]] && ! slot_is_at_least 4.7 ${SLOT}; }; then
429 case ${KMNAME} in 414 case ${KMNAME} in
430 kdebase-runtime|kdebase-workspace|kdeedu|kdegames|kdegraphics) 415 kdebase-runtime|kdebase-workspace|kdeedu|kdegames|kdegraphics)
431 case ${PN} in 416 case ${PN} in
432 libkdegames|libkdeedu|libkworkspace) 417 libkdegames|libkdeedu|libkworkspace)
433 KMEXTRA+=" 418 KMEXTRA+="
434 cmake/modules/" 419 cmake/modules/"
435 ;; 420 ;;
436 *) 421 *)
437 KMCOMPILEONLY+=" 422 KMCOMPILEONLY+="
438 cmake/modules/" 423 cmake/modules/"
439 ;; 424 ;;
440 esac 425 esac
441 ;; 426 ;;
442 esac 427 esac
428 fi
443 429
444 debug-print "line ${LINENO} ${ECLASS} ${FUNCNAME}: KMEXTRACTONLY ${KMEXTRACTONLY}" 430 debug-print "line ${LINENO} ${ECLASS} ${FUNCNAME}: KMEXTRACTONLY ${KMEXTRACTONLY}"
445} 431}
446 432
447__list_needed_subdirectories() { 433__list_needed_subdirectories() {
502 488
503 kde4-meta_change_cmakelists 489 kde4-meta_change_cmakelists
504 kde4-base_src_prepare 490 kde4-base_src_prepare
505} 491}
506 492
507# FIXME: no comment here? 493# @FUNCTION: _change_cmakelists_parent_dirs
494# @DESCRIPTION:
495# Adjust CMakeLists.txt to shadow subdirectories
496# that are not required for the build.
508_change_cmakelists_parent_dirs() { 497_change_cmakelists_parent_dirs() {
509 debug-print-function ${FUNCNAME} "$@" 498 debug-print-function ${FUNCNAME} "$@"
510 499
511 local _olddir _dir 500 local _olddir _dir
512 _dir="${S}"/${1} 501 _dir="${S}"/${1}
513 until [[ ${_dir} == "${S}" ]]; do 502 until [[ ${_dir} == ${S} ]]; do
514 _olddir=$(basename "${_dir}") 503 _olddir=$(basename "${_dir}")
515 _dir=$(dirname "${_dir}") 504 _dir=$(dirname "${_dir}")
516 debug-print "${LINENO}: processing ${_dir} CMakeLists.txt searching for ${_olddir}" 505 debug-print "${LINENO}: processing ${_dir} CMakeLists.txt searching for ${_olddir}"
517 if [[ -f ${_dir}/CMakeLists.txt ]]; then 506 if [[ -f ${_dir}/CMakeLists.txt ]]; then
518 sed -e "/add_subdirectory[[:space:]]*([[:space:]]*${_olddir}[[:space:]]*)/s/#DONOTCOMPILE //g" \ 507 sed -e "/add_subdirectory[[:space:]]*([[:space:]]*${_olddir}[[:space:]]*)/s/#DONOTCOMPILE //g" \
658 sed -e '/install(.*FindKOfficeLibs.cmake/,/)/ d' \ 647 sed -e '/install(.*FindKOfficeLibs.cmake/,/)/ d' \
659 -i cmake/modules/CMakeLists.txt || die "${LINENO}: sed died in collision prevention section" 648 -i cmake/modules/CMakeLists.txt || die "${LINENO}: sed died in collision prevention section"
660 sed -e '/install(.\+config-openexr\.h.\+)/d' \ 649 sed -e '/install(.\+config-openexr\.h.\+)/d' \
661 -i CMakeLists.txt || die "${LINENO}: sed died in collision prevention section" 650 -i CMakeLists.txt || die "${LINENO}: sed died in collision prevention section"
662 fi 651 fi
663 # koffice 2.0
664 case ${PV} in
665 2.0.[1-9])
666 sed -i -n -e '1h;1!H;${g;s/install(.\+config-openexr.h.\+)//;p}' \
667 "${S}"/CMakeLists.txt || \
668 die "${LINENO}: sed died in collision prevention section"
669 ;;
670 *) ;;
671 esac
672 # koffice 2.1.[8-9][0-9] and 9999
673 case ${PV} in
674 2.1.8[0-9]|2.1.9[0-9]|9999)
675 sed -e '/^option(BUILD/s/ON/OFF/' \
676 -e '/^if(NOT BUILD_kchart/,/^endif(NOT BUILD_kchart/d' \
677 -e '/^if(BUILD_koreport/,/^endif(BUILD_koreport/d' \
678 -e 's/set(SHOULD_BUILD_F_OFFICE TRUE)/set(SHOULD_BUILD_F_OFFICE FALSE)/' \
679 -i "${S}"/CMakeLists.txt || die "sed died while fixing cmakelists"
680 if [[ ${PN} != koffice-data ]] && [[ ${PV} == 9999 ]]; then
681 sed -e '/config-opengl.h/d' \
682 -i "${S}"/CMakeLists.txt || die "sed died while fixing cmakelists"
683
684 fi
685 ;;
686 *) ;;
687 esac
688 esac 652 esac
689 653
690 popd > /dev/null 654 popd > /dev/null
691} 655}
692 656
712 -DWITH_Boost=OFF 676 -DWITH_Boost=OFF
713 -DWITH_LibTidy=OFF 677 -DWITH_LibTidy=OFF
714 "${mycmakeargs[@]}" 678 "${mycmakeargs[@]}"
715 ) 679 )
716 ;; 680 ;;
717 koffice)
718 case ${PV} in
719 2.1.8[0-9]|2.1.9[0-9]|9999)
720 if [[ ${PN} != "kchart" ]]; then
721 mycmakeargs=(
722 -DBUILD_koreport=OFF
723 "${mycmakeargs[@]}"
724 )
725 fi
726 ;;
727 esac
728 ;;
729 esac 681 esac
730 682
731 kde4-base_src_configure 683 kde4-base_src_configure
732} 684}
733 685
768 done 720 done
769 721
770 kde4-base_src_install 722 kde4-base_src_install
771} 723}
772 724
725# @FUNCTION: kde4-meta_pkg_preinst
726# @DESCRIPTION:
727# Invoke its equivalent in kde4-base.eclass.
728kde4-meta_pkg_preinst() {
729 debug-print-function ${FUNCNAME} "$@"
730
731 kde4-base_pkg_preinst
732}
733
773# @FUNCTION: kde4-meta_pkg_postinst 734# @FUNCTION: kde4-meta_pkg_postinst
774# @DESCRIPTION: 735# @DESCRIPTION:
775# Invoke kbuildsycoca4. 736# Invoke kbuildsycoca4.
776kde4-meta_pkg_postinst() { 737kde4-meta_pkg_postinst() {
777 debug-print-function ${FUNCNAME} "$@" 738 debug-print-function ${FUNCNAME} "$@"

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.51

  ViewVC Help
Powered by ViewVC 1.1.20