/[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.70 Revision 1.71
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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.70 2013/04/07 17:46:23 kensington Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.71 2013/08/15 15:10:05 kensington 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.
33 IUSE+=" +kontact" 33 IUSE+=" +kontact"
34 RDEPEND+=" kontact? ( $(add_kdebase_dep kontact) )" 34 RDEPEND+=" kontact? ( $(add_kdebase_dep kontact) )"
35 ;; 35 ;;
36 esac 36 esac
37 ;; 37 ;;
38 kdegames)
39 if [[ ${PN} != libkdegames ]]; then
40 COMMONDEPEND+=" $(add_kdebase_dep libkdegames)"
41 fi
42 ;;
43esac 38esac
44 39
45DEPEND+=" ${COMMONDEPEND}" 40DEPEND+=" ${COMMONDEPEND}"
46RDEPEND+=" ${COMMONDEPEND}" 41RDEPEND+=" ${COMMONDEPEND}"
47unset COMMONDEPEND 42unset COMMONDEPEND
129 debug-print-function ${FUNCNAME} "$@" 124 debug-print-function ${FUNCNAME} "$@"
130 125
131 if [[ ${KDE_BUILD_TYPE} = live ]]; then 126 if [[ ${KDE_BUILD_TYPE} = live ]]; then
132 case "${KDE_SCM}" in 127 case "${KDE_SCM}" in
133 svn) 128 svn)
134 migrate_store_dir
135 S="${WORKDIR}/${P}" 129 S="${WORKDIR}/${P}"
136 mkdir -p "${S}" 130 mkdir -p "${S}"
137 ESVN_RESTRICT="export" subversion_src_unpack 131 ESVN_RESTRICT="export" subversion_src_unpack
138 subversion_wc_info 132 subversion_wc_info
139 subversion_bootstrap 133 subversion_bootstrap
197 else 191 else
198 postfix="xz" 192 postfix="xz"
199 KMTARPARAMS+=" --xz" 193 KMTARPARAMS+=" --xz"
200 fi 194 fi
201 195
202 case ${KMNAME} in
203 kdebase-apps)
204 # kdebase/apps -> kdebase-apps
205 tarball="kdebase-${PV}.tar.${postfix}"
206 ;;
207 *)
208 # Create tarball name from module name (this is the default)
209 tarball="${KMNAME}-${PV}.tar.${postfix}" 196 tarball="${KMNAME}-${PV}.tar.${postfix}"
210 ;;
211 esac
212 197
213 # Full path to source tarball 198 # Full path to source tarball
214 tarfile="${DISTDIR}/${tarball}" 199 tarfile="${DISTDIR}/${tarball}"
215 200
216 # Detect real toplevel dir from tarball name - it will be used upon extraction 201 # Detect real toplevel dir from tarball name - it will be used upon extraction
284 269
285 # Add some CMake-files to KMEXTRACTONLY. 270 # Add some CMake-files to KMEXTRACTONLY.
286 # Note that this actually doesn't include KMEXTRA handling. 271 # Note that this actually doesn't include KMEXTRA handling.
287 # In those cases you should care to add the relevant files to KMEXTRACTONLY 272 # In those cases you should care to add the relevant files to KMEXTRACTONLY
288 case ${KMNAME} in 273 case ${KMNAME} in
289 kdebase | kdebase-apps | kde-baseapps) 274 kde-baseapps)
290 KMEXTRACTONLY+=" 275 KMEXTRACTONLY+="
291 CTestConfig.cmake 276 CTestConfig.cmake
292 config-apps.h.cmake 277 config-apps.h.cmake
293 ConfigureChecks.cmake" 278 ConfigureChecks.cmake"
294 ;; 279 ;;
295 kdebase-runtime | kde-runtime) 280 kde-runtime)
296 KMEXTRACTONLY+=" 281 KMEXTRACTONLY+="
297 CTestConfig.cmake 282 CTestConfig.cmake
298 config-runtime.h.cmake" 283 config-runtime.h.cmake"
299 ;; 284 ;;
300 kdebase-workspace | kde-workspace) 285 kde-workspace)
301 KMEXTRACTONLY+=" 286 KMEXTRACTONLY+="
302 config-unix.h.cmake 287 config-unix.h.cmake
303 ConfigureChecks.cmake 288 ConfigureChecks.cmake
304 config-workspace.h.cmake 289 config-workspace.h.cmake
305 config-X11.h.cmake 290 config-X11.h.cmake
306 startkde.cmake 291 startkde.cmake
307 KDE4WorkspaceConfig.cmake.in" 292 KDE4WorkspaceConfig.cmake.in"
308 ;;
309 kdegames)
310 if [[ ${PN} != libkdegames ]]; then
311 KMEXTRACTONLY+="
312 libkdegames/"
313 KMLOADLIBS="${KMLOADLIBS} libkdegames"
314 fi
315 ;; 293 ;;
316 kdepim) 294 kdepim)
317 if [[ ${PN} != libkdepim ]]; then 295 if [[ ${PN} != libkdepim ]]; then
318 KMEXTRACTONLY+=" 296 KMEXTRACTONLY+="
319 libkdepim/" 297 libkdepim/"
326 kdepim-version.h" 304 kdepim-version.h"
327 if use_if_iuse kontact; then 305 if use_if_iuse kontact; then
328 KMEXTRA+=" 306 KMEXTRA+="
329 kontact/plugins/${PLUGINNAME:-${PN}}/" 307 kontact/plugins/${PLUGINNAME:-${PN}}/"
330 fi 308 fi
331 ;;
332 kdeutils)
333 KMEXTRACTONLY+="
334 kdeutils-version.h"
335 ;; 309 ;;
336 esac 310 esac
337 # Don't install cmake modules for split ebuilds, to avoid collisions. 311 # Don't install cmake modules for split ebuilds, to avoid collisions.
338 # note: kdegraphics >= 4.6.2 does not even have code to do that, so we 312 # note: kdegraphics >= 4.6.2 does not even have code to do that, so we
339 # should not try in that case 313 # should not try in that case
509 _change_cmakelists_parent_dirs ${i} 483 _change_cmakelists_parent_dirs ${i}
510 fi 484 fi
511 done 485 done
512 486
513 case ${KMNAME} in 487 case ${KMNAME} in
514 kdebase-workspace | kde-workspace) 488 kde-workspace)
515 # COLLISION PROTECT section 489 # COLLISION PROTECT section
516 # Install the startkde script just once, as a part of kde-base/kdebase-startkde, 490 # Install the startkde script just once, as a part of kde-base/kdebase-startkde,
517 # not as a part of every package. 491 # not as a part of every package.
518 if [[ ${PN} != kdebase-startkde && -f CMakeLists.txt ]]; then 492 if [[ ${PN} != kdebase-startkde && -f CMakeLists.txt ]]; then
519 # The startkde script moved to kdebase-workspace for KDE4 versions > 3.93.0. 493 # The startkde script moved to kdebase-workspace for KDE4 versions > 3.93.0.

Legend:
Removed from v.1.70  
changed lines
  Added in v.1.71

  ViewVC Help
Powered by ViewVC 1.1.20