/[gentoo-x86]/eclass/kde4-meta.eclass
Gentoo

Diff of /eclass/kde4-meta.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.46 Revision 1.49
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2010 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-meta.eclass,v 1.46 2010/12/29 17:06:51 tampakrap Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.49 2011/03/04 23:19:12 dilfridge Exp $
4# 4#
5# @ECLASS: kde4-meta.eclass 5# @ECLASS: kde4-meta.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# kde@gentoo.org 7# kde@gentoo.org
8# @BLURB: Eclass for writing "split" KDE packages. 8# @BLURB: Eclass for writing "split" KDE packages.
214 esac 214 esac
215 case ${KMNAME} in 215 case ${KMNAME} in
216 kdebase-apps) 216 kdebase-apps)
217 # kdebase/apps -> kdebase-apps 217 # kdebase/apps -> kdebase-apps
218 tarball="kdebase-${PV}.tar.${postfix}" 218 tarball="kdebase-${PV}.tar.${postfix}"
219 case ${PV} in
220 4.6.1)
221 ;;
222 *)
219 # Go one level deeper for kdebase-apps in tarballs 223 # Go one level deeper for kdebase-apps in tarballs
220 moduleprefix=apps/ 224 moduleprefix=apps/
221 KMTARPARAMS+=" --transform=s|apps/||" 225 KMTARPARAMS+=" --transform=s|apps/||"
226 ;;
227 esac
222 ;; 228 ;;
223 kdepim) 229 kdepim)
224 if [[ ${PV} == 4.5.93 ]] ; then 230 if [[ ${PV} == 4.5.93 ]] ; then
225 tarball="kdepim-4.6beta3.tar.${postfix}" 231 tarball="kdepim-4.6beta3.tar.${postfix}"
232 else
233 tarball="${KMNAME}-${PV}.tar.${postfix}"
226 fi 234 fi
227 ;; 235 ;;
228 *) 236 *)
229 # Create tarball name from module name (this is the default) 237 # Create tarball name from module name (this is the default)
230 tarball="${KMNAME}-${PV}.tar.${postfix}" 238 tarball="${KMNAME}-${PV}.tar.${postfix}"
249 done 257 done
250 extractlist+=" $(__list_needed_subdirectories)" 258 extractlist+=" $(__list_needed_subdirectories)"
251 259
252 pushd "${WORKDIR}" > /dev/null 260 pushd "${WORKDIR}" > /dev/null
253 [[ -n ${KDE4_STRICTER} ]] && echo tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} 261 [[ -n ${KDE4_STRICTER} ]] && echo tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist}
262 if [[ ${I_KNOW_WHAT_I_AM_DOING} ]]; then
263 # to make the devs happy - bug 338397
254 tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} || ewarn "tar extract command failed at least partially - continuing anyway" 264 tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} || ewarn "tar extract command failed at least partially - continuing anyway"
265 else
266 tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} 2> /dev/null || echo "tar extract command failed at least partially - continuing anyway"
267 fi
255 268
256 # Default $S is based on $P; rename the extracted directory to match $S if necessary 269 # Default $S is based on $P; rename the extracted directory to match $S if necessary
257 mv ${topdir} ${P} || die "Died while moving \"${topdir}\" to \"${P}\"" 270 mv ${topdir} ${P} || die "Died while moving \"${topdir}\" to \"${P}\""
258 271
259 popd > /dev/null 272 popd > /dev/null
303 # Add some CMake-files to KMEXTRACTONLY. 316 # Add some CMake-files to KMEXTRACTONLY.
304 # Note that this actually doesn't include KMEXTRA handling. 317 # Note that this actually doesn't include KMEXTRA handling.
305 # In those cases you should care to add the relevant files to KMEXTRACTONLY 318 # In those cases you should care to add the relevant files to KMEXTRACTONLY
306 case ${KMNAME} in 319 case ${KMNAME} in
307 kdebase) 320 kdebase)
321 case ${PV} in
322 4.6.1)
308 KMEXTRACTONLY+=" 323 KMEXTRACTONLY+="
324 config-apps.h.cmake
325 ConfigureChecks.cmake"
326 ;;
327 *)
328 KMEXTRACTONLY+="
309 apps/config-apps.h.cmake 329 apps/config-apps.h.cmake
310 apps/ConfigureChecks.cmake" 330 apps/ConfigureChecks.cmake"
331 ;;
332 esac
311 ;; 333 ;;
312 kdebase-apps) 334 kdebase-apps)
313 KMEXTRACTONLY+=" 335 KMEXTRACTONLY+="
314 config-apps.h.cmake 336 config-apps.h.cmake
315 ConfigureChecks.cmake" 337 ConfigureChecks.cmake"

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.49

  ViewVC Help
Powered by ViewVC 1.1.20