summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2017-03-03 15:08:11 +0100
committerPatrice Clement <monsieurp@gentoo.org>2017-03-03 15:08:25 +0100
commitaec6adfc61844214ff8e58aa6c3f106eac73bb47 (patch)
treea3a971b8fb2d87731435f7f7558c9e2e9e8eb282 /app-vim/youcompleteme
parentapp-admin/mongo-tools: add libressl support to latest version (diff)
downloadgentoo-aec6adfc61844214ff8e58aa6c3f106eac73bb47.tar.gz
gentoo-aec6adfc61844214ff8e58aa6c3f106eac73bb47.tar.bz2
gentoo-aec6adfc61844214ff8e58aa6c3f106eac73bb47.zip
app-vim/youcompleteme: remove directory module only if it exists.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'app-vim/youcompleteme')
-rw-r--r--app-vim/youcompleteme/youcompleteme-99999999.ebuild14
1 files changed, 10 insertions, 4 deletions
diff --git a/app-vim/youcompleteme/youcompleteme-99999999.ebuild b/app-vim/youcompleteme/youcompleteme-99999999.ebuild
index eb184f021961..6ae3c704451b 100644
--- a/app-vim/youcompleteme/youcompleteme-99999999.ebuild
+++ b/app-vim/youcompleteme/youcompleteme-99999999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
@@ -56,15 +56,21 @@ CMAKE_USE_DIR=${S}/third_party/ycmd/cpp
VIM_PLUGIN_HELPFILES="${PN}"
src_prepare() {
- if ! use test ; then
+ if ! use test; then
sed -i '/^add_subdirectory( tests )/d' third_party/ycmd/cpp/ycm/CMakeLists.txt || die
fi
+
for third_party_module in requests pythonfutures; do
- rm -r "${S}"/third_party/${third_party_module} || die "Failed to remove third party module ${third_party_module}"
+ if [[ -d "${third_party_module}" ]]; then
+ rm -r "${S}"/third_party/${third_party_module} || die "Failed to remove third party module ${third_party_module}"
+ fi
done
+
# Argparse is included in python 2.7
for third_party_module in argparse bottle jedi waitress sh requests; do
- rm -r "${S}"/third_party/ycmd/third_party/${third_party_module} || die "Failed to remove third party module ${third_party_module}"
+ if [[ -d "${third_party_module}" ]]; then
+ rm -r "${S}"/third_party/ycmd/third_party/${third_party_module} || die "Failed to remove third party module ${third_party_module}"
+ fi
done
}