From 8f0315d423fcb2b555b6b8363d13202a030324e1 Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Thu, 26 Jan 2023 20:36:06 +0100 Subject: dev-ada/ada_language_server: fswatch has subslot Signed-off-by: Alfredo Tupone --- .../ada_language_server-23.0.10-r1.ebuild | 79 ++++++++++++++++++++++ .../ada_language_server-23.0.10.ebuild | 78 --------------------- 2 files changed, 79 insertions(+), 78 deletions(-) create mode 100644 dev-ada/ada_language_server/ada_language_server-23.0.10-r1.ebuild delete mode 100644 dev-ada/ada_language_server/ada_language_server-23.0.10.ebuild (limited to 'dev-ada') diff --git a/dev-ada/ada_language_server/ada_language_server-23.0.10-r1.ebuild b/dev-ada/ada_language_server/ada_language_server-23.0.10-r1.ebuild new file mode 100644 index 000000000000..e77b0a69e58e --- /dev/null +++ b/dev-ada/ada_language_server/ada_language_server-23.0.10-r1.ebuild @@ -0,0 +1,79 @@ +# Copyright 2021-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +ADA_COMPAT=( gnat_2021 gcc_12_2_0 ) +inherit ada multiprocessing toolchain-funcs + +DESCRIPTION="an implementation of the Microsoft Language Server Protocol for Ada/SPARK" +HOMEPAGE="https://github.com/AdaCore/ada_language_server" +SRC_URI="https://github.com/AdaCore/${PN}/archive/refs/tags/${PV}.tar.gz + -> ${P}.tar.gz" +IUSE="test" +RESTRICT="test" # Tests do not work + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="${ADA_DEPS} + dev-ada/ada_libfswatch[${ADA_USEDEP}] + sys-fs/fswatch:= + dev-ada/gnatcoll-core[${ADA_USEDEP},shared] + dev-ada/gnatdoc[${ADA_USEDEP}] + dev-ada/gpr-unit-provider[${ADA_USEDEP}] + dev-ada/libadalang[${ADA_USEDEP}] + >=dev-ada/libadalang-tools-23[${ADA_USEDEP},shared] + dev-ada/spawn[${ADA_USEDEP},shared,glib] + dev-ada/VSS[${ADA_USEDEP}]" +DEPEND="${RDEPEND}" +BDEPEND="dev-ada/gprbuild[${ADA_USEDEP}] + test? ( dev-ada/e3-testsuite )" + +REQUIRED_USE="${ADA_REQUIRED_USE}" + +src_prepare() { + sed -i \ + -e "s:g++:$(tc-getCXX):" \ + gnat/lsp_server.gpr \ + || die + default +} + +src_compile() { + gprbuild -v -j$(makeopts_jobs) -P gnat/tester.gpr -p \ + -XLIBRARY_TYPE=relocatable \ + -XBUILD_MODE=prod \ + -cargs:Ada ${ADAFLAGS} || die + gprbuild -v -j$(makeopts_jobs) -c -u -P gnat/lsp_server.gpr -p \ + -XLIBRARY_TYPE=relocatable s-memory.adb \ + -XBUILD_MODE=prod \ + -cargs:Ada ${ADAFLAGS} || die + gprbuild -v -j$(makeopts_jobs) -P gnat/lsp_server.gpr -p \ + -XLIBRARY_TYPE=relocatable -XVERSION= \ + -XBUILD_MODE=prod \ + -cargs:Ada ${ADAFLAGS} || die + gprbuild -v -j$(makeopts_jobs) -P gnat/codec_test.gpr -p \ + -XLIBRARY_TYPE=relocatable \ + -XBUILD_MODE=prod \ + -cargs:Ada ${ADAFLAGS} || die + gprbuild -v -j$(makeopts_jobs) -P gnat/lsp_client.gpr -p \ + -XLIBRARY_TYPE=relocatable \ + -XBUILD_MODE=prod \ + -cargs:Ada ${ADAFLAGS} || die + gprbuild -v -j$(makeopts_jobs) -P gnat/lsp_client_glib.gpr -p \ + -XLIBRARY_TYPE=relocatable \ + -XBUILD_MODE=prod \ + -cargs:Ada ${ADAFLAGS} || die + mkdir -p integration/vscode/ada/linux + cp -f .obj/server/ada_language_server integration/vscode/ada/linux || die +} + +src_install() { + emake install DESTDIR="${D}"/usr + gprinstall -f -P gnat/lsp_client_glib.gpr -p -r --mode=dev \ + --prefix="${D}"/usr -XBUILD_MODE=dev -XLIBRARY_TYPE=relocatable || die + + einstalldocs +} diff --git a/dev-ada/ada_language_server/ada_language_server-23.0.10.ebuild b/dev-ada/ada_language_server/ada_language_server-23.0.10.ebuild deleted file mode 100644 index 847ac15a3583..000000000000 --- a/dev-ada/ada_language_server/ada_language_server-23.0.10.ebuild +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright 2021-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -ADA_COMPAT=( gnat_2021 gcc_12_2_0 ) -inherit ada multiprocessing toolchain-funcs - -DESCRIPTION="an implementation of the Microsoft Language Server Protocol for Ada/SPARK" -HOMEPAGE="https://github.com/AdaCore/ada_language_server" -SRC_URI="https://github.com/AdaCore/${PN}/archive/refs/tags/${PV}.tar.gz - -> ${P}.tar.gz" -IUSE="test" -RESTRICT="test" # Tests do not work - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -RDEPEND="${ADA_DEPS} - dev-ada/ada_libfswatch[${ADA_USEDEP}] - dev-ada/gnatcoll-core[${ADA_USEDEP},shared] - dev-ada/gnatdoc[${ADA_USEDEP}] - dev-ada/gpr-unit-provider[${ADA_USEDEP}] - dev-ada/libadalang[${ADA_USEDEP}] - >=dev-ada/libadalang-tools-23[${ADA_USEDEP},shared] - dev-ada/spawn[${ADA_USEDEP},shared,glib] - dev-ada/VSS[${ADA_USEDEP}]" -DEPEND="${RDEPEND}" -BDEPEND="dev-ada/gprbuild[${ADA_USEDEP}] - test? ( dev-ada/e3-testsuite )" - -REQUIRED_USE="${ADA_REQUIRED_USE}" - -src_prepare() { - sed -i \ - -e "s:g++:$(tc-getCXX):" \ - gnat/lsp_server.gpr \ - || die - default -} - -src_compile() { - gprbuild -v -j$(makeopts_jobs) -P gnat/tester.gpr -p \ - -XLIBRARY_TYPE=relocatable \ - -XBUILD_MODE=prod \ - -cargs:Ada ${ADAFLAGS} || die - gprbuild -v -j$(makeopts_jobs) -c -u -P gnat/lsp_server.gpr -p \ - -XLIBRARY_TYPE=relocatable s-memory.adb \ - -XBUILD_MODE=prod \ - -cargs:Ada ${ADAFLAGS} || die - gprbuild -v -j$(makeopts_jobs) -P gnat/lsp_server.gpr -p \ - -XLIBRARY_TYPE=relocatable -XVERSION= \ - -XBUILD_MODE=prod \ - -cargs:Ada ${ADAFLAGS} || die - gprbuild -v -j$(makeopts_jobs) -P gnat/codec_test.gpr -p \ - -XLIBRARY_TYPE=relocatable \ - -XBUILD_MODE=prod \ - -cargs:Ada ${ADAFLAGS} || die - gprbuild -v -j$(makeopts_jobs) -P gnat/lsp_client.gpr -p \ - -XLIBRARY_TYPE=relocatable \ - -XBUILD_MODE=prod \ - -cargs:Ada ${ADAFLAGS} || die - gprbuild -v -j$(makeopts_jobs) -P gnat/lsp_client_glib.gpr -p \ - -XLIBRARY_TYPE=relocatable \ - -XBUILD_MODE=prod \ - -cargs:Ada ${ADAFLAGS} || die - mkdir -p integration/vscode/ada/linux - cp -f .obj/server/ada_language_server integration/vscode/ada/linux || die -} - -src_install() { - emake install DESTDIR="${D}"/usr - gprinstall -f -P gnat/lsp_client_glib.gpr -p -r --mode=dev \ - --prefix="${D}"/usr -XBUILD_MODE=dev -XLIBRARY_TYPE=relocatable || die - - einstalldocs -} -- cgit v1.2.3-65-gdbad