/[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.64 Revision 1.65
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.64 2012/05/08 22:00:49 dilfridge Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.65 2012/08/01 19:38:52 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.
67 67
68debug-print "line ${LINENO} ${ECLASS}: DEPEND ${DEPEND} - after metapackage-specific dependencies" 68debug-print "line ${LINENO} ${ECLASS}: DEPEND ${DEPEND} - after metapackage-specific dependencies"
69debug-print "line ${LINENO} ${ECLASS}: RDEPEND ${RDEPEND} - after metapackage-specific dependencies" 69debug-print "line ${LINENO} ${ECLASS}: RDEPEND ${RDEPEND} - after metapackage-specific dependencies"
70 70
71# Useful to build kde4-meta style stuff from extragear/playground (plasmoids etc) 71# Useful to build kde4-meta style stuff from extragear/playground (plasmoids etc)
72case ${BUILD_TYPE} in 72case ${KDE_BUILD_TYPE} in
73 live) 73 live)
74 if [[ ${KDE_SCM} == svn ]]; then 74 if [[ ${KDE_SCM} == svn ]]; then
75 case ${KMNAME} in 75 case ${KMNAME} in
76 extragear*|playground*) 76 extragear*|playground*)
77 ESVN_REPO_URI="${ESVN_MIRROR}/trunk/${KMNAME}" 77 ESVN_REPO_URI="${ESVN_MIRROR}/trunk/${KMNAME}"
145# This function unpacks the source for split ebuilds. 145# This function unpacks the source for split ebuilds.
146# Further more is processed in kde4-meta_src_extract 146# Further more is processed in kde4-meta_src_extract
147kde4-meta_src_unpack() { 147kde4-meta_src_unpack() {
148 debug-print-function ${FUNCNAME} "$@" 148 debug-print-function ${FUNCNAME} "$@"
149 149
150 if [[ ${BUILD_TYPE} = live ]]; then 150 if [[ ${KDE_BUILD_TYPE} = live ]]; then
151 case "${KDE_SCM}" in 151 case "${KDE_SCM}" in
152 svn) 152 svn)
153 migrate_store_dir 153 migrate_store_dir
154 S="${WORKDIR}/${P}" 154 S="${WORKDIR}/${P}"
155 mkdir -p "${S}" 155 mkdir -p "${S}"
171# Also see KMMODULE, KMNOMODULE, KMEXTRA, KMCOMPILEONLY, KMEXTRACTONLY and 171# Also see KMMODULE, KMNOMODULE, KMEXTRA, KMCOMPILEONLY, KMEXTRACTONLY and
172# KMTARPARAMS. 172# KMTARPARAMS.
173kde4-meta_src_extract() { 173kde4-meta_src_extract() {
174 debug-print-function ${FUNCNAME} "$@" 174 debug-print-function ${FUNCNAME} "$@"
175 175
176 if [[ ${BUILD_TYPE} = live ]]; then 176 if [[ ${KDE_BUILD_TYPE} = live ]]; then
177 # Export working copy to ${S} 177 # Export working copy to ${S}
178 einfo "Exporting parts of working copy to ${S}" 178 einfo "Exporting parts of working copy to ${S}"
179 kde4-meta_create_extractlists 179 kde4-meta_create_extractlists
180 180
181 case ${KDE_SCM} in 181 case ${KDE_SCM} in
208 ;; 208 ;;
209 esac 209 esac
210 else 210 else
211 local abort tarball tarfile f extractlist postfix 211 local abort tarball tarfile f extractlist postfix
212 212
213 if [[ ${PV} =~ 4.8.[12345] ]]; then 213 if [[ ${PV} =~ 4.7.[12345] ]]; then
214 postfix="bz2"
215 KMTARPARAMS+=" --bzip2"
216 else
214 postfix="xz" 217 postfix="xz"
215 KMTARPARAMS+=" --xz" 218 KMTARPARAMS+=" --xz"
216 else
217 postfix="bz2"
218 KMTARPARAMS+=" --bzip2"
219 fi 219 fi
220 220
221 case ${KMNAME} in 221 case ${KMNAME} in
222 kdebase-apps) 222 kdebase-apps)
223 # kdebase/apps -> kdebase-apps 223 # kdebase/apps -> kdebase-apps
310 config-apps.h.cmake 310 config-apps.h.cmake
311 ConfigureChecks.cmake" 311 ConfigureChecks.cmake"
312 ;; 312 ;;
313 kdebase-runtime | kde-runtime) 313 kdebase-runtime | kde-runtime)
314 KMEXTRACTONLY+=" 314 KMEXTRACTONLY+="
315 CTestConfig.cmake
315 config-runtime.h.cmake" 316 config-runtime.h.cmake"
316 ;; 317 ;;
317 kdebase-workspace | kde-workspace) 318 kdebase-workspace | kde-workspace)
318 KMEXTRACTONLY+=" 319 KMEXTRACTONLY+="
319 config-unix.h.cmake 320 config-unix.h.cmake
378 # still be understandable... 379 # still be understandable...
379 if [[ ${KMNAME} != kdegraphics || ( ( $(get_kde_version) != 4.6 || ${PV} < 4.6.2 ) && $(get_kde_version) < 4.7 ) ]] \ 380 if [[ ${KMNAME} != kdegraphics || ( ( $(get_kde_version) != 4.6 || ${PV} < 4.6.2 ) && $(get_kde_version) < 4.7 ) ]] \
380 && ! [[ ${KMNAME} == kdeedu && ( ${PV} == 4.6.4 || ${PV} == 4.6.5 ) ]]; then 381 && ! [[ ${KMNAME} == kdeedu && ( ${PV} == 4.6.4 || ${PV} == 4.6.5 ) ]]; then
381 case ${KMNAME} in 382 case ${KMNAME} in
382 kdebase-runtime|kde-runtime|kdebase-workspace|kde-workspace|kdeedu|kdegames|kdegraphics) 383 kdebase-runtime|kde-runtime|kdebase-workspace|kde-workspace|kdeedu|kdegames|kdegraphics)
383 case ${PN} in
384 libkdegames|libkdeedu|libkworkspace)
385 KMEXTRA+=" 384 KMEXTRACTONLY+="
386 cmake/modules/" 385 cmake/modules/"
387 ;;
388 *)
389 KMCOMPILEONLY+="
390 cmake/modules/"
391 ;;
392 esac
393 ;; 386 ;;
394 esac 387 esac
395 fi 388 fi
396 389
397 debug-print "line ${LINENO} ${ECLASS} ${FUNCNAME}: KMEXTRACTONLY ${KMEXTRACTONLY}" 390 debug-print "line ${LINENO} ${ECLASS} ${FUNCNAME}: KMEXTRACTONLY ${KMEXTRACTONLY}"
490 483
491 # Restore "add_subdirectory( cmake )" in ${S}/CMakeLists.txt 484 # Restore "add_subdirectory( cmake )" in ${S}/CMakeLists.txt
492 if [[ -f CMakeLists.txt ]]; then 485 if [[ -f CMakeLists.txt ]]; then
493 sed -e '/add_subdirectory[[:space:]]*([[:space:]]*cmake[[:space:]]*)/s/^#DONOTCOMPILE //' \ 486 sed -e '/add_subdirectory[[:space:]]*([[:space:]]*cmake[[:space:]]*)/s/^#DONOTCOMPILE //' \
494 -e '/ADD_SUBDIRECTORY[[:space:]]*([[:space:]]*cmake[[:space:]]*)/s/^#DONOTCOMPILE //' \ 487 -e '/ADD_SUBDIRECTORY[[:space:]]*([[:space:]]*cmake[[:space:]]*)/s/^#DONOTCOMPILE //' \
488 -i CMakeLists.txt || die "${LINENO}: cmake sed died"
489 fi
490
491 # Restore "add_subdirectory( ${ ..." (this is done in kdesdk)
492 if [[ -f CMakeLists.txt ]]; then
493 sed -e '/add_subdirectory[[:space:]]*([[:space:]]*\${/s/^#DONOTCOMPILE //' \
494 -e '/ADD_SUBDIRECTORY[[:space:]]*([[:space:]]*\${/s/^#DONOTCOMPILE //' \
495 -i CMakeLists.txt || die "${LINENO}: cmake sed died" 495 -i CMakeLists.txt || die "${LINENO}: cmake sed died"
496 fi 496 fi
497 497
498 if [[ -z ${KMNOMODULE} ]]; then 498 if [[ -z ${KMNOMODULE} ]]; then
499 # Restore "add_subdirectory" in $KMMODULE subdirectories 499 # Restore "add_subdirectory" in $KMMODULE subdirectories

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

  ViewVC Help
Powered by ViewVC 1.1.20