/[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.54 Revision 1.57
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 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.54 2011/06/15 22:03:13 abcd Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-functions.eclass,v 1.57 2011/10/06 14:13:29 alexxy Exp $
4 4
5inherit versionator 5inherit versionator
6 6
7# @ECLASS: kde4-functions.eclass 7# @ECLASS: kde4-functions.eclass
8# @MAINTAINER: 8# @MAINTAINER:
260 mv -f "${pkg}" "${ESVN_STORE_DIR}"/ || eerror "Failed to move '${pkg}'" 260 mv -f "${pkg}" "${ESVN_STORE_DIR}"/ || eerror "Failed to move '${pkg}'"
261 done 261 done
262 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." 262 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."
263 fi 263 fi
264 264
265 if ! hasq kde4-meta ${INHERITED}; then 265 if ! has kde4-meta ${INHERITED}; then
266 case ${KMNAME} in 266 case ${KMNAME} in
267 extragear*|playground*) 267 extragear*|playground*)
268 local scmlocalpath="${ESVN_STORE_DIR}"/"${KMNAME}"/"${PN}" 268 local scmlocalpath="${ESVN_STORE_DIR}"/"${KMNAME}"/"${PN}"
269 if [[ -d "${scmlocalpath}" ]]; then 269 if [[ -d "${scmlocalpath}" ]]; then
270 local destdir="${ESVN_STORE_DIR}"/"${ESVN_PROJECT}"/"`basename "${ESVN_REPO_URI}"`" 270 local destdir="${ESVN_STORE_DIR}"/"${ESVN_PROJECT}"/"`basename "${ESVN_REPO_URI}"`"
416 ver=${PV} 416 ver=${PV}
417 fi 417 fi
418 418
419 [[ -z ${1} ]] && die "Missing parameter" 419 [[ -z ${1} ]] && die "Missing parameter"
420 420
421 # There will be no kdelibs 4.8+ (the next kdelibs will be a non-BC 5.0, apparently)
422 if [[ ${1} == kdelibs ]] && version_is_at_least 4.7.50 ${ver}; then
423 ver=4.7.1
424 fi
425
421 echo " >=kde-base/${1}-${ver}:4[aqua=${2:+,${2}}]" 426 echo " >=kde-base/${1}-${ver}:4[aqua=${2:+,${2}}]"
422} 427}
423 428
424# local function to enable specified translations for specified directory 429# local function to enable specified translations for specified directory
425# used from kde4-functions_enable_selected_linguas function 430# used from kde4-functions_enable_selected_linguas function
470 475
471 popd > /dev/null 476 popd > /dev/null
472} 477}
473 478
474# @FUNCTION: get_kde_version 479# @FUNCTION: get_kde_version
480# @DESCRIPTION:
475# Translates an ebuild version into a major.minor KDE SC 481# Translates an ebuild version into a major.minor KDE SC
476# release version. If no version is specified, ${PV} is used. 482# release version. If no version is specified, ${PV} is used.
477get_kde_version() { 483get_kde_version() {
478 local ver=${1:-${PV}} 484 local ver=${1:-${PV}}
479 local major=$(get_major_version ${ver}) 485 local major=$(get_major_version ${ver})

Legend:
Removed from v.1.54  
changed lines
  Added in v.1.57

  ViewVC Help
Powered by ViewVC 1.1.20