/[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.45 Revision 1.48
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.45 2011/04/06 14:22:14 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-functions.eclass,v 1.48 2011/05/24 20:54:58 abcd Exp $
4 4
5inherit versionator 5inherit versionator
6 6
7# @ECLASS: kde4-functions.eclass 7# @ECLASS: kde4-functions.eclass
8# @MAINTAINER: 8# @MAINTAINER:
46 46
47# @ECLASS-VARIABLE: KDE_SLOTS 47# @ECLASS-VARIABLE: KDE_SLOTS
48# @DESCRIPTION: 48# @DESCRIPTION:
49# The slots used by all KDE versions later than 4.0. The live KDE releases use 49# The slots used by all KDE versions later than 4.0. The live KDE releases use
50# KDE_LIVE_SLOTS instead. Values should be ordered. 50# KDE_LIVE_SLOTS instead. Values should be ordered.
51KDE_SLOTS=( "4.1" "4.2" "4.3" "4.4" "4.5" "4.6" ) 51KDE_SLOTS=( "4.1" "4.2" "4.3" "4.4" "4.5" "4.6" "4.7" )
52 52
53# @ECLASS-VARIABLE: KDE_LIVE_SLOTS 53# @ECLASS-VARIABLE: KDE_LIVE_SLOTS
54# @DESCRIPTION: 54# @DESCRIPTION:
55# The slots used by KDE live versions. Values should be ordered. 55# The slots used by KDE live versions. Values should be ordered.
56KDE_LIVE_SLOTS=( "live" ) 56KDE_LIVE_SLOTS=( "live" )
129 # fix permission for some directories 129 # fix permission for some directories
130 for x in share/{config,kde4}; do 130 for x in share/{config,kde4}; do
131 [[ ${KDEDIR} == /usr ]] && DIRS=${EROOT}usr || DIRS="${EROOT}usr ${EROOT}${KDEDIR}" 131 [[ ${KDEDIR} == /usr ]] && DIRS=${EROOT}usr || DIRS="${EROOT}usr ${EROOT}${KDEDIR}"
132 for y in ${DIRS}; do 132 for y in ${DIRS}; do
133 [[ -d "${y}/${x}" ]] || break # nothing to do if directory does not exist 133 [[ -d "${y}/${x}" ]] || break # nothing to do if directory does not exist
134 # fixes Bug 318237
135 if use userland_BSD ; then
136 [[ $(stat -f %p "${y}/${x}") != 40755 ]]
137 local stat_rtn="$?"
138 else
134 if [[ $(stat --format=%a "${y}/${x}") != 755 ]]; then 139 [[ $(stat --format=%a "${y}/${x}") != 755 ]]
140 local stat_rtn=$?
141 fi
142 if [[ $stat_rtn != 1 ]] ; then
135 ewarn "QA Notice:" 143 ewarn "QA Notice:"
136 ewarn "Package ${PN} is breaking ${y}/${x} permissions." 144 ewarn "Package ${PN} is breaking ${y}/${x} permissions."
137 ewarn "Please report this issue to gentoo bugzilla." 145 ewarn "Please report this issue to gentoo bugzilla."
138 einfo "Permissions will get adjusted automatically now." 146 einfo "Permissions will get adjusted automatically now."
139 find "${y}/${x}" -type d -print0 | xargs -0 chmod 755 147 find "${y}/${x}" -type d -print0 | xargs -0 chmod 755
418 426
419 local use=${2:+,${2}} 427 local use=${2:+,${2}}
420 428
421 if [[ ${KDEBASE} = kde-base ]]; then 429 if [[ ${KDEBASE} = kde-base ]]; then
422 echo " !kdeprefix? ( >=kde-base/${1}-${ver}[aqua=,-kdeprefix${use}] )" 430 echo " !kdeprefix? ( >=kde-base/${1}-${ver}[aqua=,-kdeprefix${use}] )"
431 # kdeprefix is no-go for kdepim 4.4
432 [[ ( ${KMNAME} == kdepim || ${PN} == kdepim-runtime ) && ${SLOT} == 4.4 ]] || \
423 echo " kdeprefix? ( >=kde-base/${1}-${ver}:${SLOT}[aqua=,kdeprefix${use}] )" 433 echo " kdeprefix? ( >=kde-base/${1}-${ver}:${SLOT}[aqua=,kdeprefix${use}] )"
424 elif [[ ${ver} == live ]]; then 434 elif [[ ${ver} == live ]]; then
425 echo " kde-base/${1}:live[aqua=${use}]" 435 echo " kde-base/${1}:live[aqua=${use}]"
426 else 436 else
427 echo " >=kde-base/${1}-${ver}[aqua=${use}]" 437 echo " >=kde-base/${1}-${ver}[aqua=${use}]"
428 fi 438 fi

Legend:
Removed from v.1.45  
changed lines
  Added in v.1.48

  ViewVC Help
Powered by ViewVC 1.1.20