1  # Copyright 20072008 Gentoo Foundation 
1  # Copyright 20072008 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/gentoox86/eclass/kde4base.eclass,v 1.18 2008/11/22 01:23:31 jmbsvicetto Exp $ 
3  # $Header: /var/cvsroot/gentoox86/eclass/kde4base.eclass,v 1.19 2008/12/07 11:39:32 jmbsvicetto Exp $ 
4  
4  
5  # @ECLASS: kde4base.eclass 
5  # @ECLASS: kde4base.eclass 
6  # @MAINTAINER: 
6  # @MAINTAINER: 
7  # kde@gentoo.org 
7  # kde@gentoo.org 
8  # @BLURB: This eclass provides functions for kde 4.X ebuilds 
8  # @BLURB: This eclass provides functions for kde 4.X ebuilds 
…  
…  
289  fi 
289  fi 
290  done 
290  done 
291  ;; 
291  ;; 
292  esac 
292  esac 
293  
293  


294  # Adding kdelibs, kdepimlibs and kdebasedata deps to all other packages. 
294  # We only need to add the dependencies if ${PN} is not "kdelibs" or "kdepimlibs" 
295  # We only need to add the dependencies if ${PN} is not "kdelibs" or "kdepimlibs" 
295  if [[ ${PN} != "kdelibs" ]]; then 
296  if [[ ${PN} != "kdelibs" ]]; then 
296  case "${EAPI}" in 
297  case "${EAPI}" in 
297  2  2_pre3  2_pre2  2_pre1) 
298  2  2_pre3  2_pre2  2_pre1) 
298  DEPEND="${DEPEND} ${_operator}kdebase/kdelibs${_pv}[kdeprefix=]" 
299  DEPEND="${DEPEND} ${_operator}kdebase/kdelibs${_pv}[kdeprefix=]" 
…  
…  
310  RDEPEND="${RDEPEND} ${_operator}kdebase/kdepimlibs${_pv}[kdeprefix=]" 
311  RDEPEND="${RDEPEND} ${_operator}kdebase/kdepimlibs${_pv}[kdeprefix=]" 
311  ;; 
312  ;; 
312  *) 
313  *) 
313  DEPEND="${DEPEND} ${_operator}kdebase/kdepimlibs${_pv}" 
314  DEPEND="${DEPEND} ${_operator}kdebase/kdepimlibs${_pv}" 
314  RDEPEND="${RDEPEND} ${_operator}kdebase/kdepimlibs${_pv}" 
315  RDEPEND="${RDEPEND} ${_operator}kdebase/kdepimlibs${_pv}" 


316  esac 


317  if [[ ${PN} != "kdebasedata" ]]; then 


318  case "${EAPI}" in 


319  2) 


320  RDEPEND="${RDEPEND} ${_operator}kdebase/kdebasedata${_pv}[kdeprefix=]" 


321  ;; 


322  *) 


323  RDEPEND="${RDEPEND} ${_operator}kdebase/kdebasedata${_pv}" 


324  ;; 
315  esac 
325  esac 


326  fi 
316  fi 
327  fi 
317  fi 
328  fi 
318  
329  
319  unset _operator _pv 
330  unset _operator _pv 
320  fi 
331  fi 