/[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.24 Revision 1.26
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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.24 2009/08/07 01:00:11 wired Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.26 2009/10/06 18:02:12 alexxy 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.
39 >=kde-base/kdepimlibs-${PV}:${SLOT}[kdeprefix=] 39 >=kde-base/kdepimlibs-${PV}:${SLOT}[kdeprefix=]
40 " 40 "
41 case ${PN} in 41 case ${PN} in
42 akregator|kaddressbook|kjots|kmail|knode|knotes|korganizer|ktimetracker) 42 akregator|kaddressbook|kjots|kmail|knode|knotes|korganizer|ktimetracker)
43 IUSE+=" +kontact" 43 IUSE+=" +kontact"
44 if ! slot_is_at_least 4.4 ${SLOT} || [[ ${SLOT} == 4.4 && ${PV} < 4.3.68 ]]; then
44 RDEPEND+=" kontact? ( >=kde-base/kontactinterfaces-${PV}:${SLOT}[kdeprefix=] )" 45 RDEPEND+=" kontact? ( >=kde-base/kontactinterfaces-${PV}:${SLOT}[kdeprefix=] )"
46 fi
45 ;; 47 ;;
46 esac 48 esac
47 ;; 49 ;;
48 kdegames) 50 kdegames)
49 if [[ ${PN} != libkdegames ]]; then 51 if [[ ${PN} != libkdegames ]]; then
215 "${S}"/CMakeLists.txt || die "Sed to exclude bin/kde4 failed" 217 "${S}"/CMakeLists.txt || die "Sed to exclude bin/kde4 failed"
216 fi 218 fi
217 else 219 else
218 local abort tarball tarfile f extractlist moduleprefix postfix 220 local abort tarball tarfile f extractlist moduleprefix postfix
219 case ${PV} in 221 case ${PV} in
220 4.3.85 | 4.3.90 | 4.3.95 | 4.3.96 | 4.3.98 | 4.2.85 | 4.2.90 | 4.2.95 | 4.2.96 | 4.2.98) 222 4.3.85 | 4.3.9[0568])
221 # block for normally packed upstream unstable snapshots 223 # block for normally packed upstream unstable snapshots
222 KMTARPARAMS+=" --bzip2" # bz2 224 KMTARPARAMS+=" --bzip2" # bz2
223 postfix="bz2" 225 postfix="bz2"
224 ;; 226 ;;
225 4.2.9* | 4.2.8* | 4.2.7* | 4.2.6* | 4.3.9* | 4.3.8* | 4.3.7* | 4.3.6*) 227 4.3.[6-9]*)
226 KMTARPARAMS+=" --lzma" # lzma 228 KMTARPARAMS+=" --lzma" # lzma
227 postfix="lzma" 229 postfix="lzma"
228 ;; 230 ;;
229 *) 231 *)
230 KMTARPARAMS+=" --bzip2" # bz2 232 KMTARPARAMS+=" --bzip2" # bz2
356 KMEXTRACTONLY+=" 358 KMEXTRACTONLY+="
357 kleopatra/ConfigureChecks.cmake" 359 kleopatra/ConfigureChecks.cmake"
358 if has kontact ${IUSE//+} && use kontact; then 360 if has kontact ${IUSE//+} && use kontact; then
359 KMEXTRA+=" 361 KMEXTRA+="
360 kontact/plugins/${PLUGINNAME:-${PN}}/" 362 kontact/plugins/${PLUGINNAME:-${PN}}/"
363 if ! slot_is_at_least 4.4 ${SLOT} || [[ ${SLOT} == 4.4 && ${PV} < 4.3.68 ]]; then
361 KMEXTRACTONLY+=" 364 KMEXTRACTONLY+="
362 kontactinterfaces/" 365 kontactinterfaces/"
366 fi
363 fi 367 fi
364 ;; 368 ;;
365 kdeutils) 369 kdeutils)
366 case ${SLOT} in 370 case ${SLOT} in
367 4.3|4.4|live) 371 4.3|4.4|live)
390 case ${KMNAME} in 394 case ${KMNAME} in
391 kdepim) 395 kdepim)
392 # No need for unpack since 4.2.86 396 # No need for unpack since 4.2.86
393 # Remove when 4.2 is wiped out from the tree 397 # Remove when 4.2 is wiped out from the tree
394 case ${PV} in 398 case ${PV} in
395 4.1*|4.2.0|4.2.1|4.2.2|4.2.3|4.2.4|4.2.85) 399 4.2.[0-4])
396 KMCOMPILEONLY+=" 400 KMCOMPILEONLY+="
397 cmake/modules/" 401 cmake/modules/"
398 ;; 402 ;;
399 *) ;;
400 esac 403 esac
401 ;; 404 ;;
402 kdebase-runtime|kdebase-workspace|kdeedu|kdegames|kdegraphics) 405 kdebase-runtime|kdebase-workspace|kdeedu|kdegames|kdegraphics)
403 case ${PN} in 406 case ${PN} in
404 libkdegames|libkdeedu|libkworkspace) 407 libkdegames|libkdeedu|libkworkspace)
606 # prevent collisions 609 # prevent collisions
607 if [[ ${PN} != koffice-data ]]; then 610 if [[ ${PN} != koffice-data ]]; then
608 sed -i -e '/install(.*FindKOfficeLibs.cmake/,/)/ d' \ 611 sed -i -e '/install(.*FindKOfficeLibs.cmake/,/)/ d' \
609 "${S}"/cmake/modules/CMakeLists.txt || \ 612 "${S}"/cmake/modules/CMakeLists.txt || \
610 die "${LINENO}: sed died in collision prevention section" 613 die "${LINENO}: sed died in collision prevention section"
611 case ${PV} in
612 2.0.*)
613 sed -i -n -e '1h;1!H;${g;s/install(.\+config-openexr.h.\+)//;p}' \ 614 sed -i -e '/install(.\+config-openexr\.h.\+)/d' \
614 "${S}"/CMakeLists.txt || \ 615 "${S}"//CMakeLists.txt || \
615 die "${LINENO}: sed died in collision prevention section" 616 die "${LINENO}: sed died in collision prevention section"
616 ;;
617 *)
618 sed -i -e '/install(.\+config-openexr\.h.\+)/d' \
619 "${S}"//CMakeLists.txt || \
620 die "${LINENO}: sed died in collision prevention section"
621 ;;
622 esac
623 fi 617 fi
624 esac 618 esac
625 619
626 popd > /dev/null 620 popd > /dev/null
627} 621}

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.26

  ViewVC Help
Powered by ViewVC 1.1.20