This repository has been archived on 2024-09-25. You can view files and clone it, but cannot push or open issues or pull requests.
overlay/dev-util/cmake-language-server/cmake-language-server-0.1.6.ebuild
2023-03-09 16:51:03 +01:00

41 lines
864 B
Bash

# Copyright 2022-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=poetry
DISTUTILS_SINGLE_IMPL=1
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1
distutils_enable_tests pytest
DESCRIPTION="CMake LSP Implementation"
HOMEPAGE="https://github.com/regen100/cmake-language-server"
SRC_URI="https://github.com/regen100/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
COMMON_DEPEND="
$(python_gen_cond_dep '
>=dev-python/pygls-0.12[${PYTHON_USEDEP}]
<dev-python/pygls-1[${PYTHON_USEDEP}]
dev-util/cmakelang[${PYTHON_USEDEP}]
')
"
DEPEND="${COMMON_DEPEND}"
RDEPEND="
${COMMON_DEPEND}
dev-util/cmake
"
BDEPEND="
test? (
$(python_gen_cond_dep 'dev-python/pytest-datadir[${PYTHON_USEDEP}]')
)
"