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

Diff of /eclass/subversion.eclass

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

Revision 1.23 Revision 1.24
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 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.23 2005/07/11 15:08:06 swegener Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.24 2005/09/21 23:32:21 vapier Exp $
4 4
5## --------------------------------------------------------------------------- # 5## --------------------------------------------------------------------------- #
6# Author: Akinori Hattori <hattya@gentoo.org> 6# Author: Akinori Hattori <hattya@gentoo.org>
7# 7#
8# The subversion eclass is written to fetch the software sources from 8# The subversion eclass is written to fetch the software sources from
105 # ESVN_REPO_URI is empty. 105 # ESVN_REPO_URI is empty.
106 [ -z "${ESVN_REPO_URI}" ] && die "${ESVN}: ESVN_REPO_URI is empty." 106 [ -z "${ESVN_REPO_URI}" ] && die "${ESVN}: ESVN_REPO_URI is empty."
107 107
108 # check for the protocol. 108 # check for the protocol.
109 case ${ESVN_REPO_URI%%:*} in 109 case ${ESVN_REPO_URI%%:*} in
110 http) ;; 110 http|https)
111 https) ;; 111 if built_with_use dev-util/subversion nowebdav ; then
112 eerror "In order to emerge this package, you need to"
113 eerror "re-emerge subversion with USE=-nowebdav"
114 die "Please run 'USE=-nowebdav emerge subversion'"
115 fi
116 ;;
112 svn) ;; 117 svn) ;;
113 *) 118 *)
114 die "${ESVN}: fetch from "${ESVN_REPO_URI%:*}" is not yet implemented." 119 die "${ESVN}: fetch from "${ESVN_REPO_URI%:*}" is not yet implemented."
115 ;; 120 ;;
116 esac 121 esac
117 122
225 230
226## -- subversion_src_unpack() ------------------------------------------------ # 231## -- subversion_src_unpack() ------------------------------------------------ #
227 232
228function subversion_src_unpack() { 233function subversion_src_unpack() {
229 234
230 if [ "${A}" != "" ]; then 235 if [[ -n ${A} ]] ; then
231 unpack ${A} 236 unpack ${A}
232 fi 237 fi
233 238
234 subversion_svn_fetch || die "${ESVN}: unknown problem in subversion_svn_fetch()." 239 subversion_svn_fetch || die "${ESVN}: unknown problem in subversion_svn_fetch()."
235 subversion_bootstrap || die "${ESVN}: unknown problem in subversion_bootstrap()." 240 subversion_bootstrap || die "${ESVN}: unknown problem in subversion_bootstrap()."

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

  ViewVC Help
Powered by ViewVC 1.1.20