diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2009-01-12 19:40:34 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2009-01-12 19:40:34 +0000 |
commit | 3818b15b3ec226c1803aa90387ef0d787852dc3b (patch) | |
tree | a3ab8d49d183c255ceed524fe6367accb402ce2f /eclass/kde4-functions.eclass | |
parent | Fixup latex-unicode deps: it has been moved to texlive-latexextra for the 200... (diff) | |
download | gentoo-2-3818b15b3ec226c1803aa90387ef0d787852dc3b.tar.gz gentoo-2-3818b15b3ec226c1803aa90387ef0d787852dc3b.tar.bz2 gentoo-2-3818b15b3ec226c1803aa90387ef0d787852dc3b.zip |
Add one missed patch for the eclasses. Affect only live stuff so no breakage for tree users. Thanks reavertm for pointing out.
Diffstat (limited to 'eclass/kde4-functions.eclass')
-rw-r--r-- | eclass/kde4-functions.eclass | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/eclass/kde4-functions.eclass b/eclass/kde4-functions.eclass index a97dc703f2d6..106ccaeb0713 100644 --- a/eclass/kde4-functions.eclass +++ b/eclass/kde4-functions.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-functions.eclass,v 1.10 2009/01/12 17:25:59 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-functions.eclass,v 1.11 2009/01/12 19:40:34 scarabeus Exp $ # @ECLASS: kde4-functions.eclass # @MAINTAINER: @@ -267,6 +267,37 @@ get_latest_kdedir() { fi } +# @FUNCTION: migrate_store_dir +# @DESCRIPTION: +# Migrate the remnants of ${ESVN_STORE_DIR}/KDE/ to ${ESVN_STORE_DIR}/. +# Perform experimental split of kdebase to kdebase-apps. +migrate_store_dir() { + local cleandir + cleandir="${ESVN_STORE_DIR}/KDE" + if [[ -d "${cleandir}" ]]; then + ewarn "'${cleandir}' has been found. Moving contents to new location." + addwrite "${ESVN_STORE_DIR}" + # Split kdebase + local module + if pushd "${cleandir}"/kdebase/kdebase > /dev/null; then + for module in `find . -maxdepth 1 -type d -name [a-z0-9]\*`; do + module="${module#./}" + mkdir -p "${ESVN_STORE_DIR}/kdebase-${module}" && mv -f "${module}" "${ESVN_STORE_DIR}/kdebase-${module}" || \ + die "Failed to move to '${ESVN_STORE_DIR}/kdebase-${module}'." + done + popd > /dev/null + rm -fr "${cleandir}/kdebase" || \ + die "Failed to remove ${cleandir}/kdebase. You need to remove it manually." + fi + # Move the rest + local pkg + for pkg in "${cleandir}"/*; do + mv -f "${pkg}" "${ESVN_STORE_DIR}"/ || eerror "failed to move ${pkg}" + done + 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." + fi +} + # Functions handling KMLOADLIBS and KMSAVELIBS # @FUNCTION: save_library_dependencies |