| 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.47 2010/12/29 17:56:34 tampakrap Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.48 2011/01/12 21:24:58 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. |
| … | |
… | |
| 251 | done |
251 | done |
| 252 | extractlist+=" $(__list_needed_subdirectories)" |
252 | extractlist+=" $(__list_needed_subdirectories)" |
| 253 | |
253 | |
| 254 | pushd "${WORKDIR}" > /dev/null |
254 | pushd "${WORKDIR}" > /dev/null |
| 255 | [[ -n ${KDE4_STRICTER} ]] && echo tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} |
255 | [[ -n ${KDE4_STRICTER} ]] && echo tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} |
|
|
256 | if [[ ${I_KNOW_WHAT_I_AM_DOING} ]]; then |
|
|
257 | # to make the devs happy - bug 338397 |
| 256 | tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} || ewarn "tar extract command failed at least partially - continuing anyway" |
258 | tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} || ewarn "tar extract command failed at least partially - continuing anyway" |
|
|
259 | else |
|
|
260 | tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} 2> /dev/null || echo "tar extract command failed at least partially - continuing anyway" |
|
|
261 | fi |
| 257 | |
262 | |
| 258 | # Default $S is based on $P; rename the extracted directory to match $S if necessary |
263 | # Default $S is based on $P; rename the extracted directory to match $S if necessary |
| 259 | mv ${topdir} ${P} || die "Died while moving \"${topdir}\" to \"${P}\"" |
264 | mv ${topdir} ${P} || die "Died while moving \"${topdir}\" to \"${P}\"" |
| 260 | |
265 | |
| 261 | popd > /dev/null |
266 | popd > /dev/null |