summaryrefslogtreecommitdiff
path: root/app-vim
diff options
context:
space:
mode:
authorDan Goodliffe <dan.goodliffe@octal.co.uk>2022-08-02 11:29:35 +0100
committerDan Goodliffe <dan.goodliffe@octal.co.uk>2022-08-02 11:29:35 +0100
commit44c988e7d09715b1c9ddfe23bf06f24ae64445ed (patch)
tree5a7167d111837aa693263266a8f7789ac6ada3e0 /app-vim
parentUpdate youcompleteme to use new EAPI/cmake.eclass (diff)
downloadportage-44c988e7d09715b1c9ddfe23bf06f24ae64445ed.tar.bz2
portage-44c988e7d09715b1c9ddfe23bf06f24ae64445ed.tar.xz
portage-44c988e7d09715b1c9ddfe23bf06f24ae64445ed.zip
Bump youcompleteme while we're here
Diffstat (limited to 'app-vim')
-rw-r--r--app-vim/youcompleteme/Manifest3
-rw-r--r--app-vim/youcompleteme/youcompleteme-20220802.ebuild85
2 files changed, 88 insertions, 0 deletions
diff --git a/app-vim/youcompleteme/Manifest b/app-vim/youcompleteme/Manifest
index b53a55b..f277473 100644
--- a/app-vim/youcompleteme/Manifest
+++ b/app-vim/youcompleteme/Manifest
@@ -1,3 +1,6 @@
DIST ycmd-ba5814d3810c21ef9868d70ba7a8c7eef9c1d276.tar.gz 2953728 BLAKE2B 0f28a072c8c155eff5712e90bde46c039b8bd1a739fd1141df1dd9ff8b7aee3bb7e05bd8ce8fb8c84ad549d6b5e477f9036ebbfe61dfeb1846b157c76271786f SHA512 2e86c206d03188f189322039b4fa806861aebf1697e98a05c0ed45a95dfce1c885c67040993a9e2bd70e3113e44313f860bff65ce5cf67eb56be150ff01ce426
+DIST ycmd-d1707c14883ced0e32fcca9c0f5dbd6849b5f751.tar.gz 2992694 BLAKE2B 8f663d87494b7e21333cfd6f5f7c7b4d4ccd2fe73c1a7a4428a041c5f890f3a8fe4f1dcca849a67de16d32534c8d1dc5c3d8d2cf60fccc99e2626079704f1793 SHA512 3548161955db4acbee27a117c9c9a0d4c29297dd02ad7811af3b66be6583683ed1e5fd670e4226fc4be0e0a4aee207dde7ad5e230270daa8cf502b18c3ef6c59
+DIST youcompleteme-d35df6136146b12f3a78f8b8fbdaf55f4e2ee462.tar.gz 310672 BLAKE2B b6030dfcf66321b174ff33a9dac5567a905907a7ccf06bfabe6a85e720c7009058b109173d10d0a77a1c3ffa69c79c3f7e98612ff63d3d8de3c9f8a585361df8 SHA512 a5508a935268bd5000ed85457b2e18571dfa6187d1f9142df2780be715398d498cc02b7e942d1e8be66b2aaa4fd5ca702ed06016eb4ace93f3c682f7ba1e94ef
DIST youcompleteme-e32a82c322c680fa3aeef615874cf049669a360b.tar.gz 306691 BLAKE2B 0ffd62b0045971e46061cdf75af8c22f2b2910bffc081ed4164af0b0debc78a104f2fbe3cdd2e649bf79c7825617129fbb9a64db5dd887c336e7ceeeb808bd92 SHA512 48100388dc77ea81db29d9f068631ea3c366bd96cdb756be6d97c84dbdcfa45d8e0d4bc3b556e7f670d9635c5abbc023c848c0801ee89110ee3656693a0b5de7
EBUILD youcompleteme-20220322-r1.ebuild 2393 BLAKE2B d62d3ce5aa0a832d348083c7a8f6d32c492233d74740e471334a4f3f887a8973577f81dc7b71e8cb2b98eac8559bcdfc1c7be76e55c26d92d28a0405baf8e06b SHA512 a21b0a8eaaa9bf283e036e7c4199bdc096777e78d69c3ecf3760492b928ecbeb585f96d3c12cd1642e3dd56d909b2c1d048a2068803b72b01a4c5034e2146669
+EBUILD youcompleteme-20220802.ebuild 2393 BLAKE2B fe37ace69f2402d47aeee03ff4e586969f1fcd765c5e46d3b46e9416f560778ab94754bce7d7c9e23ff9c51eab0bc286fb4751e1c0e28f08c03dab3034de4374 SHA512 ecc394ae3caa58631f0cf735e06a72a1b67b441efcd9a6015a8e5f379dabb00179257e3f90f52bd1d31b108a5407d6292105a4f6a9754085076aeb85f2e0120a
diff --git a/app-vim/youcompleteme/youcompleteme-20220802.ebuild b/app-vim/youcompleteme/youcompleteme-20220802.ebuild
new file mode 100644
index 0000000..121cd2c
--- /dev/null
+++ b/app-vim/youcompleteme/youcompleteme-20220802.ebuild
@@ -0,0 +1,85 @@
+EAPI="8"
+PYTHON_COMPAT=( python3_{9,10} )
+inherit multilib python-single-r1 cmake vim-plugin
+
+youcompletemev="d35df6136146b12f3a78f8b8fbdaf55f4e2ee462"
+ycmdv="d1707c14883ced0e32fcca9c0f5dbd6849b5f751"
+
+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:13 )
+ $(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-13 --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}"
+}