/[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.66 Revision 1.67
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-functions.eclass,v 1.66 2013/08/15 14:52:58 kensington Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-functions.eclass,v 1.67 2013/08/15 15:10:05 kensington Exp $
4 4
5inherit versionator 5inherit versionator
6 6
7# @ECLASS: kde4-functions.eclass 7# @ECLASS: kde4-functions.eclass
8# @MAINTAINER: 8# @MAINTAINER:
59 kdebase-workspace) 59 kdebase-workspace)
60 EGIT_REPONAME=${EGIT_REPONAME:=kde-workspace} 60 EGIT_REPONAME=${EGIT_REPONAME:=kde-workspace}
61 ;; 61 ;;
62 kdebase-runtime) 62 kdebase-runtime)
63 EGIT_REPONAME=${EGIT_REPONAME:=kde-runtime} 63 EGIT_REPONAME=${EGIT_REPONAME:=kde-runtime}
64 ;;
65 kdebase-apps)
66 EGIT_REPONAME=${EGIT_REPONAME:=kde-baseapps}
67 ;; 64 ;;
68 esac 65 esac
69fi 66fi
70 67
71# @ECLASS-VARIABLE: KDE_SCM 68# @ECLASS-VARIABLE: KDE_SCM
217 done 214 done
218 fi 215 fi
219 216
220 done 217 done
221 [[ -n "${linguas}" ]] && einfo "Enabling handbook translations:${linguas}" 218 [[ -n "${linguas}" ]] && einfo "Enabling handbook translations:${linguas}"
222}
223
224# @FUNCTION: migrate_store_dir
225# @DESCRIPTION:
226# Universal store dir migration
227# * performs split of kdebase to kdebase-apps when needed
228# * moves playground/extragear kde4-base-style to toplevel dir
229migrate_store_dir() {
230 if [[ ${KDE_SCM} != svn ]]; then
231 die "migrate_store_dir() only makes sense for subversion"
232 fi
233
234 local cleandir="${ESVN_STORE_DIR}/KDE"
235
236 if [[ -d ${cleandir} ]]; then
237 ewarn "'${cleandir}' has been found. Moving contents to new location."
238 addwrite "${ESVN_STORE_DIR}"
239 # Split kdebase
240 local module
241 if pushd "${cleandir}"/kdebase/kdebase > /dev/null; then
242 for module in `find . -maxdepth 1 -type d -name [a-z0-9]\*`; do
243 module="${module#./}"
244 mkdir -p "${ESVN_STORE_DIR}/kdebase-${module}" && mv -f "${module}" "${ESVN_STORE_DIR}/kdebase-${module}" || \
245 die "Failed to move to '${ESVN_STORE_DIR}/kdebase-${module}'."
246 done
247 popd > /dev/null
248 rm -fr "${cleandir}/kdebase" || \
249 die "Failed to remove ${cleandir}/kdebase. You need to remove it manually."
250 fi
251 # Move the rest
252 local pkg
253 for pkg in "${cleandir}"/*; do
254 mv -f "${pkg}" "${ESVN_STORE_DIR}"/ || eerror "Failed to move '${pkg}'"
255 done
256 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."
257 fi
258
259 if ! has kde4-meta ${INHERITED}; then
260 case ${KMNAME} in
261 extragear*|playground*)
262 local scmlocalpath="${ESVN_STORE_DIR}"/"${KMNAME}"/"${PN}"
263 if [[ -d "${scmlocalpath}" ]]; then
264 local destdir="${ESVN_STORE_DIR}"/"${ESVN_PROJECT}"/"`basename "${ESVN_REPO_URI}"`"
265 ewarn "'${scmlocalpath}' has been found."
266 ewarn "Moving contents to new location: ${destdir}"
267 addwrite "${ESVN_STORE_DIR}"
268 mkdir -p "${ESVN_STORE_DIR}"/"${ESVN_PROJECT}" && mv -f "${scmlocalpath}" "${destdir}" \
269 || die "Failed to move to '${scmlocalpath}'"
270 # Try cleaning empty directories
271 rmdir "`dirname "${scmlocalpath}"`" 2> /dev/null
272 fi
273 ;;
274 esac
275 fi
276} 219}
277 220
278# Functions handling KMLOADLIBS and KMSAVELIBS 221# Functions handling KMLOADLIBS and KMSAVELIBS
279 222
280# @FUNCTION: save_library_dependencies 223# @FUNCTION: save_library_dependencies

Legend:
Removed from v.1.66  
changed lines
  Added in v.1.67

  ViewVC Help
Powered by ViewVC 1.1.20