| 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.67 2009/05/10 20:33:38 arfrever Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.68 2010/06/22 18:34:29 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> |
| … | |
… | |
| 28 | ;; |
28 | ;; |
| 29 | esac |
29 | esac |
| 30 | |
30 | |
| 31 | DESCRIPTION="Based on the ${ECLASS} eclass" |
31 | DESCRIPTION="Based on the ${ECLASS} eclass" |
| 32 | |
32 | |
| 33 | SUBVERSION_DEPEND="dev-util/subversion |
33 | SUBVERSION_DEPEND="dev-vcs/subversion |
| 34 | net-misc/rsync" |
34 | net-misc/rsync" |
| 35 | |
35 | |
| 36 | if [[ -z "${ESVN_DISABLE_DEPENDENCIES}" ]]; then |
36 | if [[ -z "${ESVN_DISABLE_DEPENDENCIES}" ]]; then |
| 37 | DEPEND="${SUBVERSION_DEPEND}" |
37 | DEPEND="${SUBVERSION_DEPEND}" |
| 38 | fi |
38 | fi |
| … | |
… | |
| 195 | # check for the protocol |
195 | # check for the protocol |
| 196 | local protocol="${repo_uri%%:*}" |
196 | local protocol="${repo_uri%%:*}" |
| 197 | |
197 | |
| 198 | case "${protocol}" in |
198 | case "${protocol}" in |
| 199 | http|https) |
199 | http|https) |
| 200 | if ! built_with_use -o dev-util/subversion webdav-neon webdav-serf; then |
200 | if ! built_with_use -o dev-vcs/subversion webdav-neon webdav-serf; then |
| 201 | echo |
201 | echo |
| 202 | eerror "In order to emerge this package, you need to" |
202 | eerror "In order to emerge this package, you need to" |
| 203 | eerror "reinstall Subversion with support for WebDAV." |
203 | eerror "reinstall Subversion with support for WebDAV." |
| 204 | eerror "Subversion requires either Neon or Serf to support WebDAV." |
204 | eerror "Subversion requires either Neon or Serf to support WebDAV." |
| 205 | echo |
205 | echo |
| … | |
… | |
| 231 | if [[ "${ESVN_OPTIONS}" = *-r* ]]; then |
231 | if [[ "${ESVN_OPTIONS}" = *-r* ]]; then |
| 232 | ewarn "\${ESVN_OPTIONS} contains -r, this usage is unsupported. Please" |
232 | ewarn "\${ESVN_OPTIONS} contains -r, this usage is unsupported. Please" |
| 233 | ewarn "see \${ESVN_REPO_URI}" |
233 | ewarn "see \${ESVN_REPO_URI}" |
| 234 | fi |
234 | fi |
| 235 | |
235 | |
| 236 | if has_version ">=dev-util/subversion-1.6.0"; then |
236 | if has_version ">=dev-vcs/subversion-1.6.0"; then |
| 237 | options="${options} --config-option=config:auth:password-stores=" |
237 | options="${options} --config-option=config:auth:password-stores=" |
| 238 | fi |
238 | fi |
| 239 | |
239 | |
| 240 | debug-print "${FUNCNAME}: wc_path = \"${wc_path}\"" |
240 | debug-print "${FUNCNAME}: wc_path = \"${wc_path}\"" |
| 241 | debug-print "${FUNCNAME}: ESVN_OPTIONS = \"${ESVN_OPTIONS}\"" |
241 | debug-print "${FUNCNAME}: ESVN_OPTIONS = \"${ESVN_OPTIONS}\"" |