diff options
author | 2009-01-13 17:01:21 +0000 | |
---|---|---|
committer | 2009-01-13 17:01:21 +0000 | |
commit | 7e662c038477a4f888de32c6caf89b4f27340a9d (patch) | |
tree | 1fe1d51f129582ad1263530379fd084ff0c9e840 /eclass | |
parent | Added svn ebuild for openrc. It contains many bugfixes (diff) | |
download | embedded-cross-7e662c038477a4f888de32c6caf89b4f27340a9d.tar.gz embedded-cross-7e662c038477a4f888de32c6caf89b4f27340a9d.tar.bz2 embedded-cross-7e662c038477a4f888de32c6caf89b4f27340a9d.zip |
Fixed subversion eclass. We don't need to check for
subversion build_with_use flag during cross-compilation
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/subversion.eclass | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/eclass/subversion.eclass b/eclass/subversion.eclass index 437019e..2c3f0c8 100644 --- a/eclass/subversion.eclass +++ b/eclass/subversion.eclass @@ -169,21 +169,18 @@ subversion_fetch() { case "${protocol}" in http|https) - # We have to fake the ROOT variable for built_with_use to work in - # e.g. cross-compile environments. - OLDROOT=${ROOT} - ROOT="/" - if ! built_with_use --missing true -o dev-util/subversion webdav-neon webdav-serf || \ - built_with_use --missing false dev-util/subversion nowebdav ; then - echo - eerror "In order to emerge this package, you need to" - eerror "reinstall Subversion with support for WebDAV." - eerror "Subversion requires either Neon or Serf to support WebDAV." - echo - die "${ESVN}: reinstall Subversion with support for WebDAV." + # We don't need this check for cross-compilation + if [ CHOST = CBUILD ]; then + if ! built_with_use --missing true -o dev-util/subversion webdav-neon webdav-serf || \ + built_with_use --missing false dev-util/subversion nowebdav ; then + echo + eerror "In order to emerge this package, you need to" + eerror "reinstall Subversion with support for WebDAV." + eerror "Subversion requires either Neon or Serf to support WebDAV." + echo + die "${ESVN}: reinstall Subversion with support for WebDAV." + fi fi - # Reset the ROOT variable to the original one - ROOT=${OLDROOT} ;; svn|svn+ssh) ;; |