summaryrefslogtreecommitdiff
path: root/app-vim/youcompleteme
diff options
context:
space:
mode:
authorDan Goodliffe <daniel.goodliffe@pressassociation.com>2015-09-08 11:56:58 +0100
committerDan Goodliffe <daniel.goodliffe@pressassociation.com>2015-09-08 11:56:58 +0100
commitd9919ee03b03ec6c44b358402feef405334f20d6 (patch)
tree19b71313137a357a8bcd94c8f11f945c679da023 /app-vim/youcompleteme
parentMove unison from base into specific components (diff)
downloadportage-d9919ee03b03ec6c44b358402feef405334f20d6.tar.bz2
portage-d9919ee03b03ec6c44b358402feef405334f20d6.tar.xz
portage-d9919ee03b03ec6c44b358402feef405334f20d6.zip
A recent version of YouCompleteMe that isn't a live build
Diffstat (limited to 'app-vim/youcompleteme')
-rw-r--r--app-vim/youcompleteme/Manifest7
-rw-r--r--app-vim/youcompleteme/youcompleteme-20150902.ebuild106
2 files changed, 113 insertions, 0 deletions
diff --git a/app-vim/youcompleteme/Manifest b/app-vim/youcompleteme/Manifest
new file mode 100644
index 0000000..824b4f4
--- /dev/null
+++ b/app-vim/youcompleteme/Manifest
@@ -0,0 +1,7 @@
+DIST gocode-110f355028eeaf1987863e9921eda6692a4a9d7c.zip 136435 SHA256 4cafe0a7592295ae40a6d1e2c128ee36fbc5e698213736f242c086cb5ea8bd2f SHA512 06e3ae26306f27555d094bbcaf5a08407e32ece5e696256da130411b7f25bcb47308a5b7c2536e174b4b0db35b5418883f55bf1c2563e9888c1e47174429a975 WHIRLPOOL 507621615b34c6fd20bb3e7fb11a20d992de5cae49ee8f9ffefbe31339a0f47ba626e2ea7c5ced06ba26cdd8bbfb2549d4a8ce10ea101c1dc59995bfd6b509e4
+DIST omnisharp-server-e1902915c6790bcec00b8d551199c8a3537d33c9.zip 3160038 SHA256 daa98c780de9ef2de43d6237cd309ef84c773e7295647aad240710f78fd49392 SHA512 24872e1160058da910e53a0db5caebca697d27dbc60a77094d3658f98fa0652e99734f34f3961f5ef00c4d11df3556bcbc0359e34f19112b932ce88e590a8b7e WHIRLPOOL 485aeb34942cc4a09ca6124cf33bcf6847c02d2c49a677fd852ed16a899976a70b863020a5ec87db369efd166a6db822d7dfd63f2af6a041061ec155d123c5b1
+DIST python-frozendict-b27053e4d11f5891319fd29eda561c130ba3112a.zip 4445 SHA256 c18090751815ad86dcefc5b8cdad819cb89206c24e6e451e8f35a56932e76f3b SHA512 9206786953b93afb4256e2969bb35e28444033bfac920f2965afecefcea6024017cb087cf1eae041446304cc5c3d3a819ca85da3bfbc3fffa19f8615eaf75fd4 WHIRLPOOL f5114a646efbaa2bdb0e181312b36a4c0e11c343bfb2847e3c862fbfec49d02da7b9f4a5a459d7407554aa510d07a3c30b81a32a0a17067755bdd715780607f7
+DIST requests-futures-98712e7d0f6be2a090b6fda2a925f85e63656b58.zip 8095 SHA256 7936d7f4c4063e7c17d6c437aac7c5df173b1c58d883740b983c75c7e1314489 SHA512 d931fa5382ba4506a764a07c32fa3412aebb834c05158b59459cfccfa541fcdae16a838b016a012690b2633d3f41fa8c3be9bc1b1225a573e427de571d689465 WHIRLPOOL afd54803978442b837a575743aa452eee7e61afdbea012b655728e8da76bdaae60cea081f740f98793fefcf573f47b0193906a59d31c6eae370648aedf9b9a52
+DIST ycmd-b46b8f09e33ccb6c70dfd02bba879c0b77fff4d5.zip 6826787 SHA256 8a430ff4282298b797eba824727bf7233a51d1c88805e02664240dac5ff20563 SHA512 9e41f6675f70d75de0ed25a458c5cbae4634e7b2a14dd8edff7d9d22ed81e19432467ea04cbb7255f2461ee617e0dceddba8bd696404d430f09c1b8176000151 WHIRLPOOL 47344968277c2f5a6183ff8031ec74e3e9df0f6a17fdda450ca0c07aabc1dedff4ae27da9d75d7632075a3827d6057f45957ec444428b867dcc2eb09a0b84ccc
+DIST youcompleteme-a2808ee3ff7e8f4e90f6157f062c2aac6057c087.zip 227836 SHA256 97f615c9721510eda2d90751ad4e7b0abeb8a64bbc591cee6e4339c5e7ff4dc6 SHA512 9ac4919636b3b820ff149c3957dc9ec89df2070032bf8c2e325528296ccd9011fb78265d619968f978af1f5d5c4a10aa9957e13fa9f0e02238c1ef19e3445227 WHIRLPOOL c5126fb1e0deb2d6947800ae19673e25b7cb468aebc003ad691dda7641337793fabbfcfbb57d16050cef4db91a24baaff2e797173144dacd7dacc5ff7eae54a8
+EBUILD youcompleteme-20150902.ebuild 3816 SHA256 bb1e7e700829fa27c6a7a63e6d47318f048904211d54e43f826b8115f8798932 SHA512 c533a9ebaf609db03d2e9ebbd3167462c47b05c92de151d62ae8749f930ad5951d58458192aa90ac9407f927b71f86e3050bde85590986466911046d677080ae WHIRLPOOL 0e601355c1fd367f0021929cfadebcc479b08b542bfc71832e475e6834aeebe08dd7ce76cffb098385ca63cd3304d8533d6a51c16bf35cd5b5558a4b8c8f1aa8
diff --git a/app-vim/youcompleteme/youcompleteme-20150902.ebuild b/app-vim/youcompleteme/youcompleteme-20150902.ebuild
new file mode 100644
index 0000000..c95f42e
--- /dev/null
+++ b/app-vim/youcompleteme/youcompleteme-20150902.ebuild
@@ -0,0 +1,106 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit multilib python-single-r1 cmake-utils vim-plugin
+
+KEYWORDS="~amd64 ~x86"
+SRC_URI="
+ https://github.com/Valloric/YouCompleteMe/archive/a2808ee3ff7e8f4e90f6157f062c2aac6057c087.zip -> youcompleteme-a2808ee3ff7e8f4e90f6157f062c2aac6057c087.zip
+ https://github.com/Valloric/ycmd/archive/b46b8f09e33ccb6c70dfd02bba879c0b77fff4d5.zip -> ycmd-b46b8f09e33ccb6c70dfd02bba879c0b77fff4d5.zip
+ https://github.com/ross/requests-futures/archive/98712e7d0f6be2a090b6fda2a925f85e63656b58.zip -> requests-futures-98712e7d0f6be2a090b6fda2a925f85e63656b58.zip
+ https://github.com/OmniSharp/omnisharp-server/archive/e1902915c6790bcec00b8d551199c8a3537d33c9.zip -> omnisharp-server-e1902915c6790bcec00b8d551199c8a3537d33c9.zip
+ https://github.com/slezica/python-frozendict/archive/b27053e4d11f5891319fd29eda561c130ba3112a.zip -> python-frozendict-b27053e4d11f5891319fd29eda561c130ba3112a.zip
+ https://github.com/nsf/gocode/archive/110f355028eeaf1987863e9921eda6692a4a9d7c.zip -> gocode-110f355028eeaf1987863e9921eda6692a4a9d7c.zip
+"
+
+DESCRIPTION="vim plugin: a code-completion engine for Vim"
+HOMEPAGE="http://valloric.github.io/YouCompleteMe/"
+
+LICENSE="GPL-3"
+IUSE="+clang test"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+COMMON_DEPEND="
+ ${PYTHON_DEPS}
+ clang? ( >=sys-devel/clang-3.3 )
+ dev-libs/boost[python,threads,${PYTHON_USEDEP}]
+ || (
+ app-editors/vim[python,${PYTHON_USEDEP}]
+ app-editors/gvim[python,${PYTHON_USEDEP}]
+ )
+"
+RDEPEND="
+ ${COMMON_DEPEND}
+ dev-python/bottle[${PYTHON_USEDEP}]
+ dev-python/futures[${PYTHON_USEDEP}]
+ dev-python/jedi[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+ dev-python/sh[${PYTHON_USEDEP}]
+ dev-python/waitress[${PYTHON_USEDEP}]
+"
+DEPEND="
+ ${COMMON_DEPEND}
+ test? (
+ >=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
+ >=dev-python/nose-1.3.0[${PYTHON_USEDEP}]
+ dev-cpp/gmock
+ dev-cpp/gtest
+ )
+"
+
+S="${WORKDIR}/YouCompleteMe-a2808ee3ff7e8f4e90f6157f062c2aac6057c087"
+CMAKE_IN_SOURCE_BUILD=1
+CMAKE_USE_DIR=${S}/third_party/ycmd/cpp
+
+VIM_PLUGIN_HELPFILES="${PN}"
+
+src_prepare() {
+ for third_party_module in ycmd requests pythonfutures requests-futures; do
+ rm -r "${S}"/third_party/${third_party_module} || die "Failed to remove third party module ${third_party_module}"
+ done
+ mv ${WORKDIR}/ycmd-b46b8f09e33ccb6c70dfd02bba879c0b77fff4d5 ${S}/third_party/ycmd
+ mv ${WORKDIR}/omnisharp-server-e1902915c6790bcec00b8d551199c8a3537d33c9 ${S}/third_party/ycmd/third_party/omnisharp-server
+ mv ${WORKDIR}/python-frozendict-b27053e4d11f5891319fd29eda561c130ba3112a ${S}/third_party/ycmd/third_party/python-frozendict
+ mv ${WORKDIR}/gocode-110f355028eeaf1987863e9921eda6692a4a9d7c ${S}/third_party/ycmd/third_party/gocode
+ mv ${WORKDIR}/requests-futures-98712e7d0f6be2a090b6fda2a925f85e63656b58 ${S}/third_party/request-futures
+}
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_use clang CLANG_COMPLETER)
+ $(cmake-utils_use_use clang SYSTEM_LIBCLANG)
+ -DUSE_SYSTEM_BOOST=ON
+ -DUSE_SYSTEM_GMOCK=ON
+ )
+ cmake-utils_src_configure
+}
+
+src_test() {
+ cd "${S}/third_party/ycmd/cpp/ycm/tests"
+ LD_LIBRARY_PATH="${EROOT}"/usr/$(get_libdir)/llvm \
+ ./ycm_core_tests || die
+
+ cd "${S}"/python/ycm
+
+ local dirs=( "${S}"/third_party/*/ "${S}"/third_party/ycmd/third_party/*/ )
+ local -x PYTHONPATH=${PYTHONPATH}:$(IFS=:; echo "${dirs[*]}")
+
+ nosetests || die
+}
+
+src_install() {
+ dodoc *.md third_party/ycmd/*.md
+ rm -r *.md *.sh COPYING.txt third_party/ycmd/cpp || die
+ rm -r third_party/ycmd/{*.md,*.sh} || die
+ find python -name *test* -exec rm -rf {} + || die
+ find "${S}" -name '.git*' -exec rm -rf {} + || die
+ rm third_party/ycmd/libclang.so || die
+
+ vim-plugin_src_install
+
+ python_optimize "${ED}"
+ python_fix_shebang "${ED}"
+}