| 1 | # Copyright 1999-2008 Gentoo Foundation |
1 | # Copyright 1999-2008 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.57 2008/03/06 09:23:39 zlin Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.58 2008/04/30 18:57:10 hollow 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> |
| … | |
… | |
| 167 | # check for the protocol |
167 | # check for the protocol |
| 168 | local protocol="${repo_uri%%:*}" |
168 | local protocol="${repo_uri%%:*}" |
| 169 | |
169 | |
| 170 | case "${protocol}" in |
170 | case "${protocol}" in |
| 171 | http|https) |
171 | http|https) |
|
|
172 | if ! built_with_use --missing true -o dev-util/subversion webdav-neon webdav-serf || \ |
| 172 | if built_with_use dev-util/subversion nowebdav; then |
173 | built_with_use --missing false dev-util/subversion nowebdav ; then |
| 173 | echo |
174 | echo |
| 174 | eerror "In order to emerge this package, you need to" |
175 | eerror "In order to emerge this package, you need to" |
| 175 | eerror "re-emerge subversion with USE=-nowebdav" |
176 | eerror "reinstall Subversion with support for WebDAV." |
|
|
177 | eerror "Subversion requires either Neon or Serf to support WebDAV." |
| 176 | echo |
178 | echo |
| 177 | die "${ESVN}: please run 'USE=-nowebdav emerge subversion'" |
179 | die "${ESVN}: reinstall Subversion with support for WebDAV." |
| 178 | fi |
180 | fi |
| 179 | ;; |
181 | ;; |
| 180 | svn|svn+ssh) |
182 | svn|svn+ssh) |
| 181 | ;; |
183 | ;; |
| 182 | *) |
184 | *) |