/[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.48 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.48 2011/01/12 21:24:58 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
15inherit kde4-base versionator
16
17EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare src_configure src_compile src_test src_install pkg_postinst pkg_postrm
18
19[[ -z ${KMNAME} ]] && die "kde4-meta.eclass inherited but KMNAME not defined - broken ebuild" 15[[ -z ${KMNAME} ]] && die "kde4-meta.eclass inherited but KMNAME not defined - broken ebuild"
16
17inherit kde4-base toolchain-funcs versionator
18
19case ${EAPI:-0} in
20 3)
21 KDEMETA_EXPF="pkg_setup src_unpack src_prepare src_configure src_compile src_test src_install pkg_preinst pkg_postinst pkg_postrm"
22 ;;
23 *)
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"
25 ;;
26esac
27EXPORT_FUNCTIONS ${KDEMETA_EXPF}
20 28
21# Add dependencies that all packages in a certain module share. 29# Add dependencies that all packages in a certain module share.
22case ${KMNAME} in 30case ${KMNAME} in
23 kdebase|kdebase-apps|kdebase-workspace|kdebase-runtime|kdegraphics) 31 kdebase|kdebase-apps|kdebase-workspace|kdebase-runtime|kdegraphics)
24 COMMONDEPEND+=" >=media-libs/qimageblitz-0.0.4" 32 COMMONDEPEND+=" >=media-libs/qimageblitz-0.0.4"
68debug-print "line ${LINENO} ${ECLASS}: RDEPEND ${RDEPEND} - after metapackage-specific dependencies" 76debug-print "line ${LINENO} ${ECLASS}: RDEPEND ${RDEPEND} - after metapackage-specific dependencies"
69 77
70# 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)
71case ${BUILD_TYPE} in 79case ${BUILD_TYPE} in
72 live) 80 live)
81 if [[ ${KDE_SCM} == svn ]]; then
73 case ${KMNAME} in 82 case ${KMNAME} in
74 extragear*|playground*) 83 extragear*|playground*)
75 ESVN_REPO_URI="${ESVN_MIRROR}/trunk/${KMNAME}" 84 ESVN_REPO_URI="${ESVN_MIRROR}/trunk/${KMNAME}"
76 ESVN_PROJECT="${KMNAME}${ESVN_PROJECT_SUFFIX}" 85 ESVN_PROJECT="${KMNAME}${ESVN_PROJECT_SUFFIX}"
77 ;; 86 ;;
78 esac 87 esac
88 fi
79 ;; 89 ;;
80esac 90esac
81 91
82# @ECLASS-VARIABLE: KMNAME 92# @ECLASS-VARIABLE: KMNAME
83# @DESCRIPTION: 93# @DESCRIPTION:
125# @ECLASS-VARIABLE: KMTARPARAMS 135# @ECLASS-VARIABLE: KMTARPARAMS
126# @DESCRIPTION: 136# @DESCRIPTION:
127# Specify extra parameters to pass to tar, in kde4-meta_src_extract. 137# Specify extra parameters to pass to tar, in kde4-meta_src_extract.
128# '-xpf -j' are passed to tar by default. 138# '-xpf -j' are passed to tar by default.
129 139
140# @FUNCTION: kde4-meta_pkg_pretend
141# @DESCRIPTION:
142# Currently only checks the gcc version.
143kde4-meta_pkg_pretend() {
144 debug-print-function ${FUNCNAME} "$@"
145
146 slot_is_at_least 4.6 ${SLOT} && ( [[ $(gcc-major-version) -lt 4 ]] || \
147 ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 3 ]] ) ) \
148 && die "Sorry, but gcc-4.3 and earlier wont work for KDE SC 4.6 (see bug 354837)."
149}
150
130# @FUNCTION: kde4-meta_pkg_setup 151# @FUNCTION: kde4-meta_pkg_setup
131# @DESCRIPTION: 152# @DESCRIPTION:
132# Currently just calls its equivalent in kde4-base.eclass(5). Use this one in 153# Currently calls its equivalent in kde4-base.eclass(5) and checks the gcc version.
133# split ebuilds. 154# Use this one in split ebuilds.
134kde4-meta_pkg_setup() { 155kde4-meta_pkg_setup() {
135 debug-print-function ${FUNCNAME} "$@" 156 debug-print-function ${FUNCNAME} "$@"
136 157
158 has pkg_pretend ${KDEMETA_EXPF} || kde4-meta_pkg_pretend
159
137 kde4-base_pkg_setup 160 kde4-base_pkg_setup
138} 161}
139 162
140# @FUNCTION: kde4-meta_src_unpack 163# @FUNCTION: kde4-meta_src_unpack
141# @DESCRIPTION: 164# @DESCRIPTION:
142# This function unpacks the source for split ebuilds. See also 165# This function unpacks the source for split ebuilds.
143# kde4-meta-src_extract. 166# Further more is processed in kde4-meta_src_extract
144kde4-meta_src_unpack() { 167kde4-meta_src_unpack() {
145 debug-print-function ${FUNCNAME} "$@" 168 debug-print-function ${FUNCNAME} "$@"
146 169
147 if [[ ${BUILD_TYPE} = live ]]; then 170 if [[ ${BUILD_TYPE} = live ]]; then
171 case "${KDE_SCM}" in
172 svn)
148 migrate_store_dir 173 migrate_store_dir
149 S="${WORKDIR}/${P}" 174 S="${WORKDIR}/${P}"
150 mkdir -p "${S}" 175 mkdir -p "${S}"
151 ESVN_RESTRICT="export" subversion_src_unpack 176 ESVN_RESTRICT="export" subversion_src_unpack
152 subversion_wc_info 177 subversion_wc_info
153 subversion_bootstrap 178 subversion_bootstrap
179 ;;
180 git)
181 git_src_unpack
182 ;;
183 esac
184 fi
154 kde4-meta_src_extract 185 kde4-meta_src_extract
155 else
156 kde4-meta_src_extract
157 fi
158} 186}
159
160# FIXME: the difference between kde4-meta_src_extract and kde4-meta_src_unpack?
161 187
162# @FUNCTION: kde4-meta_src_extract 188# @FUNCTION: kde4-meta_src_extract
163# @DESCRIPTION: 189# @DESCRIPTION:
164# A function to unpack the source for a split KDE ebuild. 190# A function to extract the source for a split KDE ebuild.
165# Also see KMMODULE, KMNOMODULE, KMEXTRA, KMCOMPILEONLY, KMEXTRACTONLY and 191# Also see KMMODULE, KMNOMODULE, KMEXTRA, KMCOMPILEONLY, KMEXTRACTONLY and
166# KMTARPARAMS. 192# KMTARPARAMS.
167kde4-meta_src_extract() { 193kde4-meta_src_extract() {
168 debug-print-function ${FUNCNAME} "$@" 194 debug-print-function ${FUNCNAME} "$@"
169 195
170 if [[ ${BUILD_TYPE} = live ]]; then 196 if [[ ${BUILD_TYPE} = live ]]; then
171 local rsync_options subdir kmnamedir targetdir
172 # Export working copy to ${S} 197 # Export working copy to ${S}
173 einfo "Exporting parts of working copy to ${S}" 198 einfo "Exporting parts of working copy to ${S}"
174 kde4-meta_create_extractlists 199 kde4-meta_create_extractlists
175 200
201 case ${KDE_SCM} in
202 svn)
203 local rsync_options subdir kmnamedir targetdir wc_path escm
204
176 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}"
177 208
178 # Copy ${KMNAME} non-recursively (toplevel files) 209 # Copy ${KMNAME} non-recursively (toplevel files)
179 rsync ${rsync_options} "${ESVN_WC_PATH}"/${kmnamedir}* "${S}" \ 210 rsync ${rsync_options} "${wc_path}"/${kmnamedir}* "${S}" \
180 || die "${ESVN}: can't export toplevel files to '${S}'." 211 || die "${escm}: can't export toplevel files to '${S}'."
181 # Copy cmake directory 212 # Copy cmake directory
182 if [[ -d "${ESVN_WC_PATH}/${kmnamedir}cmake" ]]; then 213 if [[ -d "${wc_path}/${kmnamedir}cmake" ]]; then
183 rsync --recursive ${rsync_options} "${ESVN_WC_PATH}/${kmnamedir}cmake" "${S}" \ 214 rsync --recursive ${rsync_options} "${wc_path}/${kmnamedir}cmake" "${S}" \
184 || die "${ESVN}: can't export cmake files to '${S}'." 215 || die "${escm}: can't export cmake files to '${S}'."
185 fi 216 fi
186 # Copy all subdirectories 217 # Copy all subdirectories
187 for subdir in $(__list_needed_subdirectories); do 218 for subdir in $(__list_needed_subdirectories); do
188 targetdir="" 219 targetdir=""
189 if [[ $subdir = doc/* && ! -e "$ESVN_WC_PATH/$kmnamedir$subdir" ]]; then 220 if [[ $subdir = doc/* && ! -e "$wc_path/$kmnamedir$subdir" ]]; then
190 continue 221 continue
191 fi 222 fi
192 223
193 [[ ${subdir%/} = */* ]] && targetdir=${subdir%/} && targetdir=${targetdir%/*} && mkdir -p "${S}/${targetdir}" 224 [[ ${subdir%/} = */* ]] && targetdir=${subdir%/} && targetdir=${targetdir%/*} && mkdir -p "${S}/${targetdir}"
194 rsync --recursive ${rsync_options} "${ESVN_WC_PATH}/${kmnamedir}${subdir%/}" "${S}/${targetdir}" \ 225 rsync --recursive ${rsync_options} "${wc_path}/${kmnamedir}${subdir%/}" "${S}/${targetdir}" \
195 || die "${ESVN}: can't export subdirectory '${subdir}' to '${S}/${targetdir}'." 226 || die "${escm}: can't export subdirectory '${subdir}' to '${S}/${targetdir}'."
196 done 227 done
197 228 ;;
198 if [[ ${KMNAME} = kdebase-runtime && ${PN} != kdebase-data ]]; then 229 esac
199 sed -i -e '/^install(PROGRAMS[[:space:]]*[^[:space:]]*\/kde4[[:space:]]/s/^/#DONOTINSTALL /' \
200 "${S}"/CMakeLists.txt || die "Sed to exclude bin/kde4 failed"
201 fi
202 else 230 else
203 local abort tarball tarfile f extractlist moduleprefix postfix 231 local abort tarball tarfile f extractlist moduleprefix postfix
204 case ${PV} in 232
205 4.[45].8[05] | 4.[45].9[023568])
206 # Block for normally packed upstream unstable snapshots
207 KMTARPARAMS+=" --bzip2" # bz2 233 KMTARPARAMS+=" --bzip2"
208 postfix="bz2" 234 postfix="bz2"
209 ;; 235
210 *)
211 KMTARPARAMS+=" --bzip2" # bz2
212 postfix="bz2"
213 ;;
214 esac
215 case ${KMNAME} in 236 case ${KMNAME} in
216 kdebase-apps) 237 kdebase-apps)
217 # kdebase/apps -> kdebase-apps 238 # kdebase/apps -> kdebase-apps
218 tarball="kdebase-${PV}.tar.${postfix}" 239 tarball="kdebase-${PV}.tar.${postfix}"
219 # Go one level deeper for kdebase-apps in tarballs 240 if ! slot_is_at_least 4.6 ${SLOT} || [[ ${PV} == "4.6.0" ]]; then
220 moduleprefix=apps/ 241 moduleprefix=apps/
221 KMTARPARAMS+=" --transform=s|apps/||" 242 KMTARPARAMS+=" --transform=s|apps/||"
222 ;;
223 kdepim)
224 if [[ ${PV} == 4.5.93 ]] ; then
225 tarball="kdepim-4.6beta3.tar.${postfix}"
226 else
227 tarball="${KMNAME}-${PV}.tar.${postfix}"
228 fi 243 fi
229 ;; 244 ;;
230 *) 245 *)
231 # Create tarball name from module name (this is the default) 246 # Create tarball name from module name (this is the default)
232 tarball="${KMNAME}-${PV}.tar.${postfix}" 247 tarball="${KMNAME}-${PV}.tar.${postfix}"
250 extractlist+=" ${topdir}${moduleprefix}${f}" 265 extractlist+=" ${topdir}${moduleprefix}${f}"
251 done 266 done
252 extractlist+=" $(__list_needed_subdirectories)" 267 extractlist+=" $(__list_needed_subdirectories)"
253 268
254 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
255 [[ -n ${KDE4_STRICTER} ]] && echo tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} 275 [[ -n ${KDE4_STRICTER} ]] && echo 'tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist}'
256 if [[ ${I_KNOW_WHAT_I_AM_DOING} ]]; then 276 if [[ ${I_KNOW_WHAT_I_AM_DOING} ]]; then
257 # to make the devs happy - bug 338397 277 # to make the devs happy - bug 338397
258 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"
259 else 279 else
260 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"
270 # We need to clear it here to make verification below work 290 # We need to clear it here to make verification below work
271 unset moduleprefix 291 unset moduleprefix
272 292
273 if [[ -n ${KDE4_STRICTER} ]]; then 293 if [[ -n ${KDE4_STRICTER} ]]; then
274 for f in $(__list_needed_subdirectories fatal); do 294 for f in $(__list_needed_subdirectories fatal); do
275 if [[ ! -e "${S}/${f#*/}" ]]; then 295 if [[ ! -e ${S}/${f#*/} ]]; then
276 eerror "'${f#*/}' is missing" 296 eerror "'${f#*/}' is missing"
277 abort=true 297 abort=true
278 fi 298 fi
279 done 299 done
280 [[ -n ${abort} ]] && die "There were missing files." 300 [[ -n ${abort} ]] && die "There were missing files."
301 KMEXTRA_NONFATAL+=" 321 KMEXTRA_NONFATAL+="
302 doc/${KMMODULE##*/}" 322 doc/${KMMODULE##*/}"
303 fi 323 fi
304 324
305 # Add default handbook locations 325 # Add default handbook locations
306 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
307 KMEXTRA_NONFATAL+=" doc/${KMMODULE##*/}" 327 KMEXTRA_NONFATAL+=" doc/${KMMODULE##*/}"
308 fi 328 fi
309 329
310 # Add some CMake-files to KMEXTRACTONLY. 330 # Add some CMake-files to KMEXTRACTONLY.
311 # Note that this actually doesn't include KMEXTRA handling. 331 # Note that this actually doesn't include KMEXTRA handling.
312 # 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
313 case ${KMNAME} in 333 case ${KMNAME} in
314 kdebase) 334 kdebase)
335 if ! slot_is_at_least 4.6 ${SLOT} || [[ ${PV} == "4.6.0" ]]; then
315 KMEXTRACTONLY+=" 336 KMEXTRACTONLY+="
316 apps/config-apps.h.cmake 337 apps/config-apps.h.cmake
317 apps/ConfigureChecks.cmake" 338 apps/ConfigureChecks.cmake"
339 else
340 KMEXTRACTONLY+="
341 config-apps.h.cmake
342 ConfigureChecks.cmake"
343 fi
318 ;; 344 ;;
319 kdebase-apps) 345 kdebase-apps)
320 KMEXTRACTONLY+=" 346 KMEXTRACTONLY+="
321 config-apps.h.cmake 347 config-apps.h.cmake
322 ConfigureChecks.cmake" 348 ConfigureChecks.cmake"
369 koffice) 395 koffice)
370 KMEXTRACTONLY+=" 396 KMEXTRACTONLY+="
371 filters/config-filters.h.cmake 397 filters/config-filters.h.cmake
372 " 398 "
373 case ${PV} in 399 case ${PV} in
374 2.0.*)
375 KMEXTRACTONLY+="
376 config-openctl.h.cmake
377 config-endian.h.cmake
378 config-openexr.h.cmake
379 config-opengl.h.cmake
380 config-prefix.h.cmake"
381 ;;
382 2.[12].*) 400 2.[12].*)
383 KMEXTRACTONLY+=" 401 KMEXTRACTONLY+="
384 config-endian.h.cmake 402 config-endian.h.cmake
385 config-openexr.h.cmake 403 config-openexr.h.cmake
386 config-opengl.h.cmake 404 config-opengl.h.cmake
388 ;; 406 ;;
389 esac 407 esac
390 ;; 408 ;;
391 esac 409 esac
392 # 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
393 case ${KMNAME} in 414 case ${KMNAME} in
394 kdebase-runtime|kdebase-workspace|kdeedu|kdegames|kdegraphics) 415 kdebase-runtime|kdebase-workspace|kdeedu|kdegames|kdegraphics)
395 case ${PN} in 416 case ${PN} in
396 libkdegames|libkdeedu|libkworkspace) 417 libkdegames|libkdeedu|libkworkspace)
397 KMEXTRA+=" 418 KMEXTRA+="
398 cmake/modules/" 419 cmake/modules/"
399 ;; 420 ;;
400 *) 421 *)
401 KMCOMPILEONLY+=" 422 KMCOMPILEONLY+="
402 cmake/modules/" 423 cmake/modules/"
403 ;; 424 ;;
404 esac 425 esac
405 ;; 426 ;;
406 esac 427 esac
428 fi
407 429
408 debug-print "line ${LINENO} ${ECLASS} ${FUNCNAME}: KMEXTRACTONLY ${KMEXTRACTONLY}" 430 debug-print "line ${LINENO} ${ECLASS} ${FUNCNAME}: KMEXTRACTONLY ${KMEXTRACTONLY}"
409} 431}
410 432
411__list_needed_subdirectories() { 433__list_needed_subdirectories() {
466 488
467 kde4-meta_change_cmakelists 489 kde4-meta_change_cmakelists
468 kde4-base_src_prepare 490 kde4-base_src_prepare
469} 491}
470 492
471# 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.
472_change_cmakelists_parent_dirs() { 497_change_cmakelists_parent_dirs() {
473 debug-print-function ${FUNCNAME} "$@" 498 debug-print-function ${FUNCNAME} "$@"
474 499
475 local _olddir _dir 500 local _olddir _dir
476 _dir="${S}"/${1} 501 _dir="${S}"/${1}
477 until [[ ${_dir} == "${S}" ]]; do 502 until [[ ${_dir} == ${S} ]]; do
478 _olddir=$(basename "${_dir}") 503 _olddir=$(basename "${_dir}")
479 _dir=$(dirname "${_dir}") 504 _dir=$(dirname "${_dir}")
480 debug-print "${LINENO}: processing ${_dir} CMakeLists.txt searching for ${_olddir}" 505 debug-print "${LINENO}: processing ${_dir} CMakeLists.txt searching for ${_olddir}"
481 if [[ -f ${_dir}/CMakeLists.txt ]]; then 506 if [[ -f ${_dir}/CMakeLists.txt ]]; then
482 sed -e "/add_subdirectory[[:space:]]*([[:space:]]*${_olddir}[[:space:]]*)/s/#DONOTCOMPILE //g" \ 507 sed -e "/add_subdirectory[[:space:]]*([[:space:]]*${_olddir}[[:space:]]*)/s/#DONOTCOMPILE //g" \
622 sed -e '/install(.*FindKOfficeLibs.cmake/,/)/ d' \ 647 sed -e '/install(.*FindKOfficeLibs.cmake/,/)/ d' \
623 -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"
624 sed -e '/install(.\+config-openexr\.h.\+)/d' \ 649 sed -e '/install(.\+config-openexr\.h.\+)/d' \
625 -i CMakeLists.txt || die "${LINENO}: sed died in collision prevention section" 650 -i CMakeLists.txt || die "${LINENO}: sed died in collision prevention section"
626 fi 651 fi
627 # koffice 2.0
628 case ${PV} in
629 2.0.[1-9])
630 sed -i -n -e '1h;1!H;${g;s/install(.\+config-openexr.h.\+)//;p}' \
631 "${S}"/CMakeLists.txt || \
632 die "${LINENO}: sed died in collision prevention section"
633 ;;
634 *) ;;
635 esac
636 # koffice 2.1.[8-9][0-9] and 9999
637 case ${PV} in
638 2.1.8[0-9]|2.1.9[0-9]|9999)
639 sed -e '/^option(BUILD/s/ON/OFF/' \
640 -e '/^if(NOT BUILD_kchart/,/^endif(NOT BUILD_kchart/d' \
641 -e '/^if(BUILD_koreport/,/^endif(BUILD_koreport/d' \
642 -e 's/set(SHOULD_BUILD_F_OFFICE TRUE)/set(SHOULD_BUILD_F_OFFICE FALSE)/' \
643 -i "${S}"/CMakeLists.txt || die "sed died while fixing cmakelists"
644 if [[ ${PN} != koffice-data ]] && [[ ${PV} == 9999 ]]; then
645 sed -e '/config-opengl.h/d' \
646 -i "${S}"/CMakeLists.txt || die "sed died while fixing cmakelists"
647
648 fi
649 ;;
650 *) ;;
651 esac
652 esac 652 esac
653 653
654 popd > /dev/null 654 popd > /dev/null
655} 655}
656 656
676 -DWITH_Boost=OFF 676 -DWITH_Boost=OFF
677 -DWITH_LibTidy=OFF 677 -DWITH_LibTidy=OFF
678 "${mycmakeargs[@]}" 678 "${mycmakeargs[@]}"
679 ) 679 )
680 ;; 680 ;;
681 koffice)
682 case ${PV} in
683 2.1.8[0-9]|2.1.9[0-9]|9999)
684 if [[ ${PN} != "kchart" ]]; then
685 mycmakeargs=(
686 -DBUILD_koreport=OFF
687 "${mycmakeargs[@]}"
688 )
689 fi
690 ;;
691 esac
692 ;;
693 esac 681 esac
694 682
695 kde4-base_src_configure 683 kde4-base_src_configure
696} 684}
697 685
732 done 720 done
733 721
734 kde4-base_src_install 722 kde4-base_src_install
735} 723}
736 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
737# @FUNCTION: kde4-meta_pkg_postinst 734# @FUNCTION: kde4-meta_pkg_postinst
738# @DESCRIPTION: 735# @DESCRIPTION:
739# Invoke kbuildsycoca4. 736# Invoke kbuildsycoca4.
740kde4-meta_pkg_postinst() { 737kde4-meta_pkg_postinst() {
741 debug-print-function ${FUNCNAME} "$@" 738 debug-print-function ${FUNCNAME} "$@"

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

  ViewVC Help
Powered by ViewVC 1.1.20