From 2f4a3ab93a6b5aceb1af59ed662e7f970d14c093 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 12 Sep 2022 18:15:44 +0100 Subject: YCM use any clang slot --- app-vim/youcompleteme/Manifest | 2 +- .../youcompleteme/youcompleteme-20220909-r1.ebuild | 85 ++++++++++++++++++++++ .../youcompleteme/youcompleteme-20220909.ebuild | 85 ---------------------- 3 files changed, 86 insertions(+), 86 deletions(-) create mode 100644 app-vim/youcompleteme/youcompleteme-20220909-r1.ebuild delete mode 100644 app-vim/youcompleteme/youcompleteme-20220909.ebuild (limited to 'app-vim') diff --git a/app-vim/youcompleteme/Manifest b/app-vim/youcompleteme/Manifest index cde5f39..9962b1c 100644 --- a/app-vim/youcompleteme/Manifest +++ b/app-vim/youcompleteme/Manifest @@ -3,4 +3,4 @@ DIST ycmd-d1707c14883ced0e32fcca9c0f5dbd6849b5f751.tar.gz 2992694 BLAKE2B 8f663d DIST youcompleteme-d35df6136146b12f3a78f8b8fbdaf55f4e2ee462.tar.gz 310672 BLAKE2B b6030dfcf66321b174ff33a9dac5567a905907a7ccf06bfabe6a85e720c7009058b109173d10d0a77a1c3ffa69c79c3f7e98612ff63d3d8de3c9f8a585361df8 SHA512 a5508a935268bd5000ed85457b2e18571dfa6187d1f9142df2780be715398d498cc02b7e942d1e8be66b2aaa4fd5ca702ed06016eb4ace93f3c682f7ba1e94ef DIST youcompleteme-d4343e8384ffb25d70a9ebc966bbf1277735567c.tar.gz 317812 BLAKE2B a2270da6ee19e715d2d927a2f38564d0f39e37e6cd0692b4ce43b60ef8f9b254ceb6ecd6a0cf70ad0f6cbbe0234825a69e28e02528d889092c3f01bf1102fe5e SHA512 038afbd42e84f215386bcbc29f264283dafd5f30b69b6467c34a71dc4b9cb9d528ae0ecc0d94fe86b2beee960b030f884327024fb54980c72d09421882444652 EBUILD youcompleteme-20220802.ebuild 2393 BLAKE2B fe37ace69f2402d47aeee03ff4e586969f1fcd765c5e46d3b46e9416f560778ab94754bce7d7c9e23ff9c51eab0bc286fb4751e1c0e28f08c03dab3034de4374 SHA512 ecc394ae3caa58631f0cf735e06a72a1b67b441efcd9a6015a8e5f379dabb00179257e3f90f52bd1d31b108a5407d6292105a4f6a9754085076aeb85f2e0120a -EBUILD youcompleteme-20220909.ebuild 2393 BLAKE2B 877a9dd4e60d5245df9e456cd42593a71c03d31d52d92b1eaceaa3ff70d0498191f6291c760fccd2727011c6b80d9d86ab8c6548185ac9f5b99d343d7568a8ff SHA512 54ebee0c65a0638f5883f197ceb78004b44c1fb1b1060704d5ceab7d935802eb4817389aeead2b9722db474f3c76e8f806cc61109200c4cbc138dbffa5e02783 +EBUILD youcompleteme-20220909-r1.ebuild 2341 BLAKE2B 5e21f0f69f08cbd78c525144b5bcebb751acf23e79e955d41f93399ef6dcd38488c6c2c02390f55cdda73e39f91e4afc39173a57374ca903ce96a6569714c111 SHA512 5afb26fdac194f07ba560787328204e9807272203a4799d76d6f931552f0e34d4a30b8337974fe10ef1ff20f2ce5195d6c59f9a902dbc56378c423f5fd89ecd3 diff --git a/app-vim/youcompleteme/youcompleteme-20220909-r1.ebuild b/app-vim/youcompleteme/youcompleteme-20220909-r1.ebuild new file mode 100644 index 0000000..08c95f0 --- /dev/null +++ b/app-vim/youcompleteme/youcompleteme-20220909-r1.ebuild @@ -0,0 +1,85 @@ +EAPI="8" +PYTHON_COMPAT=( python3_{9,10} ) +inherit llvm multilib python-single-r1 cmake vim-plugin + +youcompletemev="d4343e8384ffb25d70a9ebc966bbf1277735567c" +ycmdv="2ee41000a28fb6b2ae00985c231896b6d072af86" + +KEYWORDS="~amd64 ~x86" +SRC_URI=" + https://github.com/ycm-core/YouCompleteMe/archive/$youcompletemev.tar.gz -> youcompleteme-$youcompletemev.tar.gz + https://github.com/ycm-core/ycmd/archive/$ycmdv.tar.gz -> ycmd-$ycmdv.tar.gz +" + +DESCRIPTION="vim plugin: a code-completion engine for Vim" +HOMEPAGE="http://ycm-core.github.io/YouCompleteMe/" + +LICENSE="GPL-3" +IUSE="+clang" + +COMMON_DEPEND=" + ${PYTHON_DEPS} + dev-cpp/abseil-cpp + clang? ( sys-devel/clang:= ) + $(python_gen_cond_dep ' + >=dev-libs/boost-1.65:=[python,${PYTHON_USEDEP}] + || ( + app-editors/vim[python,${PYTHON_SINGLE_USEDEP}] + app-editors/gvim[python,${PYTHON_SINGLE_USEDEP}] + ) + ') +" +RDEPEND=" + ${COMMON_DEPEND} + $(python_gen_cond_dep ' + >=dev-python/bottle-0.12.18[${PYTHON_USEDEP}] + >=dev-python/regex-2020.2.20[${PYTHON_USEDEP}] + >=dev-python/jedi-0.16.0[${PYTHON_USEDEP}] + >=dev-python/watchdog-0.10.2[${PYTHON_USEDEP}] + ') +" +DEPEND=" + ${COMMON_DEPEND} +" + +S="${WORKDIR}/YouCompleteMe-$youcompletemev" +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 ; do + rm -r "${S}"/third_party/${third_party_module} || die "Failed to remove third party module ${third_party_module}" + done + mv ${WORKDIR}/ycmd-$ycmdv ${S}/third_party/ycmd + cmake_src_prepare + default +} + +src_configure() { + local mycmakeargs=( + -DUSE_CLANG_COMPLETER=$(usex clang) + -DUSE_SYSTEM_LIBCLANG=$(usex clang) + -DPATH_TO_LLVM_ROOT=$(get_llvm_prefix) + -DUSE_SYSTEM_ABSEIL=ON + -DPython3_LIBRARY=$SYSROOT/usr/$(get_libdir)/lib$EPYTHON.so + -DPython3_EXECUTABLE=$SYSROOT/usr/bin/$EPYTHON + -DPython3_INCLUDE_DIR=$SYSROOT/usr/include/$EPYTHON + ) + cmake_src_configure +} + +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 + rm -r test || die + find python third_party/ycmd -depth -name '*test*' -exec rm -r {} + || die + find python third_party/ycmd -depth -name '*examples*' -exec rm -r {} + || die + + vim-plugin_src_install third_party python + + python_optimize "${ED}" + python_fix_shebang "${ED}" +} diff --git a/app-vim/youcompleteme/youcompleteme-20220909.ebuild b/app-vim/youcompleteme/youcompleteme-20220909.ebuild deleted file mode 100644 index 9a9de73..0000000 --- a/app-vim/youcompleteme/youcompleteme-20220909.ebuild +++ /dev/null @@ -1,85 +0,0 @@ -EAPI="8" -PYTHON_COMPAT=( python3_{9,10} ) -inherit multilib python-single-r1 cmake vim-plugin - -youcompletemev="d4343e8384ffb25d70a9ebc966bbf1277735567c" -ycmdv="2ee41000a28fb6b2ae00985c231896b6d072af86" - -KEYWORDS="~amd64 ~x86" -SRC_URI=" - https://github.com/ycm-core/YouCompleteMe/archive/$youcompletemev.tar.gz -> youcompleteme-$youcompletemev.tar.gz - https://github.com/ycm-core/ycmd/archive/$ycmdv.tar.gz -> ycmd-$ycmdv.tar.gz -" - -DESCRIPTION="vim plugin: a code-completion engine for Vim" -HOMEPAGE="http://ycm-core.github.io/YouCompleteMe/" - -LICENSE="GPL-3" -IUSE="+clang" - -COMMON_DEPEND=" - ${PYTHON_DEPS} - dev-cpp/abseil-cpp - clang? ( sys-devel/clang:15 ) - $(python_gen_cond_dep ' - >=dev-libs/boost-1.65:=[python,${PYTHON_USEDEP}] - || ( - app-editors/vim[python,${PYTHON_SINGLE_USEDEP}] - app-editors/gvim[python,${PYTHON_SINGLE_USEDEP}] - ) - ') -" -RDEPEND=" - ${COMMON_DEPEND} - $(python_gen_cond_dep ' - >=dev-python/bottle-0.12.18[${PYTHON_USEDEP}] - >=dev-python/regex-2020.2.20[${PYTHON_USEDEP}] - >=dev-python/jedi-0.16.0[${PYTHON_USEDEP}] - >=dev-python/watchdog-0.10.2[${PYTHON_USEDEP}] - ') -" -DEPEND=" - ${COMMON_DEPEND} -" - -S="${WORKDIR}/YouCompleteMe-$youcompletemev" -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 ; do - rm -r "${S}"/third_party/${third_party_module} || die "Failed to remove third party module ${third_party_module}" - done - mv ${WORKDIR}/ycmd-$ycmdv ${S}/third_party/ycmd - cmake_src_prepare - default -} - -src_configure() { - local mycmakeargs=( - -DUSE_CLANG_COMPLETER=$(usex clang) - -DUSE_SYSTEM_LIBCLANG=$(usex clang) - -DPATH_TO_LLVM_ROOT=$(clang-15 --version | grep ^InstalledDir: | cut -d: -f2 | xargs dirname) - -DUSE_SYSTEM_ABSEIL=ON - -DPython3_LIBRARY=$SYSROOT/usr/$(get_libdir)/lib$EPYTHON.so - -DPython3_EXECUTABLE=$SYSROOT/usr/bin/$EPYTHON - -DPython3_INCLUDE_DIR=$SYSROOT/usr/include/$EPYTHON - ) - cmake_src_configure -} - -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 - rm -r test || die - find python third_party/ycmd -depth -name '*test*' -exec rm -r {} + || die - find python third_party/ycmd -depth -name '*examples*' -exec rm -r {} + || die - - vim-plugin_src_install third_party python - - python_optimize "${ED}" - python_fix_shebang "${ED}" -} -- cgit v1.2.3