dev-util/ycmd - 202603014 (tatsh-overlay)

Search

Install

Install this version:

emerge -a =dev-util/ycmd-202603014

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-util/ycmd-202603014

Or alternatively:

emerge --autounmask-write -a =dev-util/ycmd-202603014

Package Information

Description:
A code-completion & code-comprehension server.
Homepage:
https://github.com/ycm-core/ycmd
License:
GPL-3

Ebuild Details

Version EAPI Keywords Slot
202603014 8 ~amd64 ~ppc64 ~x86 0
View Raw Ebuild
# Copyright 2020-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_1{0..5} )

inherit cmake python-single-r1

DESCRIPTION="A code-completion & code-comprehension server."
HOMEPAGE="https://github.com/ycm-core/ycmd"
SHA="a290328810cec343fc4df23ff86936cfa7630687"
SRC_URI="https://github.com/ycm-core/ycmd/archive/${SHA}.tar.gz -> ${P}.tar.gz"

S="${WORKDIR}/${PN}-${SHA}/cpp"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~ppc64 ~x86"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

DEPEND="dev-cpp/abseil-cpp"
# shellcheck disable=SC2016
RDEPEND="
	${DEPEND}
	${PYTHON_DEPS}
	$(python_gen_cond_dep 'dev-python/bottle[${PYTHON_USEDEP}]' "${PYTHON_COMPAT[@]}")
	$(python_gen_cond_dep 'dev-python/jedi[${PYTHON_USEDEP}]' "${PYTHON_COMPAT[@]}")
	$(python_gen_cond_dep 'dev-python/regex[${PYTHON_USEDEP}]' "${PYTHON_COMPAT[@]}")
	$(python_gen_cond_dep 'dev-python/waitress[${PYTHON_USEDEP}]' "${PYTHON_COMPAT[@]}")
	$(python_gen_cond_dep 'dev-python/watchdog[${PYTHON_USEDEP}]' "${PYTHON_COMPAT[@]}")
	llvm-core/clang:=[static-analyzer]"

src_prepare() {
	rm -fR ../ycmd/tests ../third_party
	eapply --directory="${WORKDIR}/${PN}-${SHA}" -p0 "${FILESDIR}"
	sed -e "s/@CORE_VERSION@/$(< "../CORE_VERSION")/" \
		-e "s|@LIBCLANG_DIR@|$(llvm-config --libdir)|" \
		-e "s:CLANG_RESOURCE_DIR =.*:CLANG_RESOURCE_DIR = '$(clang -print-resource-dir)':" \
		-i ../ycmd/utils.py || die
	local -r clang_version=$(best_version llvm-core/clang)
	sed -e "s,@EPREFIX@,${EPREFIX},g" \
		-e "s/@CLANG_VERSION@/${clang_version:16:2}/" -i \
		../ycmd/completers/cpp/clangd_completer.py || die
	sed -r \
		-e "s|Python3 [0-9\\.]+ REQUIRED COMPONENTS|Python3 3.$(ver_cut 2 "${EPYTHON:6}") EXACT REQUIRED COMPONENTS|" \
		-i CMakeLists.txt
	cmake_src_prepare
}

src_configure() {
	local mycmakeargs=(
		-DUSE_CLANG_TIDY=OFF
		-DUSE_SYSTEM_ABSEIL=ON
	)
	cmake_src_configure
}

src_install() {
	python_domodule ../ycmd
	cp ../ycm_core.cpython*.so "${D}/$(python_get_sitedir)"
}

Inherited Eclasses

Dependencies

DEPEND

dev-cpp/abseil-cpp

RDEPEND

	${DEPEND}
	${PYTHON_DEPS}
	$(python_gen_cond_dep 'dev-python/bottle[${PYTHON_USEDEP}]' 

Manifest for 202603014

Type File Size Source URLs
DIST ycmd-202603014.tar.gz 3756617 bytes https://github.com/ycm-core/ycmd/archive/a290328810cec343fc4df23ff86936cfa7630687.tar.gz