/[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.43 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.43 2010/09/15 11:06:33 reavertm 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
228 ;;
229 kdepim)
230 if [[ ${PV} == 4.5.93 ]] ; then
231 tarball="kdepim-4.6beta3.tar.${postfix}"
232 else
233 tarball="${KMNAME}-${PV}.tar.${postfix}"
234 fi
222 ;; 235 ;;
223 *) 236 *)
224 # Create tarball name from module name (this is the default) 237 # Create tarball name from module name (this is the default)
225 tarball="${KMNAME}-${PV}.tar.${postfix}" 238 tarball="${KMNAME}-${PV}.tar.${postfix}"
226 ;; 239 ;;
243 extractlist+=" ${topdir}${moduleprefix}${f}" 256 extractlist+=" ${topdir}${moduleprefix}${f}"
244 done 257 done
245 extractlist+=" $(__list_needed_subdirectories)" 258 extractlist+=" $(__list_needed_subdirectories)"
246 259
247 pushd "${WORKDIR}" > /dev/null 260 pushd "${WORKDIR}" > /dev/null
248 [[ -n ${KDE4_STRICTER} ]] && echo tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} >&2 261 [[ -n ${KDE4_STRICTER} ]] && echo tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist}
249 tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} 2> /dev/null 262 if [[ ${I_KNOW_WHAT_I_AM_DOING} ]]; then
263 # to make the devs happy - bug 338397
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
250 268
251 # 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
252 mv ${topdir} ${P} || die "Died while moving \"${topdir}\" to \"${P}\"" 270 mv ${topdir} ${P} || die "Died while moving \"${topdir}\" to \"${P}\""
253 271
254 popd > /dev/null 272 popd > /dev/null
298 # Add some CMake-files to KMEXTRACTONLY. 316 # Add some CMake-files to KMEXTRACTONLY.
299 # Note that this actually doesn't include KMEXTRA handling. 317 # Note that this actually doesn't include KMEXTRA handling.
300 # 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
301 case ${KMNAME} in 319 case ${KMNAME} in
302 kdebase) 320 kdebase)
321 case ${PV} in
322 4.6.1)
303 KMEXTRACTONLY+=" 323 KMEXTRACTONLY+="
324 config-apps.h.cmake
325 ConfigureChecks.cmake"
326 ;;
327 *)
328 KMEXTRACTONLY+="
304 apps/config-apps.h.cmake 329 apps/config-apps.h.cmake
305 apps/ConfigureChecks.cmake" 330 apps/ConfigureChecks.cmake"
331 ;;
332 esac
306 ;; 333 ;;
307 kdebase-apps) 334 kdebase-apps)
308 KMEXTRACTONLY+=" 335 KMEXTRACTONLY+="
309 config-apps.h.cmake 336 config-apps.h.cmake
310 ConfigureChecks.cmake" 337 ConfigureChecks.cmake"
354 KMEXTRACTONLY+=" 381 KMEXTRACTONLY+="
355 kdeutils-version.h" 382 kdeutils-version.h"
356 ;; 383 ;;
357 koffice) 384 koffice)
358 KMEXTRACTONLY+=" 385 KMEXTRACTONLY+="
359 config-endian.h.cmake
360 filters/config-filters.h.cmake 386 filters/config-filters.h.cmake
361 config-openexr.h.cmake
362 config-opengl.h.cmake
363 config-prefix.h.cmake
364 " 387 "
365 case ${PV} in 388 case ${PV} in
366 2.0.*) 389 2.0.*)
367 KMEXTRACTONLY+=" 390 KMEXTRACTONLY+="
368 config-openctl.h.cmake" 391 config-openctl.h.cmake
392 config-endian.h.cmake
393 config-openexr.h.cmake
394 config-opengl.h.cmake
395 config-prefix.h.cmake"
396 ;;
397 2.[12].*)
398 KMEXTRACTONLY+="
399 config-endian.h.cmake
400 config-openexr.h.cmake
401 config-opengl.h.cmake
402 config-prefix.h.cmake"
369 ;; 403 ;;
370 esac 404 esac
371 ;; 405 ;;
372 esac 406 esac
373 # Don't install cmake modules for split ebuilds, to avoid collisions. 407 # Don't install cmake modules for split ebuilds, to avoid collisions.

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

  ViewVC Help
Powered by ViewVC 1.1.20