summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2022-11-25 22:37:34 +0100
committerAlfredo Tupone <tupone@gentoo.org>2022-11-25 22:38:14 +0100
commitb2f70d7d57b5a3d66d80bd804d6c4e1be31c4987 (patch)
treed27626265ae176cde416770c662ea0ef62946f67 /dev-ada
parentdev-python/pypy3: Remove test support for the time being (diff)
downloadgentoo-b2f70d7d57b5a3d66d80bd804d6c4e1be31c4987.tar.gz
gentoo-b2f70d7d57b5a3d66d80bd804d6c4e1be31c4987.tar.bz2
gentoo-b2f70d7d57b5a3d66d80bd804d6c4e1be31c4987.zip
dev-ada/ada_language_server: use tc-getCXX to get g++
Closes: https://bugs.gentoo.org/882445 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-ada')
-rw-r--r--dev-ada/ada_language_server/ada_language_server-22.0.0.ebuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/dev-ada/ada_language_server/ada_language_server-22.0.0.ebuild b/dev-ada/ada_language_server/ada_language_server-22.0.0.ebuild
index aa6c851354d5..6dd19f3debf3 100644
--- a/dev-ada/ada_language_server/ada_language_server-22.0.0.ebuild
+++ b/dev-ada/ada_language_server/ada_language_server-22.0.0.ebuild
@@ -4,7 +4,7 @@
EAPI=7
ADA_COMPAT=( gnat_2021 gcc_12_2_0 )
-inherit ada multiprocessing
+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"
@@ -30,6 +30,14 @@ BDEPEND="dev-ada/gprbuild[${ADA_USEDEP}]
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 \