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

Diff of /eclass/kde4-functions.eclass

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

Revision 1.10 Revision 1.11
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-functions.eclass,v 1.10 2009/01/12 17:25:59 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-functions.eclass,v 1.11 2009/01/12 19:40:34 scarabeus Exp $
4 4
5# @ECLASS: kde4-functions.eclass 5# @ECLASS: kde4-functions.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# kde@gentoo.org 7# kde@gentoo.org
8# @BLURB: Common ebuild functions for KDE 4 packages 8# @BLURB: Common ebuild functions for KDE 4 packages
265 fi 265 fi
266 done 266 done
267 fi 267 fi
268} 268}
269 269
270# @FUNCTION: migrate_store_dir
271# @DESCRIPTION:
272# Migrate the remnants of ${ESVN_STORE_DIR}/KDE/ to ${ESVN_STORE_DIR}/.
273# Perform experimental split of kdebase to kdebase-apps.
274migrate_store_dir() {
275 local cleandir
276 cleandir="${ESVN_STORE_DIR}/KDE"
277 if [[ -d "${cleandir}" ]]; then
278 ewarn "'${cleandir}' has been found. Moving contents to new location."
279 addwrite "${ESVN_STORE_DIR}"
280 # Split kdebase
281 local module
282 if pushd "${cleandir}"/kdebase/kdebase > /dev/null; then
283 for module in `find . -maxdepth 1 -type d -name [a-z0-9]\*`; do
284 module="${module#./}"
285 mkdir -p "${ESVN_STORE_DIR}/kdebase-${module}" && mv -f "${module}" "${ESVN_STORE_DIR}/kdebase-${module}" || \
286 die "Failed to move to '${ESVN_STORE_DIR}/kdebase-${module}'."
287 done
288 popd > /dev/null
289 rm -fr "${cleandir}/kdebase" || \
290 die "Failed to remove ${cleandir}/kdebase. You need to remove it manually."
291 fi
292 # Move the rest
293 local pkg
294 for pkg in "${cleandir}"/*; do
295 mv -f "${pkg}" "${ESVN_STORE_DIR}"/ || eerror "failed to move ${pkg}"
296 done
297 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."
298 fi
299}
300
270# Functions handling KMLOADLIBS and KMSAVELIBS 301# Functions handling KMLOADLIBS and KMSAVELIBS
271 302
272# @FUNCTION: save_library_dependencies 303# @FUNCTION: save_library_dependencies
273# @DESCRIPTION: 304# @DESCRIPTION:
274# Add exporting CMake dependencies for current package 305# Add exporting CMake dependencies for current package

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20