/[gentoo-x86]/eclass/kde4-base.eclass
Gentoo

Diff of /eclass/kde4-base.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.22 Revision 1.23
1# Copyright 2007-2008 Gentoo Foundation 1# Copyright 2007-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-base.eclass,v 1.22 2009/01/12 17:25:59 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.23 2009/01/12 19:40:34 scarabeus Exp $
4 4
5# @ECLASS: kde4-base.eclass 5# @ECLASS: kde4-base.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# kde@gentoo.org 7# kde@gentoo.org
8# @BLURB: This eclass provides functions for kde 4.X ebuilds 8# @BLURB: This eclass provides functions for kde 4.X ebuilds
463# executed. Otherwise, options are passed to base_src_unpack. 463# executed. Otherwise, options are passed to base_src_unpack.
464kde4-base_src_unpack() { 464kde4-base_src_unpack() {
465 debug-print-function $FUNCNAME "$@" 465 debug-print-function $FUNCNAME "$@"
466 466
467 if [[ $BUILD_TYPE = live ]]; then 467 if [[ $BUILD_TYPE = live ]]; then
468 local cleandir 468 migrate_store_dir
469 cleandir="${ESVN_STORE_DIR}/KDE"
470 if [[ -d "${cleandir}" ]]; then
471 ewarn "'${cleandir}' has been found. Moving contents to new location."
472 addwrite "${ESVN_STORE_DIR}"
473 # Split kdebase
474 local module
475 if pushd "${cleandir}"/kdebase/kdebase > /dev/null; then
476 for module in `find . -maxdepth 1 -type d -name [a-z0-9]\*`; do
477 module="${module#./}"
478 mkdir -p "${ESVN_STORE_DIR}/kdebase-${module}" && mv -f "${module}" "${ESVN_STORE_DIR}/kdebase-${module}" || \
479 die "Failed to move to '${ESVN_STORE_DIR}/kdebase-${module}'."
480 done
481 popd > /dev/null
482 rm -fr "${cleandir}/kdebase" || \
483 die "Failed to remove ${cleandir}/kdebase. You need to remove it manually."
484 fi
485 # Move the rest
486 local pkg
487 for pkg in "${cleandir}"/*; do
488 mv -f "${pkg}" "${ESVN_STORE_DIR}"/ || eerror "failed to move ${pkg}"
489 done
490 rmdir "${cleandir}" || die "Could not move obsolete KDE store dir. Please move '${cleandir}' contents to appropriate location (possibly ${ESVN_STORE_DIR}) and manually remove '${cleandir}' in order to continue."
491 fi
492 subversion_src_unpack 469 subversion_src_unpack
493 else 470 else
494 [[ -z $KDE_S ]] && KDE_S="${S}" 471 [[ -z $KDE_S ]] && KDE_S="${S}"
495 if [[ -z $* ]]; then 472 if [[ -z $* ]]; then
496 # Unpack first and deal with KDE patches after examing possible patch sets. 473 # Unpack first and deal with KDE patches after examing possible patch sets.

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

  ViewVC Help
Powered by ViewVC 1.1.20