| 1 | # Copyright 1999-2011 Gentoo Foundation |
1 | # Copyright 1999-2012 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.54 2011/06/07 20:11:04 abcd Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.65 2012/08/01 19:38:52 johu 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. |
| … | |
… | |
| 67 | |
67 | |
| 68 | debug-print "line ${LINENO} ${ECLASS}: DEPEND ${DEPEND} - after metapackage-specific dependencies" |
68 | debug-print "line ${LINENO} ${ECLASS}: DEPEND ${DEPEND} - after metapackage-specific dependencies" |
| 69 | debug-print "line ${LINENO} ${ECLASS}: RDEPEND ${RDEPEND} - after metapackage-specific dependencies" |
69 | debug-print "line ${LINENO} ${ECLASS}: RDEPEND ${RDEPEND} - after metapackage-specific dependencies" |
| 70 | |
70 | |
| 71 | # Useful to build kde4-meta style stuff from extragear/playground (plasmoids etc) |
71 | # Useful to build kde4-meta style stuff from extragear/playground (plasmoids etc) |
| 72 | case ${BUILD_TYPE} in |
72 | case ${KDE_BUILD_TYPE} in |
| 73 | live) |
73 | live) |
| 74 | if [[ ${KDE_SCM} == svn ]]; then |
74 | if [[ ${KDE_SCM} == svn ]]; then |
| 75 | case ${KMNAME} in |
75 | case ${KMNAME} in |
| 76 | extragear*|playground*) |
76 | extragear*|playground*) |
| 77 | ESVN_REPO_URI="${ESVN_MIRROR}/trunk/${KMNAME}" |
77 | ESVN_REPO_URI="${ESVN_MIRROR}/trunk/${KMNAME}" |
| … | |
… | |
| 145 | # This function unpacks the source for split ebuilds. |
145 | # This function unpacks the source for split ebuilds. |
| 146 | # Further more is processed in kde4-meta_src_extract |
146 | # Further more is processed in kde4-meta_src_extract |
| 147 | kde4-meta_src_unpack() { |
147 | kde4-meta_src_unpack() { |
| 148 | debug-print-function ${FUNCNAME} "$@" |
148 | debug-print-function ${FUNCNAME} "$@" |
| 149 | |
149 | |
| 150 | if [[ ${BUILD_TYPE} = live ]]; then |
150 | if [[ ${KDE_BUILD_TYPE} = live ]]; then |
| 151 | case "${KDE_SCM}" in |
151 | case "${KDE_SCM}" in |
| 152 | svn) |
152 | svn) |
| 153 | migrate_store_dir |
153 | migrate_store_dir |
| 154 | S="${WORKDIR}/${P}" |
154 | S="${WORKDIR}/${P}" |
| 155 | mkdir -p "${S}" |
155 | mkdir -p "${S}" |
| … | |
… | |
| 171 | # Also see KMMODULE, KMNOMODULE, KMEXTRA, KMCOMPILEONLY, KMEXTRACTONLY and |
171 | # Also see KMMODULE, KMNOMODULE, KMEXTRA, KMCOMPILEONLY, KMEXTRACTONLY and |
| 172 | # KMTARPARAMS. |
172 | # KMTARPARAMS. |
| 173 | kde4-meta_src_extract() { |
173 | kde4-meta_src_extract() { |
| 174 | debug-print-function ${FUNCNAME} "$@" |
174 | debug-print-function ${FUNCNAME} "$@" |
| 175 | |
175 | |
| 176 | if [[ ${BUILD_TYPE} = live ]]; then |
176 | if [[ ${KDE_BUILD_TYPE} = live ]]; then |
| 177 | # Export working copy to ${S} |
177 | # Export working copy to ${S} |
| 178 | einfo "Exporting parts of working copy to ${S}" |
178 | einfo "Exporting parts of working copy to ${S}" |
| 179 | kde4-meta_create_extractlists |
179 | kde4-meta_create_extractlists |
| 180 | |
180 | |
| 181 | case ${KDE_SCM} in |
181 | case ${KDE_SCM} in |
| 182 | svn) |
182 | svn) |
| 183 | local rsync_options subdir kmnamedir targetdir wc_path escm |
183 | local rsync_options subdir targetdir wc_path escm |
| 184 | |
184 | |
| 185 | rsync_options="--group --links --owner --perms --quiet --exclude=.svn/ --exclude=.git/" |
185 | rsync_options="--group --links --owner --perms --quiet --exclude=.svn/ --exclude=.git/" |
| 186 | wc_path="${ESVN_WC_PATH}" |
186 | wc_path="${ESVN_WC_PATH}" |
| 187 | escm="{ESVN}" |
187 | escm="{ESVN}" |
| 188 | |
188 | |
| 189 | # Copy ${KMNAME} non-recursively (toplevel files) |
189 | # Copy ${KMNAME} non-recursively (toplevel files) |
| 190 | rsync ${rsync_options} "${wc_path}"/${kmnamedir}* "${S}" \ |
190 | rsync ${rsync_options} "${wc_path}"/* "${S}" \ |
| 191 | || die "${escm}: can't export toplevel files to '${S}'." |
191 | || die "${escm}: can't export toplevel files to '${S}'." |
| 192 | # Copy cmake directory |
192 | # Copy cmake directory |
| 193 | if [[ -d "${wc_path}/${kmnamedir}cmake" ]]; then |
193 | if [[ -d "${wc_path}/cmake" ]]; then |
| 194 | rsync --recursive ${rsync_options} "${wc_path}/${kmnamedir}cmake" "${S}" \ |
194 | rsync --recursive ${rsync_options} "${wc_path}/cmake" "${S}" \ |
| 195 | || die "${escm}: can't export cmake files to '${S}'." |
195 | || die "${escm}: can't export cmake files to '${S}'." |
| 196 | fi |
196 | fi |
| 197 | # Copy all subdirectories |
197 | # Copy all subdirectories |
| 198 | for subdir in $(__list_needed_subdirectories); do |
198 | for subdir in $(__list_needed_subdirectories); do |
| 199 | targetdir="" |
199 | targetdir="" |
| 200 | if [[ $subdir = doc/* && ! -e "$wc_path/$kmnamedir$subdir" ]]; then |
200 | if [[ $subdir = doc/* && ! -e "$wc_path/$subdir" ]]; then |
| 201 | continue |
201 | continue |
| 202 | fi |
202 | fi |
| 203 | |
203 | |
| 204 | [[ ${subdir%/} = */* ]] && targetdir=${subdir%/} && targetdir=${targetdir%/*} && mkdir -p "${S}/${targetdir}" |
204 | [[ ${subdir%/} = */* ]] && targetdir=${subdir%/} && targetdir=${targetdir%/*} && mkdir -p "${S}/${targetdir}" |
| 205 | rsync --recursive ${rsync_options} "${wc_path}/${kmnamedir}${subdir%/}" "${S}/${targetdir}" \ |
205 | rsync --recursive ${rsync_options} "${wc_path}/${subdir%/}" "${S}/${targetdir}" \ |
| 206 | || die "${escm}: can't export subdirectory '${subdir}' to '${S}/${targetdir}'." |
206 | || die "${escm}: can't export subdirectory '${subdir}' to '${S}/${targetdir}'." |
| 207 | done |
207 | done |
| 208 | ;; |
208 | ;; |
| 209 | esac |
209 | esac |
| 210 | else |
210 | else |
| 211 | local abort tarball tarfile f extractlist postfix |
211 | local abort tarball tarfile f extractlist postfix |
| 212 | |
212 | |
|
|
213 | if [[ ${PV} =~ 4.7.[12345] ]]; then |
|
|
214 | postfix="bz2" |
| 213 | KMTARPARAMS+=" --bzip2" |
215 | KMTARPARAMS+=" --bzip2" |
|
|
216 | else |
| 214 | postfix="bz2" |
217 | postfix="xz" |
|
|
218 | KMTARPARAMS+=" --xz" |
|
|
219 | fi |
| 215 | |
220 | |
| 216 | case ${KMNAME} in |
221 | case ${KMNAME} in |
| 217 | kdebase-apps) |
222 | kdebase-apps) |
| 218 | # kdebase/apps -> kdebase-apps |
223 | # kdebase/apps -> kdebase-apps |
| 219 | tarball="kdebase-${PV}.tar.${postfix}" |
224 | tarball="kdebase-${PV}.tar.${postfix}" |
| … | |
… | |
| 246 | # @ECLASS-VARIABLE: KDE4_STRICTER |
251 | # @ECLASS-VARIABLE: KDE4_STRICTER |
| 247 | # @DESCRIPTION: |
252 | # @DESCRIPTION: |
| 248 | # Print out all issues found executing tar / kmextract files |
253 | # Print out all issues found executing tar / kmextract files |
| 249 | # Set on if you want to find issues in kde-base ebuild unpack sequences |
254 | # Set on if you want to find issues in kde-base ebuild unpack sequences |
| 250 | [[ -n ${KDE4_STRICTER} ]] && echo 'tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist}' |
255 | [[ -n ${KDE4_STRICTER} ]] && echo 'tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist}' |
| 251 | if [[ ${I_KNOW_WHAT_I_AM_DOING} ]]; then |
|
|
| 252 | # to make the devs happy - bug 338397 |
|
|
| 253 | tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} || ewarn "tar extract command failed at least partially - continuing anyway" |
|
|
| 254 | else |
|
|
| 255 | tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} 2> /dev/null || echo "tar extract command failed at least partially - continuing anyway" |
256 | tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} 2> /dev/null || echo "tar extract command failed at least partially - continuing anyway" |
| 256 | fi |
|
|
| 257 | |
257 | |
| 258 | # Default $S is based on $P; rename the extracted directory to match $S if necessary |
258 | # Default $S is based on $P; rename the extracted directory to match $S if necessary |
| 259 | if [[ ${KMNAME} != ${PN} ]]; then |
259 | if [[ ${KMNAME} != ${PN} ]]; then |
| 260 | mv ${topdir} ${P} || die "Died while moving \"${topdir}\" to \"${P}\"" |
260 | mv ${topdir} ${P} || die "Died while moving \"${topdir}\" to \"${P}\"" |
| 261 | fi |
261 | fi |
| … | |
… | |
| 287 | kde4-meta_create_extractlists() { |
287 | kde4-meta_create_extractlists() { |
| 288 | debug-print-function ${FUNCNAME} "$@" |
288 | debug-print-function ${FUNCNAME} "$@" |
| 289 | |
289 | |
| 290 | # Add default handbook locations |
290 | # Add default handbook locations |
| 291 | # FIXME - legacy code - remove when 4.4.5 is gone or preferrably port 4.4.5. |
291 | # FIXME - legacy code - remove when 4.4.5 is gone or preferrably port 4.4.5. |
| 292 | if [[ $(get_kde_version) < 4.5 ]] && has handbook ${IUSE//+} && use handbook && [[ -z ${KMNOMODULE} ]]; then |
292 | if [[ $(get_kde_version) < 4.5 ]] && use_if_iuse handbook && [[ -z ${KMNOMODULE} ]]; then |
| 293 | # We use the basename of $KMMODULE because $KMMODULE can contain |
293 | # We use the basename of $KMMODULE because $KMMODULE can contain |
| 294 | # the path to the module subdirectory. |
294 | # the path to the module subdirectory. |
| 295 | KMEXTRA_NONFATAL+=" |
295 | KMEXTRA_NONFATAL+=" |
| 296 | doc/${KMMODULE##*/}" |
296 | doc/${KMMODULE##*/}" |
| 297 | fi |
297 | fi |
| … | |
… | |
| 303 | |
303 | |
| 304 | # Add some CMake-files to KMEXTRACTONLY. |
304 | # Add some CMake-files to KMEXTRACTONLY. |
| 305 | # Note that this actually doesn't include KMEXTRA handling. |
305 | # Note that this actually doesn't include KMEXTRA handling. |
| 306 | # In those cases you should care to add the relevant files to KMEXTRACTONLY |
306 | # In those cases you should care to add the relevant files to KMEXTRACTONLY |
| 307 | case ${KMNAME} in |
307 | case ${KMNAME} in |
| 308 | kdebase | kdebase-apps | kde-base-apps) |
308 | kdebase | kdebase-apps | kde-baseapps) |
| 309 | KMEXTRACTONLY+=" |
309 | KMEXTRACTONLY+=" |
| 310 | config-apps.h.cmake |
310 | config-apps.h.cmake |
| 311 | ConfigureChecks.cmake" |
311 | ConfigureChecks.cmake" |
| 312 | ;; |
312 | ;; |
| 313 | kdebase-runtime | kde-runtime) |
313 | kdebase-runtime | kde-runtime) |
| 314 | KMEXTRACTONLY+=" |
314 | KMEXTRACTONLY+=" |
|
|
315 | CTestConfig.cmake |
| 315 | config-runtime.h.cmake" |
316 | config-runtime.h.cmake" |
| 316 | ;; |
317 | ;; |
| 317 | kdebase-workspace | kde-workspace) |
318 | kdebase-workspace | kde-workspace) |
| 318 | KMEXTRACTONLY+=" |
319 | KMEXTRACTONLY+=" |
| 319 | config-unix.h.cmake |
320 | config-unix.h.cmake |
| … | |
… | |
| 344 | kdepim-version.h.cmake" |
345 | kdepim-version.h.cmake" |
| 345 | else |
346 | else |
| 346 | KMEXTRACTONLY+=" |
347 | KMEXTRACTONLY+=" |
| 347 | kdepim-version.h" |
348 | kdepim-version.h" |
| 348 | fi |
349 | fi |
| 349 | if has kontact ${IUSE//+} && use kontact; then |
350 | if use_if_iuse kontact; then |
| 350 | KMEXTRA+=" |
351 | KMEXTRA+=" |
| 351 | kontact/plugins/${PLUGINNAME:-${PN}}/" |
352 | kontact/plugins/${PLUGINNAME:-${PN}}/" |
| 352 | fi |
353 | fi |
| 353 | ;; |
354 | ;; |
| 354 | kdeutils) |
355 | kdeutils) |
| … | |
… | |
| 375 | # should not try in that case |
376 | # should not try in that case |
| 376 | # note2: kdeedu 4.6.4 does not have a cmake/modules/ subdir anymore :( |
377 | # note2: kdeedu 4.6.4 does not have a cmake/modules/ subdir anymore :( |
| 377 | # it may be possible to formulate this shorter, but it should also |
378 | # it may be possible to formulate this shorter, but it should also |
| 378 | # still be understandable... |
379 | # still be understandable... |
| 379 | if [[ ${KMNAME} != kdegraphics || ( ( $(get_kde_version) != 4.6 || ${PV} < 4.6.2 ) && $(get_kde_version) < 4.7 ) ]] \ |
380 | if [[ ${KMNAME} != kdegraphics || ( ( $(get_kde_version) != 4.6 || ${PV} < 4.6.2 ) && $(get_kde_version) < 4.7 ) ]] \ |
| 380 | && ! [[ ${KMNAME} == kdeedu && ${PV} == 4.6.4 ]]; then |
381 | && ! [[ ${KMNAME} == kdeedu && ( ${PV} == 4.6.4 || ${PV} == 4.6.5 ) ]]; then |
| 381 | case ${KMNAME} in |
382 | case ${KMNAME} in |
| 382 | kdebase-runtime|kde-runtime|kdebase-workspace|kde-workspace|kdeedu|kdegames|kdegraphics) |
383 | kdebase-runtime|kde-runtime|kdebase-workspace|kde-workspace|kdeedu|kdegames|kdegraphics) |
| 383 | case ${PN} in |
|
|
| 384 | libkdegames|libkdeedu|libkworkspace) |
|
|
| 385 | KMEXTRA+=" |
384 | KMEXTRACTONLY+=" |
| 386 | cmake/modules/" |
385 | cmake/modules/" |
| 387 | ;; |
|
|
| 388 | *) |
|
|
| 389 | KMCOMPILEONLY+=" |
|
|
| 390 | cmake/modules/" |
|
|
| 391 | ;; |
|
|
| 392 | esac |
|
|
| 393 | ;; |
386 | ;; |
| 394 | esac |
387 | esac |
| 395 | fi |
388 | fi |
| 396 | |
389 | |
| 397 | debug-print "line ${LINENO} ${ECLASS} ${FUNCNAME}: KMEXTRACTONLY ${KMEXTRACTONLY}" |
390 | debug-print "line ${LINENO} ${ECLASS} ${FUNCNAME}: KMEXTRACTONLY ${KMEXTRACTONLY}" |
| … | |
… | |
| 490 | |
483 | |
| 491 | # Restore "add_subdirectory( cmake )" in ${S}/CMakeLists.txt |
484 | # Restore "add_subdirectory( cmake )" in ${S}/CMakeLists.txt |
| 492 | if [[ -f CMakeLists.txt ]]; then |
485 | if [[ -f CMakeLists.txt ]]; then |
| 493 | sed -e '/add_subdirectory[[:space:]]*([[:space:]]*cmake[[:space:]]*)/s/^#DONOTCOMPILE //' \ |
486 | sed -e '/add_subdirectory[[:space:]]*([[:space:]]*cmake[[:space:]]*)/s/^#DONOTCOMPILE //' \ |
| 494 | -e '/ADD_SUBDIRECTORY[[:space:]]*([[:space:]]*cmake[[:space:]]*)/s/^#DONOTCOMPILE //' \ |
487 | -e '/ADD_SUBDIRECTORY[[:space:]]*([[:space:]]*cmake[[:space:]]*)/s/^#DONOTCOMPILE //' \ |
|
|
488 | -i CMakeLists.txt || die "${LINENO}: cmake sed died" |
|
|
489 | fi |
|
|
490 | |
|
|
491 | # Restore "add_subdirectory( ${ ..." (this is done in kdesdk) |
|
|
492 | if [[ -f CMakeLists.txt ]]; then |
|
|
493 | sed -e '/add_subdirectory[[:space:]]*([[:space:]]*\${/s/^#DONOTCOMPILE //' \ |
|
|
494 | -e '/ADD_SUBDIRECTORY[[:space:]]*([[:space:]]*\${/s/^#DONOTCOMPILE //' \ |
| 495 | -i CMakeLists.txt || die "${LINENO}: cmake sed died" |
495 | -i CMakeLists.txt || die "${LINENO}: cmake sed died" |
| 496 | fi |
496 | fi |
| 497 | |
497 | |
| 498 | if [[ -z ${KMNOMODULE} ]]; then |
498 | if [[ -z ${KMNOMODULE} ]]; then |
| 499 | # Restore "add_subdirectory" in $KMMODULE subdirectories |
499 | # Restore "add_subdirectory" in $KMMODULE subdirectories |
| … | |
… | |
| 554 | if [[ ${PN} != kdebase-startkde && -f CMakeLists.txt ]]; then |
554 | if [[ ${PN} != kdebase-startkde && -f CMakeLists.txt ]]; then |
| 555 | # The startkde script moved to kdebase-workspace for KDE4 versions > 3.93.0. |
555 | # The startkde script moved to kdebase-workspace for KDE4 versions > 3.93.0. |
| 556 | sed -e '/startkde/s/^/#DONOTINSTALL /' \ |
556 | sed -e '/startkde/s/^/#DONOTINSTALL /' \ |
| 557 | -i CMakeLists.txt || die "${LINENO}: sed died in the kdebase-startkde collision prevention section" |
557 | -i CMakeLists.txt || die "${LINENO}: sed died in the kdebase-startkde collision prevention section" |
| 558 | fi |
558 | fi |
|
|
559 | # Remove workspace target prefix in order to get direct linking to workspace libs |
|
|
560 | sed -e '/set(KDE4WORKSPACE_TARGET_PREFIX/s/^/#OVERRIDE /' \ |
|
|
561 | -i CMakeLists.txt || die "${LINENO}: sed died in KDE4WORKSPACE_TARGET_PREFIX removal section" |
| 559 | # Strip EXPORT feature section from workspace for KDE4 versions > 4.1.82 |
562 | # Strip EXPORT feature section from workspace for KDE4 versions > 4.1.82 |
| 560 | if [[ ${PN} != libkworkspace ]]; then |
563 | if [[ ${PN} != libkworkspace ]]; then |
| 561 | sed -e '/install(FILES ${CMAKE_CURRENT_BINARY_DIR}\/KDE4WorkspaceConfig.cmake/,/^[[:space:]]*FILE KDE4WorkspaceLibraryTargets.cmake )[[:space:]]*^/d' \ |
564 | sed -e '/install(FILES ${CMAKE_CURRENT_BINARY_DIR}\/KDE4WorkspaceConfig.cmake/,/^[[:space:]]*FILE KDE4WorkspaceLibraryTargets.cmake )[[:space:]]*^/d' \ |
| 562 | -i CMakeLists.txt || die "${LINENO}: sed died in kdebase-workspace strip config install and fix EXPORT section" |
565 | -i CMakeLists.txt || die "${LINENO}: sed died in kde-workspace strip config install and fix EXPORT section" |
|
|
566 | fi |
|
|
567 | if [[ ${PN} != plasma-workspace ]]; then |
|
|
568 | sed -e '/KActivities/s/REQUIRED//' \ |
|
|
569 | -i CMakeLists.txt || die "${LINENO}: sed died in kde-workspace dep reduction section" |
|
|
570 | fi |
|
|
571 | if [[ "${PN}" != "kwin" ]]; then |
|
|
572 | sed -i -e "/^ macro_log_feature(OPENGL_OR_ES_FOUND/s/TRUE/FALSE/" \ |
|
|
573 | "${S}"/CMakeLists.txt || die "${LINENO}: sed died removing kde-workspace opengl dependency" |
| 563 | fi |
574 | fi |
| 564 | ;; |
575 | ;; |
| 565 | kdebase-runtime | kde-runtime) |
576 | kdebase-runtime | kde-runtime) |
| 566 | # COLLISION PROTECT section |
577 | # COLLISION PROTECT section |
| 567 | # Only install the kde4 script as part of kde-base/kdebase-data |
578 | # Only install the kde4 script as part of kde-base/kdebase-data |
| … | |
… | |
| 578 | kdepim) |
589 | kdepim) |
| 579 | # Disable hardcoded checks |
590 | # Disable hardcoded checks |
| 580 | sed -r -e '/find_package\(KdepimLibs/s/REQUIRED//' \ |
591 | sed -r -e '/find_package\(KdepimLibs/s/REQUIRED//' \ |
| 581 | -e '/find_package\((KdepimLibs|Boost|QGpgme|Akonadi|ZLIB|Strigi|SharedDesktopOntologies|Soprano|Nepomuk)/{/macro_optional_/!s/find/macro_optional_&/}' \ |
592 | -e '/find_package\((KdepimLibs|Boost|QGpgme|Akonadi|ZLIB|Strigi|SharedDesktopOntologies|Soprano|Nepomuk)/{/macro_optional_/!s/find/macro_optional_&/}' \ |
| 582 | -e '/macro_log_feature\((Boost|QGPGME|Akonadi|ZLIB|STRIGI|SHAREDDESKTOPONTOLOGIES|Soprano|Nepomuk)_FOUND/s/ TRUE / FALSE /' \ |
593 | -e '/macro_log_feature\((Boost|QGPGME|Akonadi|ZLIB|STRIGI|SHAREDDESKTOPONTOLOGIES|Soprano|Nepomuk)_FOUND/s/ TRUE / FALSE /' \ |
| 583 | -e '/if[[:space:]]*([[:space:]]*BUILD_.*)/s/^/#OVERRIDE /' \ |
594 | -e 's/if[[:space:]]*([[:space:]]*BUILD_.*)[[:space:]]*/if(1) # &/' \ |
| 584 | -e '/if[[:space:]]*([[:space:]]*[[:alnum:]]*_FOUND[[:space:]]*)/s/^/#OVERRIDE /' \ |
595 | -e 's/if[[:space:]]*([[:space:]]*[[:alnum:]]*_FOUND[[:space:]]*)[[:space:]]*$/if(1) # &/' \ |
| 585 | -i CMakeLists.txt || die "failed to disable hardcoded checks" |
596 | -i CMakeLists.txt || die "failed to disable hardcoded checks" |
| 586 | # Disable broken or redundant build logic |
597 | # Disable broken or redundant build logic |
| 587 | if ( has kontact ${IUSE//+} && use kontact ) || [[ ${PN} = kontact ]]; then |
598 | if use_if_iuse kontact || [[ ${PN} = kontact ]]; then |
| 588 | sed -e '/if[[:space:]]*([[:space:]]*BUILD_.*)/s/^/#OVERRIDE /' \ |
599 | sed -e 's/if[[:space:]]*([[:space:]]*BUILD_.*)[[:space:]]*$/if(1) # &/' \ |
| 589 | -e '/if[[:space:]]*([[:space:]]*[[:alnum:]]*_FOUND[[:space:]]*)/s/^/#OVERRIDE /' \ |
600 | -e 's/if[[:space:]]*([[:space:]]*[[:alnum:]]*_FOUND[[:space:]]*)[[:space:]]*$/if(1) # &/' \ |
| 590 | -i kontact/plugins/CMakeLists.txt || die 'failed to override build logic' |
601 | -i kontact/plugins/CMakeLists.txt || die 'failed to override build logic' |
| 591 | fi |
602 | fi |
| 592 | if [[ $(get_kde_version) < 4.5 ]]; then |
603 | if [[ $(get_kde_version) < 4.5 ]]; then |
| 593 | case ${PN} in |
604 | case ${PN} in |
| 594 | kalarm|kmailcvt|kontact|korganizer|korn) |
605 | kalarm|kmailcvt|kontact|korganizer|korn) |