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

Diff of /eclass/subversion.eclass

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

Revision 1.64 Revision 1.65
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.64 2009/04/26 02:33:36 arfrever Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.65 2009/04/29 22:26:31 scarabeus 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
25 EXPORT_FUNCTIONS src_unpack pkg_preinst 22EXPORTED_FUNCTIONS="src_unpack pkg_preinst"
26fi 23case "${EAPI:-0}" in
24 2) EXPORTED_FUNCTIONS="${EXPORTED_FUNCTIONS} src_prepare" ;;
25 1|0) ;;
26 *) die "Unknown EAPI, Bug eclass maintainers." ;;
27esac
28EXPORT_FUNCTIONS ${EXPORTED_FUNCTIONS}
27 29
28DESCRIPTION="Based on the ${ECLASS} eclass" 30DESCRIPTION="Based on the ${ECLASS} eclass"
29 31
30DEPEND="dev-util/subversion 32DEPEND="dev-util/subversion
31 net-misc/rsync" 33 net-misc/rsync"
371# @FUNCTION: subversion_src_unpack 373# @FUNCTION: subversion_src_unpack
372# @DESCRIPTION: 374# @DESCRIPTION:
373# Default src_unpack. Fetch and, in older EAPIs, bootstrap. 375# Default src_unpack. Fetch and, in older EAPIs, bootstrap.
374subversion_src_unpack() { 376subversion_src_unpack() {
375 subversion_fetch || die "${ESVN}: unknown problem occurred in subversion_fetch." 377 subversion_fetch || die "${ESVN}: unknown problem occurred in subversion_fetch."
376 if has "${EAPI}" 0 1; then 378 has src_prepare ${EXPORTED_FUNCTIONS} || git_src_prepare
377 subversion_bootstrap || die "${ESVN}: unknown problem occurred in subversion_bootstrap."
378 fi
379} 379}
380 380
381# @FUNCTION: subversion_src_prepare 381# @FUNCTION: subversion_src_prepare
382# @DESCRIPTION: 382# @DESCRIPTION:
383# Default src_prepare. Bootstrap. 383# Default src_prepare. Bootstrap.

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

  ViewVC Help
Powered by ViewVC 1.1.20