/[gentoo-x86]/eclass/subversion.eclass
Gentoo

Diff of /eclass/subversion.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.63 Revision 1.64
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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/subversion.eclass,v 1.63 2009/04/26 02:18:09 arfrever Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.64 2009/04/26 02:33:36 arfrever Exp $
4 4
5# @ECLASS: subversion.eclass 5# @ECLASS: subversion.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Akinori Hattori <hattya@gentoo.org> 7# Akinori Hattori <hattya@gentoo.org>
8# Bo ├śrsted Andresen <zlin@gentoo.org> 8# Bo ├śrsted Andresen <zlin@gentoo.org>
17 17
18inherit eutils 18inherit eutils
19 19
20ESVN="${ECLASS}" 20ESVN="${ECLASS}"
21 21
22if has "${EAPI}" 0 1; then
23 EXPORT_FUNCTIONS src_unpack src_prepare pkg_preinst
24else
22EXPORT_FUNCTIONS src_unpack pkg_preinst 25 EXPORT_FUNCTIONS src_unpack pkg_preinst
26fi
23 27
24DESCRIPTION="Based on the ${ECLASS} eclass" 28DESCRIPTION="Based on the ${ECLASS} eclass"
25 29
26DEPEND="dev-util/subversion 30DEPEND="dev-util/subversion
27 net-misc/rsync" 31 net-misc/rsync"
364 fi 368 fi
365} 369}
366 370
367# @FUNCTION: subversion_src_unpack 371# @FUNCTION: subversion_src_unpack
368# @DESCRIPTION: 372# @DESCRIPTION:
369# default src_unpack. fetch and bootstrap. 373# Default src_unpack. Fetch and, in older EAPIs, bootstrap.
370subversion_src_unpack() { 374subversion_src_unpack() {
371 subversion_fetch || die "${ESVN}: unknown problem occurred in subversion_fetch." 375 subversion_fetch || die "${ESVN}: unknown problem occurred in subversion_fetch."
376 if has "${EAPI}" 0 1; then
377 subversion_bootstrap || die "${ESVN}: unknown problem occurred in subversion_bootstrap."
378 fi
379}
380
381# @FUNCTION: subversion_src_prepare
382# @DESCRIPTION:
383# Default src_prepare. Bootstrap.
384subversion_src_prepare() {
372 subversion_bootstrap || die "${ESVN}: unknown problem occurred in subversion_bootstrap." 385 subversion_bootstrap || die "${ESVN}: unknown problem occurred in subversion_bootstrap."
373} 386}
374 387
375# @FUNCTION: subversion_wc_info 388# @FUNCTION: subversion_wc_info
376# @USAGE: [repo_uri] 389# @USAGE: [repo_uri]

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.64

  ViewVC Help
Powered by ViewVC 1.1.20