From d5985b0800d05e48a2cac5c51dbd16e5b40be16c 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.20.0 --- 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 0000000000000..c9c8adeb6f278 --- /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 0000000000000..fe3d1dd47be70 --- /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 0000000000000..f6e7dc167401b --- /dev/null +++ b/srcpkgs/elixir-ls/template @@ -0,0 +1,38 @@ +# Template file for 'elixir-ls' +pkgname=elixir-ls +version=0.20.0 +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=f03f1bb0eb28d60dc9aa2f4d5114018943573f344a0e4df076760aaeb246bd67 + +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" +}