| 1 | # Copyright 1999-2012 Gentoo Foundation |
1 | # Copyright 1999-2012 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.62 2012/04/04 15:10:20 johu Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.64 2012/05/08 22:00:49 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 | # @ECLASS-VARIABLE: KDE4_STRICTER |
251 | # @ECLASS-VARIABLE: KDE4_STRICTER |
| 252 | # @DESCRIPTION: |
252 | # @DESCRIPTION: |
| 253 | # Print out all issues found executing tar / kmextract files |
253 | # Print out all issues found executing tar / kmextract files |
| 254 | # Set on if you want to find issues in kde-base ebuild unpack sequences |
254 | # Set on if you want to find issues in kde-base ebuild unpack sequences |
| 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 |
|
|
| 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" |
256 | tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} 2> /dev/null || echo "tar extract command failed at least partially - continuing anyway" |
| 261 | fi |
|
|
| 262 | |
257 | |
| 263 | # Default $S is based on $P; rename the extracted directory to match $S if necessary |
258 | # Default $S is based on $P; rename the extracted directory to match $S if necessary |
| 264 | if [[ ${KMNAME} != ${PN} ]]; then |
259 | if [[ ${KMNAME} != ${PN} ]]; then |
| 265 | mv ${topdir} ${P} || die "Died while moving \"${topdir}\" to \"${P}\"" |
260 | mv ${topdir} ${P} || die "Died while moving \"${topdir}\" to \"${P}\"" |
| 266 | fi |
261 | fi |