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.66 2012/08/02 07:29:29 johu Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.67 2012/08/19 11:12:35 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 | ;; |
|
|
62 | esac |
40 | esac |
63 | |
41 | |
64 | DEPEND+=" ${COMMONDEPEND}" |
42 | DEPEND+=" ${COMMONDEPEND}" |
65 | RDEPEND+=" ${COMMONDEPEND}" |
43 | RDEPEND+=" ${COMMONDEPEND}" |
66 | unset COMMONDEPEND |
44 | unset COMMONDEPEND |
… | |
… | |
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 :( |
… | |
… | |
617 | -e 's/find_package(LibXml2 REQUIRED)/macro_optional_find_package(LibXml2)/' \ |
581 | -e 's/find_package(LibXml2 REQUIRED)/macro_optional_find_package(LibXml2)/' \ |
618 | -e 's/find_package(LibXslt REQUIRED)/macro_optional_find_package(LibXslt)/' \ |
582 | -e 's/find_package(LibXslt REQUIRED)/macro_optional_find_package(LibXslt)/' \ |
619 | -e 's/find_package(Boost REQUIRED)/macro_optional_find_package(Boost)/' \ |
583 | -e 's/find_package(Boost REQUIRED)/macro_optional_find_package(Boost)/' \ |
620 | -i CMakeLists.txt || die "failed to disable hardcoded checks" |
584 | -i CMakeLists.txt || die "failed to disable hardcoded checks" |
621 | ;; |
585 | ;; |
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 |
586 | esac |
631 | |
587 | |
632 | popd > /dev/null |
588 | popd > /dev/null |
633 | } |
589 | } |
634 | |
590 | |