/[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.11 Revision 1.12
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.11 2009/01/12 19:40:34 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-functions.eclass,v 1.12 2009/02/10 20:07:24 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
224# We set up KDEDIR according to the latest KDE version installed; installing our 224# We set up KDEDIR according to the latest KDE version installed; installing our
225# package for all available installs is just insane. 225# package for all available installs is just insane.
226# We can check for kdelibs because it is the most basic package; no KDE package 226# We can check for kdelibs because it is the most basic package; no KDE package
227# working without it. This might be changed in future. 227# working without it. This might be changed in future.
228get_latest_kdedir() { 228get_latest_kdedir() {
229 if [[ $NEED_KDE = latest && $KDEBASE != kde-base ]]; then
230 case ${KDE_WANTED} in 229 case ${KDE_WANTED} in
231 # note this will need to be updated as stable moves and so on 230 # note this will need to be updated as stable moves and so on
232 live) 231 live)
233 _versions="9999 4.1.69 4.1.0" 232 _versions="9999 4.1.69 4.1.0"
233 ;;
234 snapshot)
235 _versions="4.1.69 4.1.0 9999"
236 ;;
237 testing)
238 _versions="4.1.0 4.1.69 9999"
239 ;;
240 stable)
241 _versions="4.1.0 4.1.69 9999"
242 ;;
243 *) die "KDE_WANTED=${KDE_WANTED} not supported here." ;;
244 esac
245 # check if exists and fallback as we go
246 for X in ${_versions}; do
247 if has_version ">=kde-base/kdelibs-${X}"; then
248 # figure out which X we are in and set it into _kdedir
249 case ${X} in
250 # also keep track here same for kde_wanted
251 9999)
252 _kdedir="live"
253 break
234 ;; 254 ;;
235 snapshot) 255 4.1.69)
236 _versions="4.1.69 4.1.0 9999" 256 _kdedir="4.2"
257 break
237 ;; 258 ;;
238 testing) 259 4.1.0)
239 _versions="4.1.0 4.1.69 9999" 260 _kdedir="4.1"
261 break
240 ;; 262 ;;
241 stable)
242 _versions="4.1.0 4.1.69 9999"
243 ;;
244 *) die "KDE_WANTED=${KDE_WANTED} not supported here." ;;
245 esac
246 # check if exists and fallback as we go
247 for X in ${_versions}; do
248 if has_version ">=kde-base/kdelibs-${X}"; then
249 # figure out which X we are in and set it into _kdedir
250 case ${X} in
251 # also keep track here same for kde_wanted
252 9999)
253 _kdedir="live"
254 break
255 ;;
256 4.1.69)
257 _kdedir="4.2"
258 break
259 ;;
260 4.1.0)
261 _kdedir="4.1"
262 break
263 ;;
264 esac 263 esac
265 fi 264 fi
266 done 265 done
267 fi
268} 266}
269 267
270# @FUNCTION: migrate_store_dir 268# @FUNCTION: migrate_store_dir
271# @DESCRIPTION: 269# @DESCRIPTION:
272# Migrate the remnants of ${ESVN_STORE_DIR}/KDE/ to ${ESVN_STORE_DIR}/. 270# Migrate the remnants of ${ESVN_STORE_DIR}/KDE/ to ${ESVN_STORE_DIR}/.

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

  ViewVC Help
Powered by ViewVC 1.1.20