From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- app-vim/youcompleteme/Manifest | 6 ++ app-vim/youcompleteme/metadata.xml | 11 ++ .../youcompleteme/youcompleteme-20130910.ebuild | 85 ++++++++++++++++ .../youcompleteme/youcompleteme-99999999.ebuild | 112 +++++++++++++++++++++ 4 files changed, 214 insertions(+) create mode 100644 app-vim/youcompleteme/Manifest create mode 100644 app-vim/youcompleteme/metadata.xml create mode 100644 app-vim/youcompleteme/youcompleteme-20130910.ebuild create mode 100644 app-vim/youcompleteme/youcompleteme-99999999.ebuild (limited to 'app-vim/youcompleteme') diff --git a/app-vim/youcompleteme/Manifest b/app-vim/youcompleteme/Manifest new file mode 100644 index 000000000000..58226557d7a3 --- /dev/null +++ b/app-vim/youcompleteme/Manifest @@ -0,0 +1,6 @@ +DIST youcompleteme-20130910.tar.xz 2340104 SHA256 00906c92ba3c0f113c73398997008d9c8b3f31d617f5da233f25174a6d488bac SHA512 c1022a27ced00e8ba8e9aa25029a0032805331cf0f80342aaaf9d7d4ec7780a098ffbd315068f19f6c98b00c4b4b43e59c7fa40070057e097ca40f6398b53b6b WHIRLPOOL 867c3f0c08473246c52377bdb9ac52b96af1d1b3a970cb087784e54082afe19e6549c54bb37f460d379b5fac8f5f7aa4bccb1e24b0984a98c08750469ff518c6 +EBUILD youcompleteme-20130910.ebuild 1880 SHA256 3045f2b7cb084ec65ec2c085730e17c5dd21c2fc0300bf02603ab6417b0536ab SHA512 03089f783e771c95be0cc435d3a30b8d57ebb44731f15f961b6ea68ab030b0df4a1cd90e21423470c6634ed3f3295af5cf6b3ca174c8cc2192046899f94102a6 WHIRLPOOL e1f89501b9c0ce7a3cd0c2e00333fe7ed0e97cfd8378efaa92a015be72beae46349bb313e7b10761565bad7b5ee87b69e726bc29da2c69fd49dba896de3ccf64 +EBUILD youcompleteme-99999999.ebuild 2879 SHA256 c1b097d51b1b125b816c6da847c94cb4939bb6fabc60c49d778c0b9d3dadb0ef SHA512 a4eacbe291515bf00a934cb82ddcf0fe1fcda085d08b5ce9e4508ab8ccda92764f8b41912b4f6ff38ba3cd2bb649f106e9fcac769257c5e83d0f13f7ee8f49d2 WHIRLPOOL 20d0c47f6749aab1249baca9d24b244ac1c1d5a9efcb774c3a8b10f3e7666e342287a6c5b8a0f17ff28846522e19dc4b68bdb7f8ca3e8513674d63a714f19f84 +MISC ChangeLog 3053 SHA256 3f209be036eaaab8d1d5825a48d025495d2b56a6128a004b97efa35f229e5539 SHA512 b55b31b581070e8300c1e56b4334cda12162ccfe9e193766b75663f5dd6844ebf3ce9c86943aaa969acb3afc0ed994f13c5e52080baca5fe781d4339033c081f WHIRLPOOL 32d821345614c54cb24a86ffd327656321402820bd753d18d879f7a0ab7c1e17e7efe7a4a1edab2e1ea48296fab44ab9ad627fe684fe3b840d9a5d01e8fec178 +MISC ChangeLog-2015 1263 SHA256 34e8c4495f1a581c0f6506706b2613176e1a9978c0d51fc2ba3a75190df9fc82 SHA512 eb3ed3bfcb74c803044023f9eb8a1425c8d362930387cd2ad10a46dcbc5f6fe8a1ec016915f7de3294b62a2fde0e4a10e8249edf49e64ee40b69864d719d854e WHIRLPOOL 0850eb329d95a1f48b2e449ec41552b1d685e84daf4b54548c59dbaa7fed9801bb63408de968acee985b998c4b8a038c8b272fcf0b36d6111e169aedf8fca586 +MISC metadata.xml 372 SHA256 e3dd72be40b227af12daab42f7c3e887c7cf5f204833873384a155e8bcd065e9 SHA512 3afacd989d495928012e5a1b1c2bb6d14209cbcb1e347a24c1c0881c758642cc8457ee7b6202b8d129e3f08dc21492792715fc5452f8ffc33f719da9a447fdac WHIRLPOOL 2f70b46a70e97e9f8ecec4bf6d5fea40669fa1f92335362a45321f8b3f414228faa2d4152e52846bfbe92d1d659086d1f34bf42970d206a27fcbdeaefa4c9ea9 diff --git a/app-vim/youcompleteme/metadata.xml b/app-vim/youcompleteme/metadata.xml new file mode 100644 index 000000000000..1b0669747edd --- /dev/null +++ b/app-vim/youcompleteme/metadata.xml @@ -0,0 +1,11 @@ + + + + + vim@gentoo.org + Gentoo Vim Project + + + Enable semantic support for C-family languages using sys-devel/clang + + diff --git a/app-vim/youcompleteme/youcompleteme-20130910.ebuild b/app-vim/youcompleteme/youcompleteme-20130910.ebuild new file mode 100644 index 000000000000..fae51f91ec97 --- /dev/null +++ b/app-vim/youcompleteme/youcompleteme-20130910.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils multilib python-single-r1 cmake-utils vim-plugin + +if [[ ${PV} == 9999* ]] ; then + EGIT_REPO_URI="https://github.com/Valloric/YouCompleteMe.git" + inherit git-r3 +else + KEYWORDS="~amd64 ~x86" + SRC_URI="https://dev.gentoo.org/~radhermit/vim/${P}.tar.xz" +fi + +DESCRIPTION="vim plugin: a code-completion engine for Vim" +HOMEPAGE="https://valloric.github.io/YouCompleteMe/" + +LICENSE="GPL-3" +IUSE="+clang test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + clang? ( >=sys-devel/clang-3.3 ) + || ( + app-editors/vim[python,${PYTHON_USEDEP}] + app-editors/gvim[python,${PYTHON_USEDEP}] + )" +DEPEND="${RDEPEND} + test? ( + >=dev-python/mock-1.0.1[${PYTHON_USEDEP}] + >=dev-python/nose-1.3.0[${PYTHON_USEDEP}] + )" + +CMAKE_IN_SOURCE_BUILD=1 +CMAKE_USE_DIR=${S}/cpp + +VIM_PLUGIN_HELPFILES="${PN}" + +src_prepare() { + if ! use test ; then + sed -i '/^add_subdirectory( tests )/d' cpp/ycm/CMakeLists.txt || die + fi +} + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_use clang CLANG_COMPLETER) + $(cmake-utils_use_use clang SYSTEM_LIBCLANG) + ) + cmake-utils_src_configure +} + +src_test() { + # TODO: use system gmock/gtest + cd "${S}"/cpp || die + emake ycm_core_tests + cd ycm/tests || die + LD_LIBRARY_PATH="${EROOT}"/usr/$(get_libdir)/llvm \ + "${S}"/cpp/ycm/tests/ycm_core_tests || die + + cd "${S}"/python/ycm || die + nosetests --verbose || die +} + +src_install() { + dodoc *.md + rm -r *.md *.sh COPYING.txt cpp || die + find python -name *test* -exec rm -rf {} + || die + rm python/libclang.so || die + + vim-plugin_src_install + + python_optimize "${ED}" + python_fix_shebang "${ED}" +} + +pkg_postinst() { + vim-plugin_pkg_postinst + + [[ -z ${REPLACING_VERSIONS} ]] && \ + optfeature "better python autocompletion" dev-python/jedi +} diff --git a/app-vim/youcompleteme/youcompleteme-99999999.ebuild b/app-vim/youcompleteme/youcompleteme-99999999.ebuild new file mode 100644 index 000000000000..a0ad8cf03db7 --- /dev/null +++ b/app-vim/youcompleteme/youcompleteme-99999999.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils multilib python-single-r1 cmake-utils vim-plugin + +if [[ ${PV} == 9999* ]] ; then + EGIT_REPO_URI="https://github.com/Valloric/YouCompleteMe.git" + inherit git-r3 +else + KEYWORDS="~amd64 ~x86" + SRC_URI="https://dev.gentoo.org/~radhermit/vim/${P}.tar.xz" +fi + +DESCRIPTION="vim plugin: a code-completion engine for Vim" +HOMEPAGE="https://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}] + virtual/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 + ) +" + +CMAKE_IN_SOURCE_BUILD=1 +CMAKE_USE_DIR=${S}/third_party/ycmd/cpp + +VIM_PLUGIN_HELPFILES="${PN}" + +src_prepare() { + 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 + 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 + 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 +} + +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" || die + LD_LIBRARY_PATH="${EROOT}"/usr/$(get_libdir)/llvm \ + ./ycm_core_tests || die + + cd "${S}"/python/ycm || die + + local dirs=( "${S}"/third_party/*/ "${S}"/third_party/ycmd/third_party/*/ ) + local -x PYTHONPATH=${PYTHONPATH}:$(IFS=:; echo "${dirs[*]}") + + nosetests --verbose || 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 + egit_clean + rm third_party/ycmd/libclang.so || die + + vim-plugin_src_install + + python_optimize "${ED}" + python_fix_shebang "${ED}" +} -- cgit v1.2.3