/[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.65 Revision 1.68
1# Copyright 1999-2012 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.65 2012/08/01 19:38:52 johu Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.68 2012/09/04 14:08:24 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.
35 kdegames) 35 kdegames)
36 if [[ ${PN} != libkdegames ]]; then 36 if [[ ${PN} != libkdegames ]]; then
37 COMMONDEPEND+=" $(add_kdebase_dep libkdegames)" 37 COMMONDEPEND+=" $(add_kdebase_dep libkdegames)"
38 fi 38 fi
39 ;; 39 ;;
40 koffice)
41 [[ ${PN} != koffice-data ]] && IUSE+=" debug"
42 RDEPEND+="
43 !app-office/${PN}:0
44 !app-office/koffice:0
45 !app-office/koffice-meta:0
46 "
47 if has openexr ${IUSE//+}; then
48 COMMONDEPEND+=" media-gfx/imagemagick[openexr?]"
49 else
50 COMMONDEPEND+=" media-gfx/imagemagick"
51 fi
52
53 COMMONDEPEND+="
54 dev-cpp/eigen:2
55 media-libs/fontconfig
56 media-libs/freetype:2
57 "
58 if [[ ${PN} != koffice-libs && ${PN} != koffice-data ]]; then
59 COMMONDEPEND+=" >=app-office/koffice-libs-${PV}:${SLOT}"
60 fi
61 ;;
62esac 40esac
63 41
64DEPEND+=" ${COMMONDEPEND}" 42DEPEND+=" ${COMMONDEPEND}"
65RDEPEND+=" ${COMMONDEPEND}" 43RDEPEND+=" ${COMMONDEPEND}"
66unset COMMONDEPEND 44unset COMMONDEPEND
208 ;; 186 ;;
209 esac 187 esac
210 else 188 else
211 local abort tarball tarfile f extractlist postfix 189 local abort tarball tarfile f extractlist postfix
212 190
213 if [[ ${PV} =~ 4.7.[12345] ]]; then 191 if [[ ${PV} =~ 4.[47].[12345] ]]; then
214 postfix="bz2" 192 postfix="bz2"
215 KMTARPARAMS+=" --bzip2" 193 KMTARPARAMS+=" --bzip2"
216 else 194 else
217 postfix="xz" 195 postfix="xz"
218 KMTARPARAMS+=" --xz" 196 KMTARPARAMS+=" --xz"
354 ;; 332 ;;
355 kdeutils) 333 kdeutils)
356 KMEXTRACTONLY+=" 334 KMEXTRACTONLY+="
357 kdeutils-version.h" 335 kdeutils-version.h"
358 ;; 336 ;;
359 koffice)
360 KMEXTRACTONLY+="
361 filters/config-filters.h.cmake
362 "
363 case ${PV} in
364 2.[12].*)
365 KMEXTRACTONLY+="
366 config-endian.h.cmake
367 config-openexr.h.cmake
368 config-opengl.h.cmake
369 config-prefix.h.cmake"
370 ;;
371 esac
372 ;;
373 esac 337 esac
374 # Don't install cmake modules for split ebuilds, to avoid collisions. 338 # Don't install cmake modules for split ebuilds, to avoid collisions.
375 # note: kdegraphics >= 4.6.2 does not even have code to do that, so we 339 # note: kdegraphics >= 4.6.2 does not even have code to do that, so we
376 # should not try in that case 340 # should not try in that case
377 # note2: kdeedu 4.6.4 does not have a cmake/modules/ subdir anymore :( 341 # note2: kdeedu 4.6.4 does not have a cmake/modules/ subdir anymore :(
378 # it may be possible to formulate this shorter, but it should also 342 # it may be possible to formulate this shorter, but it should also
379 # still be understandable... 343 # still be understandable...
380 if [[ ${KMNAME} != kdegraphics || ( ( $(get_kde_version) != 4.6 || ${PV} < 4.6.2 ) && $(get_kde_version) < 4.7 ) ]] \ 344 if [[ ${KMNAME} != kdegraphics || ( ( $(get_kde_version) != 4.6 || ${PV} < 4.6.2 ) && $(get_kde_version) < 4.7 ) ]] \
381 && ! [[ ${KMNAME} == kdeedu && ( ${PV} == 4.6.4 || ${PV} == 4.6.5 ) ]]; then 345 && ! [[ ${KMNAME} == kdeedu && ( ${PV} == 4.6.4 || ${PV} == 4.6.5 ) ]] \
346 && ! [[ ${KMNAME} == kdegames && ${PV} > 4.9.0 ]]; then
382 case ${KMNAME} in 347 case ${KMNAME} in
383 kdebase-runtime|kde-runtime|kdebase-workspace|kde-workspace|kdeedu|kdegames|kdegraphics) 348 kdebase-runtime|kde-runtime|kdebase-workspace|kde-workspace|kdeedu|kdegames|kdegraphics)
384 KMEXTRACTONLY+=" 349 KMEXTRACTONLY+="
385 cmake/modules/" 350 cmake/modules/"
386 ;; 351 ;;
617 -e 's/find_package(LibXml2 REQUIRED)/macro_optional_find_package(LibXml2)/' \ 582 -e 's/find_package(LibXml2 REQUIRED)/macro_optional_find_package(LibXml2)/' \
618 -e 's/find_package(LibXslt REQUIRED)/macro_optional_find_package(LibXslt)/' \ 583 -e 's/find_package(LibXslt REQUIRED)/macro_optional_find_package(LibXslt)/' \
619 -e 's/find_package(Boost REQUIRED)/macro_optional_find_package(Boost)/' \ 584 -e 's/find_package(Boost REQUIRED)/macro_optional_find_package(Boost)/' \
620 -i CMakeLists.txt || die "failed to disable hardcoded checks" 585 -i CMakeLists.txt || die "failed to disable hardcoded checks"
621 ;; 586 ;;
622 koffice)
623 # Prevent collisions
624 if [[ ${PN} != koffice-data ]]; then
625 sed -e '/install(.*FindKOfficeLibs.cmake/,/)/ d' \
626 -i cmake/modules/CMakeLists.txt || die "${LINENO}: sed died in collision prevention section"
627 sed -e '/install(.\+config-openexr\.h.\+)/d' \
628 -i CMakeLists.txt || die "${LINENO}: sed died in collision prevention section"
629 fi
630 esac 587 esac
631 588
632 popd > /dev/null 589 popd > /dev/null
633} 590}
634 591

Legend:
Removed from v.1.65  
changed lines
  Added in v.1.68

  ViewVC Help
Powered by ViewVC 1.1.20