| 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.45 2010/12/29 16:38:50 tampakrap 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. |
| … | |
… | |
| 243 | extractlist+=" ${topdir}${moduleprefix}${f}" |
243 | extractlist+=" ${topdir}${moduleprefix}${f}" |
| 244 | done |
244 | done |
| 245 | extractlist+=" $(__list_needed_subdirectories)" |
245 | extractlist+=" $(__list_needed_subdirectories)" |
| 246 | |
246 | |
| 247 | pushd "${WORKDIR}" > /dev/null |
247 | pushd "${WORKDIR}" > /dev/null |
| 248 | [[ -n ${KDE4_STRICTER} ]] && echo tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} >&2 |
248 | [[ -n ${KDE4_STRICTER} ]] && echo tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} |
| 249 | tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} 2> /dev/null |
249 | tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} || ewarn "tar extract command failed at least partially - continuing anyway" |
| 250 | |
250 | |
| 251 | # Default $S is based on $P; rename the extracted directory to match $S if necessary |
251 | # 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}\"" |
252 | mv ${topdir} ${P} || die "Died while moving \"${topdir}\" to \"${P}\"" |
| 253 | |
253 | |
| 254 | popd > /dev/null |
254 | popd > /dev/null |
| … | |
… | |
| 354 | KMEXTRACTONLY+=" |
354 | KMEXTRACTONLY+=" |
| 355 | kdeutils-version.h" |
355 | kdeutils-version.h" |
| 356 | ;; |
356 | ;; |
| 357 | koffice) |
357 | koffice) |
| 358 | KMEXTRACTONLY+=" |
358 | KMEXTRACTONLY+=" |
| 359 | config-endian.h.cmake |
|
|
| 360 | filters/config-filters.h.cmake |
359 | filters/config-filters.h.cmake |
| 361 | config-openexr.h.cmake |
|
|
| 362 | config-opengl.h.cmake |
|
|
| 363 | config-prefix.h.cmake |
|
|
| 364 | " |
360 | " |
| 365 | case ${PV} in |
361 | case ${PV} in |
| 366 | 2.0.*) |
362 | 2.0.*) |
| 367 | KMEXTRACTONLY+=" |
363 | KMEXTRACTONLY+=" |
| 368 | config-openctl.h.cmake" |
364 | config-openctl.h.cmake |
|
|
365 | config-endian.h.cmake |
|
|
366 | config-openexr.h.cmake |
|
|
367 | config-opengl.h.cmake |
|
|
368 | config-prefix.h.cmake" |
|
|
369 | ;; |
|
|
370 | 2.[12].*) |
|
|
371 | KMEXTRACTONLY+=" |
|
|
372 | config-endian.h.cmake |
|
|
373 | config-openexr.h.cmake |
|
|
374 | config-opengl.h.cmake |
|
|
375 | config-prefix.h.cmake" |
| 369 | ;; |
376 | ;; |
| 370 | esac |
377 | esac |
| 371 | ;; |
378 | ;; |
| 372 | esac |
379 | esac |
| 373 | # Don't install cmake modules for split ebuilds, to avoid collisions. |
380 | # Don't install cmake modules for split ebuilds, to avoid collisions. |