/[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.6 Revision 1.7
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 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.6 2008/05/15 19:49:32 ingmar Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.7 2008/10/02 06:49:02 jmbsvicetto 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.
15# NOTE: This eclass uses the SLOT dependencies from EAPI="1" or compatible, 15# NOTE: This eclass uses the SLOT dependencies from EAPI="1" or compatible,
16# hence you must define EAPI="1" in the ebuild, before inheriting any eclasses. 16# hence you must define EAPI="1" in the ebuild, before inheriting any eclasses.
17 17
18inherit multilib kde4-functions kde4-base 18inherit multilib kde4-functions kde4-base
19 19
20case "${EAPI}" in
21 2)
22 EXPORT_FUNCTIONS pkg_setup src_unpack src_configure src_compile src_test src_install pkg_postinst pkg_postrm
23 ;;
24 *)
20EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_test src_install pkg_postinst pkg_postrm 25 EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_test src_install pkg_postinst pkg_postrm
26 ;;
27esac
21 28
22if [[ -z ${KMNAME} ]]; then 29if [[ -z ${KMNAME} ]]; then
23 die "kde4-meta.eclass inherited but KMNAME not defined - broken ebuild" 30 die "kde4-meta.eclass inherited but KMNAME not defined - broken ebuild"
24fi 31fi
25 32
47 kdebase|kdebase-workspace|kdebase-runtime) 54 kdebase|kdebase-workspace|kdebase-runtime)
48 DEPEND="${DEPEND} >=kde-base/qimageblitz-0.0.4" 55 DEPEND="${DEPEND} >=kde-base/qimageblitz-0.0.4"
49 RDEPEND="${RDEPEND} >=kde-base/qimageblitz-0.0.4" 56 RDEPEND="${RDEPEND} >=kde-base/qimageblitz-0.0.4"
50 ;; 57 ;;
51 kdepim) 58 kdepim)
52 DEPEND="${DEPEND} dev-libs/boost" 59 DEPEND="${DEPEND} dev-libs/boost app-office/akonadi-server"
53 RDEPEND="${RDEPEND} dev-libs/boost" 60 RDEPEND="${RDEPEND} dev-libs/boost"
54 if [[ ${PN} != kode ]]; then 61 if [[ ${PN} != kode ]]; then
55 DEPEND="${DEPEND} >=kde-base/kode-${PV}:${SLOT}" 62 DEPEND="${DEPEND} >=kde-base/kode-${PV}:${SLOT}"
56 RDEPEND="${RDEPEND} >=kde-base/kode-${PV}:${SLOT}" 63 RDEPEND="${RDEPEND} >=kde-base/kode-${PV}:${SLOT}"
57 fi 64 fi
58 case ${PN} in 65 case ${PN} in
59 akregator|kaddressbook|kmail|kmobiletools|knode|knotes|korganizer|ktimetracker) 66 akregator|kaddressbook|kjots|kmail|kmobiletools|knode|knotes|korganizer|ktimetracker)
60 IUSE="+kontact" 67 IUSE="+kontact"
61 DEPEND="${DEPEND} kontact? ( >=kde-base/kontact-${PV}:${SLOT} )" 68 DEPEND="${DEPEND} kontact? ( >=kde-base/kontactinterfaces-${PV}:${SLOT} )"
62 RDEPEND="${RDEPEND} kontact? ( >=kde-base/kontact-${PV}:${SLOT} )" 69 RDEPEND="${RDEPEND} kontact? ( >=kde-base/kontactinterfaces-${PV}:${SLOT} )"
63 ;; 70 ;;
64 esac 71 esac
65 ;; 72 ;;
66 kdegames) 73 kdegames)
67 if [[ ${PN} != "libkdegames" ]]; then 74 if [[ ${PN} != "libkdegames" ]]; then
232 kdepim) 239 kdepim)
233 KMEXTRACTONLY="${KMEXTRACTONLY} 240 KMEXTRACTONLY="${KMEXTRACTONLY}
234 kleopatra/ConfigureChecks.cmake" 241 kleopatra/ConfigureChecks.cmake"
235 if has kontact ${IUSE//+} && use kontact; then 242 if has kontact ${IUSE//+} && use kontact; then
236 KMEXTRA="${KMEXTRA} kontact/plugins/${PLUGINNAME:-${PN}}" 243 KMEXTRA="${KMEXTRA} kontact/plugins/${PLUGINNAME:-${PN}}"
237 KMEXTRACTONLY="${KMEXTRACTONLY} kontact/interfaces/" 244 KMEXTRACTONLY="${KMEXTRACTONLY} kontactinterfaces/"
238 fi 245 fi
239 ;; 246 ;;
240 koffice) 247 koffice)
241 KMEXTRACTONLY="${KMEXTRACTONLY} 248 KMEXTRACTONLY="${KMEXTRACTONLY}
242 config-endian.h.cmake 249 config-endian.h.cmake
246 config-prefix.h.cmake" 253 config-prefix.h.cmake"
247 ;; 254 ;;
248 esac 255 esac
249 # Don't install cmake modules for split ebuilds to avoid collisions. 256 # Don't install cmake modules for split ebuilds to avoid collisions.
250 case ${KMNAME} in 257 case ${KMNAME} in
251 kdebase-workspace|kdebase-runtime|kdepim|kdegames|kdegraphics) 258 kdebase-runtime|kdebase-workspace|kdeedu|kdegames|kdegraphics|kdepim)
252 if [[ ${PN} != "libkdegames" ]]; then 259 case ${PN} in
260 libkdegames|libkdeedu|marble)
261 KMEXTRA="${KMEXTRA}
262 cmake/modules/"
263 ;;
264
265 *)
253 KMCOMPILEONLY="${KMCOMPILEONLY} 266 KMCOMPILEONLY="${KMCOMPILEONLY}
254 cmake/modules/" 267 cmake/modules/"
255 else 268 ;;
256 KMEXTRA="${KMEXTRA} 269 esac
257 cmake/modules/"
258 fi
259 ;; 270 ;;
260 esac 271 esac
261 272
262 debug-print "line ${LINENO} ${ECLASS} ${FUNCNAME}: KMEXTRACTONLY ${KMEXTRACTONLY}" 273 debug-print "line ${LINENO} ${ECLASS} ${FUNCNAME}: KMEXTRACTONLY ${KMEXTRACTONLY}"
263} 274}
301 debug-print "line ${LINENO} ${ECLASS} ${FUNCNAME} - kmmodule_expanded: ${kmmodule_expanded}" 312 debug-print "line ${LINENO} ${ECLASS} ${FUNCNAME} - kmmodule_expanded: ${kmmodule_expanded}"
302 debug-print "line ${LINENO} ${ECLASS} ${FUNCNAME} - kmcompileonly_expanded: ${kmcompileonly_expanded}" 313 debug-print "line ${LINENO} ${ECLASS} ${FUNCNAME} - kmcompileonly_expanded: ${kmcompileonly_expanded}"
303 314
304 315
305 case ${PV} in 316 case ${PV} in
306 scm|9999.4) : ;; 317 scm|9999*) : ;;
307 *) topdir="${KMNAME}-${PV}/" ;; 318 *) topdir="${KMNAME}-${PV}/" ;;
308 esac 319 esac
309 320
310 # Create final list of stuff to extract 321 # Create final list of stuff to extract
311 for i in ${kmmodule_expanded} ${kmextra_expanded} ${kmcompileonly_expanded} \ 322 for i in ${kmmodule_expanded} ${kmextra_expanded} ${kmcompileonly_expanded} \
350# @DESCRIPTION: 361# @DESCRIPTION:
351# General function for compiling split KDE4 applications. 362# General function for compiling split KDE4 applications.
352kde4-meta_src_compile() { 363kde4-meta_src_compile() {
353 debug-print-function ${FUNCNAME} "$@" 364 debug-print-function ${FUNCNAME} "$@"
354 365
366 case "${EAPI}" in
367 2 | 2_pre3 | 2_pre2 | 2_pre1)
368 ;;
369 *)
355 kde4-meta_src_configure 370 kde4-base_meta_configure
371 ;;
372 esac
356 kde4-meta_src_make 373 kde4-meta_src_make
357} 374}
358 375
359_change_cmakelists_parent_dirs() { 376_change_cmakelists_parent_dirs() {
360 debug-print-function ${FUNCNAME} "$@" 377 debug-print-function ${FUNCNAME} "$@"
465 "${S}"/CMakeLists.txt || die "Sed to exclude bin/kde4 failed" 482 "${S}"/CMakeLists.txt || die "Sed to exclude bin/kde4 failed"
466 fi 483 fi
467 ;; 484 ;;
468 kdepim) 485 kdepim)
469 case ${PN} in 486 case ${PN} in
470 kaddressbook|kmailcvt|kontact|korganizer) 487 kaddressbook|kalarm|kmailcvt|kontact|korganizer|korn)
471 sed -i -n -e '/qt4_generate_dbus_interface(.*org\.kde\.kmail\.\(kmail\|mailcomposer\)\.xml/p' \ 488 sed -i -n -e '/qt4_generate_dbus_interface(.*org\.kde\.kmail\.\(kmail\|mailcomposer\)\.xml/p' \
472 -e '/add_custom_target(kmail_xml /,/)/p' "${S}"/kmail/CMakeLists.txt || die "uncommenting xml failed" 489 -e '/add_custom_target(kmail_xml /,/)/p' "${S}"/kmail/CMakeLists.txt || die "uncommenting xml failed"
473 _change_cmakelists_parent_dirs kmail 490 _change_cmakelists_parent_dirs kmail
474 ;; 491 ;;
475 esac 492 esac

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20