From 131a36e8d59411eabedd9735f732be0cdf8c6403 Mon Sep 17 00:00:00 2001 From: icp Date: Tue, 13 Feb 2024 00:18:44 +0530 Subject: [PATCH] New package: elixir-ls-0.21.3 --- srcpkgs/elixir-ls/files/elixir-ls | 3 +++ srcpkgs/elixir-ls/files/elixir-ls-dbg | 3 +++ srcpkgs/elixir-ls/template | 38 +++++++++++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 srcpkgs/elixir-ls/files/elixir-ls create mode 100644 srcpkgs/elixir-ls/files/elixir-ls-dbg create mode 100644 srcpkgs/elixir-ls/template diff --git a/srcpkgs/elixir-ls/files/elixir-ls b/srcpkgs/elixir-ls/files/elixir-ls new file mode 100644 index 00000000000000..c9c8adeb6f2783 --- /dev/null +++ b/srcpkgs/elixir-ls/files/elixir-ls @@ -0,0 +1,3 @@ +#!/bin/sh + +exec /usr/lib/elixir-ls/language_server.sh diff --git a/srcpkgs/elixir-ls/files/elixir-ls-dbg b/srcpkgs/elixir-ls/files/elixir-ls-dbg new file mode 100644 index 00000000000000..fe3d1dd47be70e --- /dev/null +++ b/srcpkgs/elixir-ls/files/elixir-ls-dbg @@ -0,0 +1,3 @@ +#!/bin/sh + +exec /usr/lib/elixir-ls/debug_adapter.sh diff --git a/srcpkgs/elixir-ls/template b/srcpkgs/elixir-ls/template new file mode 100644 index 00000000000000..34ed48d40cf74f --- /dev/null +++ b/srcpkgs/elixir-ls/template @@ -0,0 +1,38 @@ +# Template file for 'elixir-ls' +pkgname=elixir-ls +version=0.21.3 +revision=1 +hostmakedepends="elixir rebar3" +depends="elixir" +short_desc="Frontend-independent Language Server Protocol for Elixir" +maintainer="icp " +license="Apache-2.0" +homepage="https://elixir-lsp.github.io/elixir-ls/" +changelog="https://raw.githubusercontent.com/elixir-lsp/elixir-ls/master/CHANGELOG.md" +distfiles="https://github.com/elixir-lsp/elixir-ls/archive/refs/tags/v${version}.tar.gz" +checksum=81a97816533910de5b8a4a7d73f597b6429af29001e2f931f1bbb147e8ca6593 + +do_build() { + export MIX_ENV=prod + export MIX_HOME="${wrksrc}/mix-cache" + export PATH="${PATH}:/usr/libexec/chroot-git" + + mix local.hex --force + mix local.rebar --force rebar3 /usr/bin/rebar3 + + mix deps.get + mix compile +} + +do_install() { + export MIX_ENV=prod + export PATH="${PATH}:/usr/libexec/chroot-git" + + mix local.hex --force + + vmkdir usr/lib/elixir-ls + mix elixir_ls.release2 -o "${DESTDIR}/usr/lib/elixir-ls" + + vbin "${FILESDIR}/elixir-ls" + vbin "${FILESDIR}/elixir-ls-dbg" +}