/[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.43 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.43 2010/09/15 11:06:33 reavertm 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/||"
243 fi
222 ;; 244 ;;
223 *) 245 *)
224 # Create tarball name from module name (this is the default) 246 # Create tarball name from module name (this is the default)
225 tarball="${KMNAME}-${PV}.tar.${postfix}" 247 tarball="${KMNAME}-${PV}.tar.${postfix}"
226 ;; 248 ;;
243 extractlist+=" ${topdir}${moduleprefix}${f}" 265 extractlist+=" ${topdir}${moduleprefix}${f}"
244 done 266 done
245 extractlist+=" $(__list_needed_subdirectories)" 267 extractlist+=" $(__list_needed_subdirectories)"
246 268
247 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
248 [[ -n ${KDE4_STRICTER} ]] && echo tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} >&2 275 [[ -n ${KDE4_STRICTER} ]] && echo 'tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist}'
249 tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} 2> /dev/null 276 if [[ ${I_KNOW_WHAT_I_AM_DOING} ]]; then
277 # to make the devs happy - bug 338397
278 tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} || ewarn "tar extract command failed at least partially - continuing anyway"
279 else
280 tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} 2> /dev/null || echo "tar extract command failed at least partially - continuing anyway"
281 fi
250 282
251 # Default $S is based on $P; rename the extracted directory to match $S if necessary 283 # Default $S is based on $P; rename the extracted directory to match $S if necessary
252 mv ${topdir} ${P} || die "Died while moving \"${topdir}\" to \"${P}\"" 284 mv ${topdir} ${P} || die "Died while moving \"${topdir}\" to \"${P}\""
253 285
254 popd > /dev/null 286 popd > /dev/null
258 # We need to clear it here to make verification below work 290 # We need to clear it here to make verification below work
259 unset moduleprefix 291 unset moduleprefix
260 292
261 if [[ -n ${KDE4_STRICTER} ]]; then 293 if [[ -n ${KDE4_STRICTER} ]]; then
262 for f in $(__list_needed_subdirectories fatal); do 294 for f in $(__list_needed_subdirectories fatal); do
263 if [[ ! -e "${S}/${f#*/}" ]]; then 295 if [[ ! -e ${S}/${f#*/} ]]; then
264 eerror "'${f#*/}' is missing" 296 eerror "'${f#*/}' is missing"
265 abort=true 297 abort=true
266 fi 298 fi
267 done 299 done
268 [[ -n ${abort} ]] && die "There were missing files." 300 [[ -n ${abort} ]] && die "There were missing files."
289 KMEXTRA_NONFATAL+=" 321 KMEXTRA_NONFATAL+="
290 doc/${KMMODULE##*/}" 322 doc/${KMMODULE##*/}"
291 fi 323 fi
292 324
293 # Add default handbook locations 325 # Add default handbook locations
294 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
295 KMEXTRA_NONFATAL+=" doc/${KMMODULE##*/}" 327 KMEXTRA_NONFATAL+=" doc/${KMMODULE##*/}"
296 fi 328 fi
297 329
298 # Add some CMake-files to KMEXTRACTONLY. 330 # Add some CMake-files to KMEXTRACTONLY.
299 # Note that this actually doesn't include KMEXTRA handling. 331 # Note that this actually doesn't include KMEXTRA handling.
300 # 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
301 case ${KMNAME} in 333 case ${KMNAME} in
302 kdebase) 334 kdebase)
335 if ! slot_is_at_least 4.6 ${SLOT} || [[ ${PV} == "4.6.0" ]]; then
303 KMEXTRACTONLY+=" 336 KMEXTRACTONLY+="
304 apps/config-apps.h.cmake 337 apps/config-apps.h.cmake
305 apps/ConfigureChecks.cmake" 338 apps/ConfigureChecks.cmake"
339 else
340 KMEXTRACTONLY+="
341 config-apps.h.cmake
342 ConfigureChecks.cmake"
343 fi
306 ;; 344 ;;
307 kdebase-apps) 345 kdebase-apps)
308 KMEXTRACTONLY+=" 346 KMEXTRACTONLY+="
309 config-apps.h.cmake 347 config-apps.h.cmake
310 ConfigureChecks.cmake" 348 ConfigureChecks.cmake"
354 KMEXTRACTONLY+=" 392 KMEXTRACTONLY+="
355 kdeutils-version.h" 393 kdeutils-version.h"
356 ;; 394 ;;
357 koffice) 395 koffice)
358 KMEXTRACTONLY+=" 396 KMEXTRACTONLY+="
359 config-endian.h.cmake
360 filters/config-filters.h.cmake 397 filters/config-filters.h.cmake
361 config-openexr.h.cmake
362 config-opengl.h.cmake
363 config-prefix.h.cmake
364 " 398 "
365 case ${PV} in 399 case ${PV} in
366 2.0.*) 400 2.[12].*)
367 KMEXTRACTONLY+=" 401 KMEXTRACTONLY+="
402 config-endian.h.cmake
403 config-openexr.h.cmake
368 config-openctl.h.cmake" 404 config-opengl.h.cmake
405 config-prefix.h.cmake"
369 ;; 406 ;;
370 esac 407 esac
371 ;; 408 ;;
372 esac 409 esac
373 # 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
374 case ${KMNAME} in 414 case ${KMNAME} in
375 kdebase-runtime|kdebase-workspace|kdeedu|kdegames|kdegraphics) 415 kdebase-runtime|kdebase-workspace|kdeedu|kdegames|kdegraphics)
376 case ${PN} in 416 case ${PN} in
377 libkdegames|libkdeedu|libkworkspace) 417 libkdegames|libkdeedu|libkworkspace)
378 KMEXTRA+=" 418 KMEXTRA+="
379 cmake/modules/" 419 cmake/modules/"
380 ;; 420 ;;
381 *) 421 *)
382 KMCOMPILEONLY+=" 422 KMCOMPILEONLY+="
383 cmake/modules/" 423 cmake/modules/"
384 ;; 424 ;;
385 esac 425 esac
386 ;; 426 ;;
387 esac 427 esac
428 fi
388 429
389 debug-print "line ${LINENO} ${ECLASS} ${FUNCNAME}: KMEXTRACTONLY ${KMEXTRACTONLY}" 430 debug-print "line ${LINENO} ${ECLASS} ${FUNCNAME}: KMEXTRACTONLY ${KMEXTRACTONLY}"
390} 431}
391 432
392__list_needed_subdirectories() { 433__list_needed_subdirectories() {
447 488
448 kde4-meta_change_cmakelists 489 kde4-meta_change_cmakelists
449 kde4-base_src_prepare 490 kde4-base_src_prepare
450} 491}
451 492
452# 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.
453_change_cmakelists_parent_dirs() { 497_change_cmakelists_parent_dirs() {
454 debug-print-function ${FUNCNAME} "$@" 498 debug-print-function ${FUNCNAME} "$@"
455 499
456 local _olddir _dir 500 local _olddir _dir
457 _dir="${S}"/${1} 501 _dir="${S}"/${1}
458 until [[ ${_dir} == "${S}" ]]; do 502 until [[ ${_dir} == ${S} ]]; do
459 _olddir=$(basename "${_dir}") 503 _olddir=$(basename "${_dir}")
460 _dir=$(dirname "${_dir}") 504 _dir=$(dirname "${_dir}")
461 debug-print "${LINENO}: processing ${_dir} CMakeLists.txt searching for ${_olddir}" 505 debug-print "${LINENO}: processing ${_dir} CMakeLists.txt searching for ${_olddir}"
462 if [[ -f ${_dir}/CMakeLists.txt ]]; then 506 if [[ -f ${_dir}/CMakeLists.txt ]]; then
463 sed -e "/add_subdirectory[[:space:]]*([[:space:]]*${_olddir}[[:space:]]*)/s/#DONOTCOMPILE //g" \ 507 sed -e "/add_subdirectory[[:space:]]*([[:space:]]*${_olddir}[[:space:]]*)/s/#DONOTCOMPILE //g" \
603 sed -e '/install(.*FindKOfficeLibs.cmake/,/)/ d' \ 647 sed -e '/install(.*FindKOfficeLibs.cmake/,/)/ d' \
604 -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"
605 sed -e '/install(.\+config-openexr\.h.\+)/d' \ 649 sed -e '/install(.\+config-openexr\.h.\+)/d' \
606 -i CMakeLists.txt || die "${LINENO}: sed died in collision prevention section" 650 -i CMakeLists.txt || die "${LINENO}: sed died in collision prevention section"
607 fi 651 fi
608 # koffice 2.0
609 case ${PV} in
610 2.0.[1-9])
611 sed -i -n -e '1h;1!H;${g;s/install(.\+config-openexr.h.\+)//;p}' \
612 "${S}"/CMakeLists.txt || \
613 die "${LINENO}: sed died in collision prevention section"
614 ;;
615 *) ;;
616 esac
617 # koffice 2.1.[8-9][0-9] and 9999
618 case ${PV} in
619 2.1.8[0-9]|2.1.9[0-9]|9999)
620 sed -e '/^option(BUILD/s/ON/OFF/' \
621 -e '/^if(NOT BUILD_kchart/,/^endif(NOT BUILD_kchart/d' \
622 -e '/^if(BUILD_koreport/,/^endif(BUILD_koreport/d' \
623 -e 's/set(SHOULD_BUILD_F_OFFICE TRUE)/set(SHOULD_BUILD_F_OFFICE FALSE)/' \
624 -i "${S}"/CMakeLists.txt || die "sed died while fixing cmakelists"
625 if [[ ${PN} != koffice-data ]] && [[ ${PV} == 9999 ]]; then
626 sed -e '/config-opengl.h/d' \
627 -i "${S}"/CMakeLists.txt || die "sed died while fixing cmakelists"
628
629 fi
630 ;;
631 *) ;;
632 esac
633 esac 652 esac
634 653
635 popd > /dev/null 654 popd > /dev/null
636} 655}
637 656
657 -DWITH_Boost=OFF 676 -DWITH_Boost=OFF
658 -DWITH_LibTidy=OFF 677 -DWITH_LibTidy=OFF
659 "${mycmakeargs[@]}" 678 "${mycmakeargs[@]}"
660 ) 679 )
661 ;; 680 ;;
662 koffice)
663 case ${PV} in
664 2.1.8[0-9]|2.1.9[0-9]|9999)
665 if [[ ${PN} != "kchart" ]]; then
666 mycmakeargs=(
667 -DBUILD_koreport=OFF
668 "${mycmakeargs[@]}"
669 )
670 fi
671 ;;
672 esac
673 ;;
674 esac 681 esac
675 682
676 kde4-base_src_configure 683 kde4-base_src_configure
677} 684}
678 685
713 done 720 done
714 721
715 kde4-base_src_install 722 kde4-base_src_install
716} 723}
717 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
718# @FUNCTION: kde4-meta_pkg_postinst 734# @FUNCTION: kde4-meta_pkg_postinst
719# @DESCRIPTION: 735# @DESCRIPTION:
720# Invoke kbuildsycoca4. 736# Invoke kbuildsycoca4.
721kde4-meta_pkg_postinst() { 737kde4-meta_pkg_postinst() {
722 debug-print-function ${FUNCNAME} "$@" 738 debug-print-function ${FUNCNAME} "$@"

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

  ViewVC Help
Powered by ViewVC 1.1.20