| 1 | # Copyright 1999-2011 Gentoo Foundation |
1 | # Copyright 1999-2011 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/base.eclass,v 1.55 2011/12/14 23:38:09 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/base.eclass,v 1.56 2012/02/06 21:33:59 vapier Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: base.eclass |
5 | # @ECLASS: base.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # QA Team <qa@gentoo.org> |
7 | # QA Team <qa@gentoo.org> |
| 8 | # @AUTHOR: |
8 | # @AUTHOR: |
| … | |
… | |
| 57 | base_src_unpack() { |
57 | base_src_unpack() { |
| 58 | debug-print-function $FUNCNAME "$@" |
58 | debug-print-function $FUNCNAME "$@" |
| 59 | |
59 | |
| 60 | pushd "${WORKDIR}" > /dev/null |
60 | pushd "${WORKDIR}" > /dev/null |
| 61 | |
61 | |
| 62 | [[ -n "${A}" ]] && unpack ${A} |
62 | if [[ $(type -t unpacker_src_unpack) == "function" ]] ; then |
|
|
63 | unpacker_src_unpack |
|
|
64 | elif [[ -n ${A} ]] ; then |
|
|
65 | unpack ${A} |
|
|
66 | fi |
| 63 | has src_prepare ${BASE_EXPF} || base_src_prepare |
67 | has src_prepare ${BASE_EXPF} || base_src_prepare |
| 64 | |
68 | |
| 65 | popd > /dev/null |
69 | popd > /dev/null |
| 66 | } |
70 | } |
| 67 | |
71 | |