diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-04-26 02:33:36 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-04-26 02:33:36 +0000 |
commit | 1a10dfbb30a4ef7b2d4f365cc3dde903d2e9449a (patch) | |
tree | fb3897ffba3ea75cab23ea9ac283617cbb750835 /eclass | |
parent | Support ESVN_USER and ESVN_PASSWORD variables. (diff) | |
download | gentoo-2-1a10dfbb30a4ef7b2d4f365cc3dde903d2e9449a.tar.gz gentoo-2-1a10dfbb30a4ef7b2d4f365cc3dde903d2e9449a.tar.bz2 gentoo-2-1a10dfbb30a4ef7b2d4f365cc3dde903d2e9449a.zip |
Update for EAPI="2".
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/subversion.eclass | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/eclass/subversion.eclass b/eclass/subversion.eclass index 2feada8ed5c0..f76bb6dbdf3f 100644 --- a/eclass/subversion.eclass +++ b/eclass/subversion.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.63 2009/04/26 02:18:09 arfrever Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.64 2009/04/26 02:33:36 arfrever Exp $ # @ECLASS: subversion.eclass # @MAINTAINER: @@ -19,7 +19,11 @@ inherit eutils ESVN="${ECLASS}" -EXPORT_FUNCTIONS src_unpack pkg_preinst +if has "${EAPI}" 0 1; then + EXPORT_FUNCTIONS src_unpack src_prepare pkg_preinst +else + EXPORT_FUNCTIONS src_unpack pkg_preinst +fi DESCRIPTION="Based on the ${ECLASS} eclass" @@ -366,9 +370,18 @@ subversion_bootstrap() { # @FUNCTION: subversion_src_unpack # @DESCRIPTION: -# default src_unpack. fetch and bootstrap. +# Default src_unpack. Fetch and, in older EAPIs, bootstrap. subversion_src_unpack() { subversion_fetch || die "${ESVN}: unknown problem occurred in subversion_fetch." + if has "${EAPI}" 0 1; then + subversion_bootstrap || die "${ESVN}: unknown problem occurred in subversion_bootstrap." + fi +} + +# @FUNCTION: subversion_src_prepare +# @DESCRIPTION: +# Default src_prepare. Bootstrap. +subversion_src_prepare() { subversion_bootstrap || die "${ESVN}: unknown problem occurred in subversion_bootstrap." } |